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
Chat Trigger: The workflow begins when a chat message is received via the When chat message received node, which acts as the entry point.
AI Agent Processing: The message is passed to the AI Agent node, which orchestrates the interaction using the connected tools and memory.
Language Model: The OpenAI Chat Model (GPT-4.1-mini) processes the user's input and generates responses or actions.
Memory: The Simple Memory node retains context from the conversation to enable coherent multi-turn interactions.
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.
Response: The AI Agent combines the model's output and tool responses to deliver a final reply to the user.

Set Up Steps
Sign Up for Pipedream:
Create an account on and set up your MCP server.
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).
Update n8n Nodes:
Replace the placeholder SSE endpoints in the Calendly and Gmail nodes with your Pipedream MCP URLs.
OpenAI Credentials:
Ensure the OpenAI Chat Model node has valid API credentials (configured under "OpenAi account").
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.

0
Downloads
22
Views
8.84
Quality Score
intermediate
Complexity
Author:Davide(View Original →)
Created:8/13/2025
Updated:8/25/2025

🔒 Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments