Skip to main content

Build a scalable AI chatbot with GPT-4 and Pipedream: Calendly, Gmail integration

Workflow preview

Workflow preview
100%
Build a scalable AI chatbot with GPT-4 and Pipedream: Calendly, Gmail integration preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. This n8n workflow integrates the powerful Pipedream MCP server with AI capabilities to create a ...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.mcpclienttool, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Build a scalable AI chatbot with GPT-4 and Pipedream: Calendly, Gmail integration
Workflow name
Build a scalable AI chatbot with GPT-4 and Pipedream: Calendly, Gmail integration

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

This n8n workflow integrates the powerful Pipedream MCP server with AI capabilities to create a smart, extensible assistant that can interact with over 2,700 APIs and 10,000+ tools — all within a secure and modular structure.

This setup seamlessly integrates Pipedream's MCP server with n8n, enabling your AI assistant to leverage thousands of APIs and tools securely.


Benefits

  • Massive Tool Access: Instantly connect 2,700+ APIs using Pipedream MCP tools — from productivity apps to custom APIs — with zero-code integration.
  • Dynamic AI Agent: The use of a LangChain agent allows for flexible tool execution and contextual conversations, powered by GPT.
  • Easy Customization: Simply copy your MCP tool URL into the respective sseEndpoint field to extend the agent’s capabilities.
  • Scalable and Modular: Add or remove tools (like Slack, Notion, Stripe, etc.) without altering the core logic.
  • Secure and Revocable: Credentials and API access can be managed directly via Pipedream’s MCP dashboard.

How It Works

  1. Chat Trigger: The workflow begins when a chat message is received via the When chat message received node, which acts as the entry point.
  2. AI Agent Processing: The message is passed to the AI Agent node, which orchestrates the interaction using the connected tools and memory.
  3. Language Model: The OpenAI Chat Model (GPT-4.1-mini) processes the user's input and generates responses or actions.
  4. Memory: The Simple Memory node retains context from the conversation to enable coherent multi-turn interactions.
  5. Tool Integration:
    • The Calendly and Gmail nodes (connected via Pipedream's MCP server) allow the AI to perform actions like scheduling events or sending emails. These tools use SSE (Server-Sent Events) endpoints provided by Pipedream.
  6. Response: The AI Agent combines the model's output and tool responses to deliver a final reply to the user.

Set Up Steps

  1. Sign Up for Pipedream:
    • Create an account on and set up your MCP server.
  2. Configure MCP Tools:
    • Connect your accounts (e.g., Calendly, Gmail) in Pipedream and obtain the SSE endpoints for each tool (e.g., https://mcp.pipedream.net/xxx/calendly_v2).
  3. Update n8n Nodes:
    • Replace the placeholder SSE endpoints in the Calendly and Gmail nodes with your Pipedream MCP URLs.
  4. OpenAI Credentials:
    • Ensure the OpenAI Chat Model node has valid API credentials (configured under "OpenAi account").
  5. Activate Workflow:
    • Enable the When chat message received node (currently disabled) and deploy the workflow.

Need help customizing?

Contact me for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Calendly

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 5 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 6 - Gmail

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Build a scalable AI chatbot with GPT-4 and Pipedream: Calendly, Gmail integration
Complexity intermediate
Nodes 8
Categories Support Chatbot, AI Chatbot
Author Davide
Published 09 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5821/5821.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build a scalable AI chatbot with GPT-4 and Pipedream: Calendly, Gmail integration do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. This n8n workflow integrates the powerful Pipedream MCP server with AI capabilities to create a ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.