Use this advanced n8n workflow to build an AI agent powered by GPT-4o that manages your Google Calendar and executes custom text processing functions via n8n MCP servers.
Download this n8n workflow template and start using it instantly.
Automation Developers looking for advanced n8n templates.
Users who want to deploy a highly capable AI agent using n8n.
Teams needing an AI assistant to manage schedules and perform custom data transformations.
Anyone interested in learning about the n8n Microservice Computation Protocol (MCP).
This comprehensive n8n workflow demonstrates how to build scalable AI applications by separating the core AI agent from its functional tools using the n8n Microservice Computation Protocol (MCP). Instead of stuffing all logic into one massive workflow, this n8n template establishes two dedicated MCP servers (one for Google Calendar and one for utility functions) that the main AI agent consumes as external tools. This dramatically increases the agent's capability, reliability, and modularity. By using this n8n workflow, you gain an intelligent assistant capable of scheduling meetings, searching events, converting text case, and even fetching jokes, all managed through a conversational interface powered by the OpenAI 4o large language model. This approach showcases the power of the n8n node ecosystem when deployed for specialized AI tasks.
When chat message received n8n trigger, initiating a conversational interaction with the user.AI Agent n8n node, which uses the OpenAI 4o LLM and Simple Memory to maintain context.AI Agent analyzes the user's request and determines if any external tools (Calendar MCP or My Functions) need to be called.Calendar MCP client calls the dedicated Google Calendar MCP server. This server executes the appropriate Google Calendar n8n node (SearchEvent, CreateEvent, UpdateEvent, or DeleteEvent) using AI-extracted parameters.My Functions client calls the My Functions Server. This server identifies the specific function (e.g., converttextcase, randomuserdata, obtain_jokes) via its Tool Workflow n8n nodes.My Functions Server routes the request to a sub-workflow (When Executed by Another Workflow) n8n trigger, which uses a Switch n8n node to execute the correct utility action (text conversion, random data generation via DebugHelper, or HTTP request for jokes).AI Agent.AI Agent synthesizes the final conversational response based on the tool output and delivers it back to the user via the initial chat trigger. This complete structure provides robust and scalable n8n templates for AI implementation.Google Calendar MCP node (an n8n trigger).sseEndpoint parameter of the Calendar MCP client node.My Functions Server trigger and the My Functions client node.When chat message received n8n trigger. When chat message received (n8n trigger): The entry point for conversational input, receiving user prompts.
AI Agent (n8n node): The core orchestrator. It uses the LLM for reasoning, maintains chat history via Simple Memory, and decides which external MCP tool to call.
OpenAI 4o (LLM Node): Provides the large language model capability, specifically chosen for its superior reliability in complex function calling within this n8n workflow.
MCP Trigger (Google Calendar MCP & My Functions Server): These are the server entry points, defining the service path (e.g., /mcp/my-calendar). They must be activated to provide their necessary production URLs for the clients.
Google Calendar Tool (n8n node): Used for Search, Create, Update, and Delete operations. Inputs (summary, start time, event ID) are dynamically injected using $fromAI() expressions extracted by the AI Agent.
Tool Workflow (n8n node): Acts as the schema definition for tools exposed by the MCP servers. It tells the AI Agent exactly what functions are available (converttextcase, randomuserdata, obtainjokes) and what inputs they require.
When Executed by Another Workflow (n8n trigger): This is the entry point for the utility sub-workflow, receiving function calls initiated by the My Functions Server MCP.
Switch (n8n node): Routes the execution path based on the input functionname provided by the MCP client.
official-joke-api.appspot.com, demonstrating seamless API integration within an n8n workflow.Use this powerful n8n workflow to manage your Airtable database records (CRUD operations) through conversational AI, leveraging Langchain n8n templates and the OpenAI n8n node.

Deploy a custom, conversational AI Agent using this powerful n8n workflow. Features include a public chat interface, memory, Google Gemini/OpenAI integration, and six specialized tools.

Create a powerful RAG Q&A agent using an n8n workflow. This n8n template integrates specialized n8n nodes for LangChain, OpenAI, and the Lookio knowledge base for intelligent, contextualized responses.

Learn how to deploy a flexible n8n workflow using the Multi-Tool Chain Platform (MCP) server pattern. This automation allows an AI Agent to manage Google Calendar events using specialized n8n templates.

Freelance consultant from Brazil, specializing in automations and data analysis. I work with select clients, addressing their toughest projects. For business inquiries, email me at [email protected] or message me on Telegram for a faster response.







































