Quick overview
This workflow runs a chat-based OpenAI assistant in n8n that calls three MCP servers for Google Calendar management, Gmail search and draft replies, and utility tools for weather, currency conversion, and calculations.
How it works
- Receives a chat message in n8n to start or continue a conversation.
- Loads the assistant configuration (model, memory window, and system prompt) and sends the user message to an OpenAI chat model with short-term conversation memory.
- When the assistant needs calendar actions, it calls an MCP server that searches, creates, updates, or deletes Google Calendar events.
- When the assistant needs email actions, it calls an MCP server that searches Gmail messages and creates draft replies for user review.
- When the assistant needs quick utilities, it calls an MCP server that fetches weather from wttr.in, converts currency using frankfurter.app, or runs calculations.
- Returns the assistant’s response back to the chat, including any results from the MCP tool calls.
Setup
- Add credentials for OpenAI, Google Calendar (OAuth2), and Gmail (OAuth2) in n8n.
- Activate the workflow, then copy each MCP Server Trigger Production URL for the Calendar, Gmail, and Utilities servers.
- Replace https://YOUR-N8N-HOST/... in the three MCP Client endpoint URLs with the matching Production URLs.
- Select the target Google Calendar in the Calendar tools and confirm any Gmail account/alias settings as needed.
Additional info
Build an MCP server and client AI assistant in n8n
Need help customizing?
Contact me for consulting and support : Linkedin
MY NEW YOUTUBE CHANNEL
👉 Subscribe to my new YouTube channel. Here I'll share videos and Shorts with practical tutorials and FREE templates for n8n.
