feat: add folder support for workflows (fixes #70)

This commit is contained in:
Praveen Mudalgeri
2025-08-05 09:40:47 +05:30
parent 307d530f9b
commit c4885eee92
2057 changed files with 985290 additions and 974268 deletions

View File

@@ -0,0 +1,522 @@
{
"id": "5opbTWPZRN05bYdz",
"meta": {
"instanceId": "2ca62dfdbee183085041310c6198e97a69dbf85e4843e42c21169e2f5e3db806",
"templateCredsSetupCompleted": true
},
"name": "Build an MCP Server with Google Calendar",
"tags": [],
"nodes": [
{
"id": "4be79e3f-3e83-4432-b23f-4e4e9cac171b",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-360,
-800
],
"parameters": {
"color": 2,
"width": 2720,
"height": 140,
"content": ""
},
"typeVersion": 1
},
{
"id": "439a0233-c8ec-4ea5-8630-0f6e62c76bef",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"position": [
520,
-780
],
"parameters": {
"color": 2,
"width": 960,
"height": 80,
"content": "# Learn How to Build a MCP Server with Google Calendar"
},
"typeVersion": 1
},
{
"id": "08996f0a-4a2d-438f-a8d7-aca78968d33f",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-360,
-600
],
"parameters": {
"color": 7,
"width": 620,
"height": 280,
"content": "# Introduce\n\nThis tutorial focuses on guiding users through the process of deploying MCP service with Google Calendar. By following this step - by - step guide, you'll be able to leverage the powerful features of MCP Server with Google Calendar, such as creating, reading, updating, and deleting events."
},
"typeVersion": 1
},
{
"id": "0f866ad6-d1af-4732-be64-8c97af7e55ac",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-360,
-240
],
"parameters": {
"color": 6,
"width": 620,
"height": 760,
"content": "# Author\n![SunGuannan](https://avatars.githubusercontent.com/u/176571840?v=4)\n### SunGuannan\nFreelance consultant from China, specializing in automations and data analysis. I work with select clients, addressing their toughest projects.\n\nFor business inquiries, email me at sguann2023@gmail.com.\n"
},
"typeVersion": 1
},
{
"id": "4e2cdec7-8d04-40a7-9270-0f408ebf2efb",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
-600
],
"parameters": {
"color": 5,
"width": 620,
"content": "## Step1: Google Calendar tools require credentials\nIf you don't have your Google Credentials set up in n8n yet, watch [this](https://www.youtube.com/watch?v=3Ai1EPznlAc) video to learn how to do it.\n\nIf you are using n8n Cloud plans, it's very intuitive to setup and you may not even need the tutorial."
},
"typeVersion": 1
},
{
"id": "0a3941f5-959f-499c-b5a6-b2b66b203b1e",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
-420
],
"parameters": {
"color": 5,
"width": 620,
"height": 220,
"content": "## Step 2: Create MCP Server Trigger and activate\nLog in to n8n and create a new workflow. On the new workflow page, click “Add First Step” to open a searchable menu of nodes and triggers. \n\nType “MCP Server Trigger” in the search bar and select it from the results to start your workflow. \n\nThis sets up how n8n receives events from the MCP Server, laying the groundwork for integrating Google Calendar into your automation. "
},
"typeVersion": 1
},
{
"id": "42800020-7ed3-4419-9847-d2a751aa3071",
"name": "SearchEvent",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
400,
260
],
"parameters": {
"limit": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Limit', ``, 'number') }}",
"options": {},
"timeMax": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Before', ``, 'string') }}",
"timeMin": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('After', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "sguann2023@gmail.com",
"cachedResultName": "sguann2023@gmail.com"
},
"operation": "getAll"
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "Wi0S7gZu9R8zFjTC",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "5d2bce57-f77d-4fd1-9342-d81107a6009d",
"name": "CreateEvent",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
520,
260
],
"parameters": {
"end": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End', ``, 'string') }}",
"start": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "sguann2023@gmail.com",
"cachedResultName": "sguann2023@gmail.com"
},
"additionalFields": {
"summary": "={{ $fromAI(\"event_title\", \"The event title\", \"string\") }}",
"description": "={{ $fromAI(\"event_description\", \"The event description\", \"string\") }}"
}
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "Wi0S7gZu9R8zFjTC",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "dbebec9c-fecc-4154-ba77-cfbb519ba40a",
"name": "UpdateEvent",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
640,
260
],
"parameters": {
"eventId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Event_ID', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "sguann2023@gmail.com",
"cachedResultName": "sguann2023@gmail.com"
},
"operation": "update",
"updateFields": {
"end": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End', ``, 'string') }}",
"start": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start', ``, 'string') }}",
"summary": "={{ $fromAI(\"event_title\", \"The event title\", \"string\") }}",
"description": "={{ $fromAI(\"event_description\", \"The event description\", \"string\") }}"
}
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "Wi0S7gZu9R8zFjTC",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "24ef1fd5-29dc-4208-a33b-5337307d01e0",
"name": "DeleteEvent",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
760,
260
],
"parameters": {
"eventId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Event_ID', ``, 'string') }}",
"options": {},
"calendar": {
"__rl": true,
"mode": "list",
"value": "sguann2023@gmail.com",
"cachedResultName": "sguann2023@gmail.com"
},
"operation": "delete"
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "Wi0S7gZu9R8zFjTC",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "ec4aa55d-c6ee-4990-9c51-6ee1892600dd",
"name": "Google Calendar MCP",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"position": [
400,
60
],
"webhookId": "f9d9d5ea-6f83-42c8-ae50-ee6c71789bca",
"parameters": {
"path": "my-calendar"
},
"typeVersion": 1
},
{
"id": "7e49bc5e-c3c1-47b3-8a0a-8f3b91ad954b",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
-180
],
"parameters": {
"color": 5,
"width": 620,
"height": 600,
"content": "## Step 3: Incorporate Google Calendar Tools\nAfter creating the MCP Server Trigger, rename it to \"Google Calendar MCP \" for clarity. \n\nClick \"Tools\" and type \"Google Calendar\" in the search bar to find tools for various Google Calendar operations. \n\nYou can add multiple tools, each for a specific task. For example, \"Get Many\" retrieves multiple events, \"Create\" makes new ones, \"Update\" modifies existing events, and \"Delete\" removes them. Use these tools to build customized, efficient workflows for your Google Calendar data. "
},
"typeVersion": 1
},
{
"id": "6a86eb61-0e1f-4de1-a77f-0470fe1cd3ec",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
440
],
"parameters": {
"color": 5,
"width": 620,
"height": 580,
"content": "## Step 4: Copy Your MCP Server Trigger URL and Activate Your Workflow\nDouble - click on the \"Google Calendar MCP\" node. On the node detail page, you'll locate the production URL, which might look something like \"https://xxx/mcp/my - calendar/sse\". Make sure to copy this URL as it will be used later in your workflow setup.\n\nAfter obtaining the URL, save the workflow. Then, check the \"Inactive\" button to activate the trigger. \n![Inactive](https://1.gravatar.com/userimage/264834967/9a4d54537ef20427192f47fd8e413814?size=256)\n![Active](https://1.gravatar.com/userimage/264834967/01bf3678cce04b3428586c908beb9954?size=256)\nOnce activated, your workflow will start listening for events from the MCP Server, enabling seamless integration with the Google Calendar service."
},
"typeVersion": 1
},
{
"id": "aed25c42-78e1-4984-8831-768e2bbe6888",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
960,
-600
],
"parameters": {
"color": 4,
"width": 620,
"height": 140,
"content": "## Step 5: Create a New Workflow for AI Agent\nAt this stage, you're required to create a new workflow. Once the new workflow interface is open, click on the \"Add First Step\" option. In the list of available nodes and triggers that appears, search for and select the \"on Chat Message\" option to add it to your workflow. This sets the initial trigger for your AI-Agent-related workflow."
},
"typeVersion": 1
},
{
"id": "214dbba6-dffe-4c43-8c14-77babd52107f",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"position": [
960,
-440
],
"parameters": {
"color": 4,
"width": 620,
"height": 1060,
"content": "## Step 6: Add AI Agent Node\nAfter successfully creating the Chat Messages Trigger, you can proceed to add an \"AI Agent\" node right after it. Double - click on this newly added \"AI Agent\" node to open its configuration panel.\n\nIn the configuration, you'll need to add a specific option. Under the System Message field, enter the following text: \"You are a helpful assistant. Current datetime is {{ $now.toString() }}\". This message provides the AI with the current date and time, which can be useful for context in various interactions.\n\nNext, select an appropriate Large Language Model (LLM) from the available options. This model will be responsible for handling the chat and delivering events.\n\nTo enable continuous and context - aware conversations, add memory to the Agent. This allows the AI Agent to remember previous interactions, providing a more seamless and engaging chat experience.\n\nFinally, search for and add the \"MCP Client\" tool. In the SSE Endpoint section of the \"MCP Client\" configuration, paste the URL that you copied in Step 4. This step connects the AI Agent workflow to the MCP Server, enabling data flow and interaction between the two. "
},
"typeVersion": 1
},
{
"id": "7ba10d96-e1cc-456d-9174-c848524466dd",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1220,
20
],
"parameters": {
"options": {
"systemMessage": "=You are a helpful assistant.\nCurrent datetime is {{ $now.toString() }}"
}
},
"typeVersion": 1.8
},
{
"id": "2d577167-74d2-4966-8c39-79477787ed68",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
1020,
20
],
"webhookId": "7b02318f-1c6b-4f2a-9a4f-b17fa69ea680",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "0c5f70f5-5156-42f1-90ab-1f294f2fa2d9",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
1320,
240
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "cf747bc2-9c08-4f8f-9408-135e17ef0d3d",
"name": "Calendar MCP",
"type": "@n8n/n8n-nodes-langchain.mcpClientTool",
"position": [
1440,
240
],
"parameters": {
"sseEndpoint": "https://xxx.app.n8n.cloud/mcp/my-calendar/sse"
},
"typeVersion": 1
},
{
"id": "8891a5de-e35f-4367-bfb7-0e54ce4452be",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
1020,
360
],
"parameters": {
"color": 7,
"height": 240,
"content": "## Why model 4o? 👆\nAfter testing 4o-mini it had some difficulties handling the calendar requests, while the 4o model handled it with ease.\n\nDepending on your prompt and tools, 4o-mini might be able to work well too, but it requires further testing."
},
"typeVersion": 1
},
{
"id": "f5d9ddb5-5957-4d22-8d85-a1c08eb813d8",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
1620,
-600
],
"parameters": {
"color": 6,
"width": 740,
"height": 520,
"content": "# Let's Try!\n\n![create](https://0.gravatar.com/userimage/264834967/5dfab90301432c344990fafb166546e1?size=256)\n\n![create-finish](https://0.gravatar.com/userimage/264834967/7126b569dd9868c056f9ad3a23be2a25?size=256)"
},
"typeVersion": 1
},
{
"id": "31b467cd-1d70-4c05-ae14-9f9e455cd55c",
"name": "gpt-4o",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1180,
240
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "40ZaiQQN82bPTck0",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "007f0f3f-e7ca-4ea8-acba-cfde3bd8d1dd",
"name": "Sticky Note13",
"type": "n8n-nodes-base.stickyNote",
"position": [
1620,
-40
],
"parameters": {
"color": 7,
"width": 740,
"height": 80,
"content": "# Enjoy It! 😊 😊 😊 "
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "c99542aa-af94-4e26-b255-473a26e0a962",
"connections": {
"gpt-4o": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"CreateEvent": {
"ai_tool": [
[
{
"node": "Google Calendar MCP",
"type": "ai_tool",
"index": 0
}
]
]
},
"DeleteEvent": {
"ai_tool": [
[
{
"node": "Google Calendar MCP",
"type": "ai_tool",
"index": 0
}
]
]
},
"SearchEvent": {
"ai_tool": [
[
{
"node": "Google Calendar MCP",
"type": "ai_tool",
"index": 0
}
]
]
},
"UpdateEvent": {
"ai_tool": [
[
{
"node": "Google Calendar MCP",
"type": "ai_tool",
"index": 0
}
]
]
},
"Calendar MCP": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,319 @@
{
"id": "ITH6r6UYtlCyUcpj",
"meta": {
"instanceId": "b9faf72fe0d7c3be94b3ebff0778790b50b135c336412d28fd4fca2cbbf8d1f5"
},
"name": "AI Agent : Google calendar assistant using OpenAI",
"tags": [],
"nodes": [
{
"id": "2e670a54-f789-4c8b-abba-ae35c458f5ed",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-280,
0
],
"webhookId": "5308edc9-738b-4aae-a789-214e2392579a",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "96bf895f-a18c-4a4c-bc26-3ec5d2372de5",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
160,
820
],
"parameters": {
"model": "gpt-4o",
"options": {}
},
"credentials": {
"openAiApi": {
"id": "",
"name": "OpenAi"
}
},
"typeVersion": 1
},
{
"id": "270176df-9c2d-4f1a-b017-9349cb249341",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
580,
820
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "5cdece35-bd69-4c77-b240-963df8781d64",
"name": "Google Calendar - Get Events",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
960,
800
],
"parameters": {
"options": {
"timeMax": "={{ $fromAI('end_date') }}",
"timeMin": "={{ $fromAI('start_date') }}"
},
"calendar": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultName": ""
},
"operation": "getAll",
"descriptionType": "manual",
"toolDescription": "Use this tool when you\u2019re asked to retrieve events data."
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "",
"name": "Google Calendar account"
}
},
"typeVersion": 1.2
},
{
"id": "634e6472-099c-4f0e-b9eb-67956c4881b8",
"name": "Google Calendar - Create events",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
1380,
800
],
"parameters": {
"end": "={{ $fromAI('end_date') }} ",
"start": "={{ $fromAI('start_date') }} ",
"calendar": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultName": ""
},
"descriptionType": "manual",
"toolDescription": "Use this Google Calendar tool when you are asked to create an event.",
"additionalFields": {
"summary": "={{ $fromAI('event_title') }} ",
"attendees": [],
"description": "={{ $fromAI('event_description') }} "
},
"useDefaultReminders": false
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "",
"name": "Google Calendar account"
}
},
"typeVersion": 1.2
},
{
"id": "5c93e130-29d5-489b-84ea-3e31f5849b3a",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-380,
-380
],
"parameters": {
"color": 7,
"width": 320,
"height": 560,
"content": "## Chat trigger - When a message is received\n\nThis node is the **entry point of the workflow**. \nIt triggers the workflow whenever a message is sent to the **chat interface**.\n\nOptions with n8n:\n- **Embed the chat interface** anywhere you want.\n- Use a **webhook node** instead of this node to connect with interfaces like **[Streamlit](https://docs.streamlit.io/develop/tutorials/llms/build-conversational-apps)** or **[OpenWebUI](https://docs.openwebui.com/)**.\n- Use nodes for communication platforms (**Slack**, **Teams**, **Discord**, etc.) if you know how to configure them.\n"
},
"typeVersion": 1
},
{
"id": "a1e850b4-d0fe-417c-8e1e-13fb4cdbb0a8",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
60,
-380
],
"parameters": {
"color": 7,
"width": 1520,
"height": 560,
"content": "## Tools Agent - Calendar AI Agent\n\nThis **node** configures the **AI agent** for interaction with Google Calendar. \nIt includes the following features:\n\n- A **prompt source**: This is the user message derived from the chat input of the preceding node (`When chat message is received`).\n- A **system message**: This defines the system prompt to guide the AI agent's behavior. It incorporates the variable `{{ DateTime.local().toFormat('cccc d LLLL yyyy') }`, allowing the AI agent to determine the current date and interact with Google Calendar accordingly. For example, the agent can understand a request like \"Create an event called 'n8n workflow review' for next Tuesday.\"\n\n\nn8n nodes come with built-in **guardrails**, ensuring that if the user requests tasks outside the AI agent's setup, it may not function as intended. (Feel free to test it!)\n"
},
"typeVersion": 1
},
{
"id": "9b259245-5fd5-4798-973e-bc6aa15da20f",
"name": "Calendar AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
580,
0
],
"parameters": {
"text": "={{ $json.chatInput }}",
"options": {
"systemMessage": "=You are a Google Calendar assistant.\nYour primary goal is to assist the user in managing their calendar effectively using two tools: Event Creation and Event Retrieval. Always base your responses on the current date: \n{{ DateTime.local().toFormat('cccc d LLLL yyyy') }}.\nGeneral Guidelines:\nIf the user's initial message is vague (e.g., \"hello\" or a generic greeting) or does not specify a request, explain your capabilities clearly:\nExample: \"Hello! I can help you manage your Google Calendar. You can ask me to create an event or retrieve event data. What would you like me to do?\"\nIf the user specifies a request in their first message, begin preparing to use the appropriate tool:\nFor event creation, gather necessary details like start date, end date, title, and description.\nFor event retrieval, ask for the date range or time period they want to query.\nTool: Event Creation\nWhen asked to create an event:\n\nRequest the start and end dates/times from the user.\nDate format: YYYY-MM-DD HH:mm:ss\nCollect the following information:\nstart_date: Exact start date and time of the event.\nend_date: Exact end date and time of the event.\nevent_title: Event title in uppercase. Suggest one if not provided.\nevent_description: Generate a brief description and present it for confirmation.\nTool: Event Retrieval\nWhen asked to retrieve events:\n\nAsk for the date range or period they are interested in. Examples:\nFor \"last week,\" retrieve events from Monday of the previous week to Friday of the same week.\nFor \"today,\" use the current date.\nFormat the date range:\nstart_date: Start date and time in YYYY-MM-DD HH:mm:ss.\nend_date: End date and time in YYYY-MM-DD HH:mm:ss.\nKey Behaviors:\nClarity: Provide a clear and helpful introduction when the user's request is unclear.\nValidation: Confirm details with the user before finalizing actions.\nAdaptation: Handle varying levels of detail in requests (e.g., \"Add a meeting for next Monday morning\" or \"Retrieve my events for this weekend\").\nProactivity: Offer suggestions to fill in missing details or clarify ambiguous inputs.\nLanguage Matching: Ensure all interactions, including event titles, descriptions, and messages, are in the user's language to provide a seamless experience."
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "b902a7d0-c2ca-4ab9-9f2a-047b9ccb1678",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
60,
240
],
"parameters": {
"color": 5,
"width": 320,
"height": 720,
"content": "## OpenAI chat model\n\nThis node specifies the chat model used by the agent. \nIn the template, the **default LLM is gpt-4o** for its high relevance.\n\nOther options:\n- You can **try gpt-4o-mini**, which is more cost-effective.\n- You can also choose **other LLM providers besides OpenAI**, but make sure the LLM you select **supports tool-calling**.\n"
},
"typeVersion": 1
},
{
"id": "c67e1e1b-ef9a-4fec-a860-4ec6b7439df6",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
460,
240
],
"parameters": {
"color": 5,
"width": 320,
"height": 720,
"content": "## Window buffer memory\n\nThis node manages the **memory** of the agent, specifically the **context window length** for chat history. \nThe default is set to 5 messages.\n\nNote: \nThe **memory** is **temporary**. If you want to **store conversations with the agent**, you should use other nodes like **Postgres chat memory**. \nThis can be easily set up with services like **[Supabase](https://supabase.com/)**.\n"
},
"typeVersion": 1
},
{
"id": "bf719d53-e21b-4bd5-9443-c24d008f732b",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
860,
240
],
"parameters": {
"color": 5,
"width": 320,
"height": 720,
"content": "## Google Calendar - Get Events\n\nThis sub-node is a tool used by the AI agent. \nIts purpose is to **retrieve events based on the user input**. \nFor example: *\"Can you give me the events from last week about internal process ?\"*\n\nThe AI agent is designed to **use this tool only** when it has a **date range**. \nIf the user hasn\u2019t provided a date range, the **AI agent will ask the user** for it.\n\nThe **variables** `{{ $fromAI('start_date') }}` and `{{ $fromAI('end_date') }}` are **dynamically filled by the AI**.\n"
},
"typeVersion": 1
},
{
"id": "e94eb1f8-df42-414b-9bec-9e6991a5a832",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1260,
240
],
"parameters": {
"color": 5,
"width": 320,
"height": 720,
"content": "## Google Calendar - Create Events\n\nThis sub-node is a tool used by the AI agent. \nIts purpose is to **create events based on the user input**. \nFor example: \"Can you create an event 'Quarter revenue meeting' on [date] from [hour] to [hour] ?\"\n\nThe AI agent is designed to **use this tool only** when it has a **date range**. \nIf the user hasn\u2019t provided a **date range**, the AI agent will **ask the user** for it. \nThe variables `{{ $fromAI('start_date') }}` and `{{ $fromAI('end_date') }}` are dynamically filled by the AI.\n\nBefore creating the event, the AI agent will **confirm with the user** if the **title** and **description** of the event are correct. \nThe variables used for this are:\n- `{{ $fromAI('event_title') }}`\n- `{{ $fromAI('event_description') }}`\n"
},
"typeVersion": 1
},
{
"id": "707c011c-c822-4922-8ef7-c4368947d179",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
860,
1000
],
"parameters": {
"color": 4,
"width": 720,
"height": 380,
"content": "## Having fun with it ? Here\u2019s how to level up this AI agent ! \n\nThis workflow demonstrates **how easily you can set up an AI agent to call tools** for you using **n8n**. \nThe tasks here are **useful but very basic**. \n\nIf you want to **enhance the tool-calling capabilities**, consider the following:\n\n- Explore the **\"options\"** in the Google Calendar nodes to see additional features you can use. \n For example, let the AI agent add attendees to events it creates.\n\n- Implement the AI agent with your **teammates and link it to each calendar**. \n Use a `{{ $fromAI('') }}` variable for the calendar field and refine the prompts to suit your needs.\n\n- Add **more actions** for the AI agent to perform with the **Google Calendar API**, expanding its functionality.\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"timezone": "Europe/Paris",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "25b51038-e103-4be6-bcd1-64df4b90d4c6",
"connections": {
"Calendar AI Agent": {
"main": [
[]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Calendar AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "Calendar AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "Calendar AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Google Calendar - Get Events": {
"ai_tool": [
[
{
"node": "Calendar AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Google Calendar - Create events": {
"ai_tool": [
[
{
"node": "Calendar AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,358 @@
{
"name": "🤖Calendar Agent",
"nodes": [
{
"parameters": {
"model": "gpt-4o",
"options": {}
},
"id": "a34e2d84-ae30-4bfe-afa9-23dbd5dd3845",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1,
"position": [
740,
540
],
"credentials": {
"openAiApi": {
"id": "BP9v81AwJlpYGStD",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "7ab380a2-a8d3-421c-ab4e-748ea8fb7904",
"name": "response",
"value": "Unable to perform task. Please try again.",
"type": "string"
}
]
},
"options": {}
},
"id": "ec5518af-86f7-4f41-9682-ddddc621f356",
"name": "Try Again",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1660,
380
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "39c2f302-03be-4464-a17a-d7cc481d6d44",
"name": "=response",
"value": "={{$json.output}}",
"type": "string"
}
]
},
"options": {}
},
"id": "fc889778-08ca-431e-8109-7133110aa0db",
"name": "Success",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1660,
180
]
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.query }}",
"options": {
"systemMessage": "=# Overview\nYou are a calendar assistant. Your responsibilities include creating, getting, and deleting events in the user's calendar.\n\n**Calendar Management Tools** \n - Use \"Create Event with Attendee\" when an event includes a participant. \n - Use \"Create Event\" for solo events. \n - Use \"Get Events\" to fetch calendar schedules when requested.\n - Use \"Delete Event\" to delete an event. You must use \"Get Events\" first to get the ID of the event to delete.\n - Use \"Update Event\" to update an event. You must use \"Get Events\" first to get the ID of the event to update.\n\n## Final Notes\nHere is the current date/time: {{ $now }}\nIf a duration for an event isn't specified, assume it will be one hour."
}
},
"id": "47814b5d-390b-4d4c-b6ec-578075200739",
"name": "Calendar Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.6,
"position": [
980,
280
],
"onError": "continueErrorOutput"
},
{
"parameters": {
"calendar": {
"__rl": true,
"value": "nateherk88@gmail.com",
"mode": "list",
"cachedResultName": "nateherk88@gmail.com"
},
"start": "={{ $fromAI(\"eventStart\") }}",
"end": "={{ $fromAI(\"eventEnd\") }}",
"additionalFields": {
"attendees": [
"={{ $fromAI(\"eventAttendeeEmail\") }}"
],
"summary": "={{ $fromAI(\"eventTitle\") }}"
}
},
"type": "n8n-nodes-base.googleCalendarTool",
"typeVersion": 1.3,
"position": [
1440,
540
],
"id": "2d26c039-4756-4a86-b09c-1160b7cd6022",
"name": "Create Event with Attendee",
"credentials": {
"googleCalendarOAuth2Api": {
"id": "HYMNtkm0oglf42QP",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"calendar": {
"__rl": true,
"value": "nateherk88@gmail.com",
"mode": "list",
"cachedResultName": "nateherk88@gmail.com"
},
"start": "={{ $fromAI(\"eventStart\") }}",
"end": "={{ $fromAI(\"eventEnd\") }}",
"additionalFields": {
"attendees": [],
"summary": "={{ $fromAI(\"eventTitle\") }}"
}
},
"type": "n8n-nodes-base.googleCalendarTool",
"typeVersion": 1.3,
"position": [
1300,
640
],
"id": "8bd1e7c7-98a0-4cc1-96e3-cfd2107475a9",
"name": "Create Event",
"credentials": {
"googleCalendarOAuth2Api": {
"id": "HYMNtkm0oglf42QP",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"operation": "getAll",
"calendar": {
"__rl": true,
"value": "nateherk88@gmail.com",
"mode": "list",
"cachedResultName": "nateherk88@gmail.com"
},
"timeMin": "={{ $fromAI(\"dayBefore\",\"the day before the date the user requested\") }}",
"timeMax": "={{ $fromAI(\"dayAfter\",\"the day after the date the user requested\") }}",
"options": {}
},
"type": "n8n-nodes-base.googleCalendarTool",
"typeVersion": 1.3,
"position": [
1160,
680
],
"id": "b148f124-e2b4-4e47-8053-45d03d77ff6e",
"name": "Get Events",
"credentials": {
"googleCalendarOAuth2Api": {
"id": "HYMNtkm0oglf42QP",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"operation": "delete",
"calendar": {
"__rl": true,
"value": "nateherk88@gmail.com",
"mode": "list",
"cachedResultName": "nateherk88@gmail.com"
},
"eventId": "={{ $fromAI(\"eventID\") }}",
"options": {}
},
"type": "n8n-nodes-base.googleCalendarTool",
"typeVersion": 1.3,
"position": [
1020,
660
],
"id": "923acc0e-85b5-44e6-a063-f1642f5108b3",
"name": "Delete Event",
"credentials": {
"googleCalendarOAuth2Api": {
"id": "HYMNtkm0oglf42QP",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"operation": "update",
"calendar": {
"__rl": true,
"value": "nateherk88@gmail.com",
"mode": "list",
"cachedResultName": "nateherk88@gmail.com"
},
"eventId": "={{ $fromAI(\"eventID\") }}",
"updateFields": {
"end": "={{ $fromAI(\"endTime\") }}",
"start": "={{ $fromAI(\"startTime\") }}"
}
},
"type": "n8n-nodes-base.googleCalendarTool",
"typeVersion": 1.3,
"position": [
880,
620
],
"id": "41941ae4-9cc7-4c96-8e4f-957804fc8be2",
"name": "Update Event",
"credentials": {
"googleCalendarOAuth2Api": {
"id": "HYMNtkm0oglf42QP",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"inputSource": "passthrough"
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
740,
280
],
"id": "8abc645d-345e-4113-966d-0d3373f4141b",
"name": "When Executed by Another Workflow"
}
],
"pinData": {},
"connections": {
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Calendar Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Calendar Agent": {
"main": [
[
{
"node": "Success",
"type": "main",
"index": 0
}
],
[
{
"node": "Try Again",
"type": "main",
"index": 0
}
]
]
},
"Create Event with Attendee": {
"ai_tool": [
[
{
"node": "Calendar Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Event": {
"ai_tool": [
[
{
"node": "Calendar Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Events": {
"ai_tool": [
[
{
"node": "Calendar Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Delete Event": {
"ai_tool": [
[
{
"node": "Calendar Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Update Event": {
"ai_tool": [
[
{
"node": "Calendar Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Calendar Agent",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "64d1923c-64fc-4d17-b776-cf0528ac9366",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "95e5a8c2e51c83e33b232ea792bbe3f063c094c33d9806a5565cb31759e1ad39"
},
"id": "0NtlJ41IozGhtFa6",
"tags": []
}

View File

@@ -0,0 +1,283 @@
{
"id": "grxwlyzZb3z4WLAa",
"meta": {
"instanceId": "6d46e25379ef430a7067964d1096b885c773564549240cb3ad4c087f6cf94bd3",
"templateCredsSetupCompleted": true
},
"name": "MCP_CALENDAR",
"tags": [],
"nodes": [
{
"id": "10e49f09-5ef8-4945-adcf-f8b99879a31c",
"name": "MCP_CALENDAR",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"position": [
0,
0
],
"webhookId": "ceb17fa5-1937-405f-8000-ea3be7d2b032",
"parameters": {
"path": "/mcp/:tool/calendar"
},
"typeVersion": 1
},
{
"id": "54e84792-4f4a-4501-8aae-e40f06e958c1",
"name": "GET_CALENDAR",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
860,
240
],
"parameters": {
"eventId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Event_ID', ``, 'string') }}",
"options": {},
"calendar": {
"__rl": true,
"mode": "list",
"value": "a57a3781407f42b1ad7fe24ce76f558dc6c86fea5f349b7fd39747a2294c1654@group.calendar.google.com",
"cachedResultName": "ODONTOLOGIA"
},
"operation": "get"
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "49eGhpwvfLcCZ0h3",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "c428d7b1-aed4-4a18-962e-fd29b8a2ac54",
"name": "GET_ALL_CALENDAR",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
240,
240
],
"parameters": {
"options": {
"orderBy": "startTime",
"recurringEventHandling": "expand"
},
"timeMax": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Before', ``, 'string') }}",
"timeMin": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('After', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "a57a3781407f42b1ad7fe24ce76f558dc6c86fea5f349b7fd39747a2294c1654@group.calendar.google.com",
"cachedResultName": "ODONTOLOGIA"
},
"operation": "getAll",
"returnAll": true
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "49eGhpwvfLcCZ0h3",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "26fef8a3-5802-4f3d-ae47-b81aad813728",
"name": "DELETE_CALENDAR",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
480,
240
],
"parameters": {
"eventId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Event_ID', ``, 'string') }}",
"options": {},
"calendar": {
"__rl": true,
"mode": "list",
"value": "a57a3781407f42b1ad7fe24ce76f558dc6c86fea5f349b7fd39747a2294c1654@group.calendar.google.com",
"cachedResultName": "ODONTOLOGIA"
},
"operation": "delete",
"descriptionType": "manual"
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "49eGhpwvfLcCZ0h3",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "e46ea1b3-8597-46aa-b37a-6660aa72f74d",
"name": "UPDATE_CALENDAR",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
680,
240
],
"parameters": {
"eventId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Event_ID', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "a57a3781407f42b1ad7fe24ce76f558dc6c86fea5f349b7fd39747a2294c1654@group.calendar.google.com",
"cachedResultName": "ODONTOLOGIA"
},
"operation": "update",
"updateFields": {},
"useDefaultReminders": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Use_Default_Reminders', ``, 'boolean') }}"
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "49eGhpwvfLcCZ0h3",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "b9c7618d-b79a-4273-a540-3d21a1c0bfb0",
"name": "AVALIABILITY_CALENDAR",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
80,
240
],
"parameters": {
"options": {
"timezone": {
"__rl": true,
"mode": "list",
"value": "America/Sao_Paulo",
"cachedResultName": "America/Sao_Paulo"
}
},
"timeMax": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End_Time', ``, 'string') }}",
"timeMin": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start_Time', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "a57a3781407f42b1ad7fe24ce76f558dc6c86fea5f349b7fd39747a2294c1654@group.calendar.google.com",
"cachedResultName": "ODONTOLOGIA"
},
"resource": "calendar",
"descriptionType": "manual",
"toolDescription": "verifica disponibilidade"
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "49eGhpwvfLcCZ0h3",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "4fda260a-4d0c-4bf3-807b-e752f06037ff",
"name": "CREATE_CALENDAR",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
1000,
240
],
"parameters": {
"end": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End', ``, 'string') }}",
"start": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "a57a3781407f42b1ad7fe24ce76f558dc6c86fea5f349b7fd39747a2294c1654@group.calendar.google.com",
"cachedResultName": "ODONTOLOGIA"
},
"descriptionType": "manual",
"toolDescription": "CRIA EVENTOS NOVOS COM O GOOGLE API",
"additionalFields": {
"description": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Description', ``, 'string') }}"
},
"useDefaultReminders": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Use_Default_Reminders', ``, 'boolean') }}"
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "49eGhpwvfLcCZ0h3",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "d13dc7da-f510-474c-87be-68fea85c81f2",
"connections": {
"GET_CALENDAR": {
"ai_tool": [
[
{
"node": "MCP_CALENDAR",
"type": "ai_tool",
"index": 0
}
]
]
},
"CREATE_CALENDAR": {
"ai_tool": [
[
{
"node": "MCP_CALENDAR",
"type": "ai_tool",
"index": 0
}
]
]
},
"DELETE_CALENDAR": {
"ai_tool": [
[
{
"node": "MCP_CALENDAR",
"type": "ai_tool",
"index": 0
}
]
]
},
"UPDATE_CALENDAR": {
"ai_tool": [
[
{
"node": "MCP_CALENDAR",
"type": "ai_tool",
"index": 0
}
]
]
},
"GET_ALL_CALENDAR": {
"ai_tool": [
[
{
"node": "MCP_CALENDAR",
"type": "ai_tool",
"index": 0
}
]
]
},
"AVALIABILITY_CALENDAR": {
"ai_tool": [
[
{
"node": "MCP_CALENDAR",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,376 @@
{
"id": "my335cY3wVwMqvqy",
"meta": {
"instanceId": "2ee8293be0fa6380527ab247a1eb95264d17c994507730562aa1c31ddb264f82",
"templateCredsSetupCompleted": true
},
"name": "Reservation Medcin",
"tags": [],
"nodes": [
{
"id": "32fe7a8b-aa1a-4517-a167-41972f77d69b",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-360,
-40
],
"webhookId": "8f427031-1110-4ea3-aef7-5d06ba7d5bce",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "3510bb5a-3c8b-4978-a6c5-5c077be74f3f",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-20,
-60
],
"parameters": {
"options": {
"systemMessage": "=🎯 Role of the Assistant\nYou are a virtual assistant specializing in appointment management for Dr. Hakim. Your goal is to schedule consultations accurately, ensuring real availability while providing a smooth experience for patients.\n\n🕒 Office Hours\nMonday - Friday: 9:00 AM - 8:00 PM\nSaturday: 9:00 AM - 1:00 PM\nSunday: ❌ Closed\nConsultation Duration: 1 hour\nBreak Between Patients: 15 minutes\n\n📅 Booking Process\n\n1⃣ Request Patient Information (Mandatory):\nFull Name\nPhone Number\nDesired Date and Time\n2⃣ Availability Check:\nIf the requested time is outside office hours → offer only available slots.\nIf the requested time is available, ask for confirmation and book it.\nIf the requested time is unavailable, apologize and suggest the actual available slots on the requested day (between 9:00 AM and 8:00 PM, respecting breaks).\n\n##Example:\nIf a patient requests an appointment at 10:00 AM, check Google Calendar to confirm availability between 9:00 AM and 8:00 PM, considering the consultation duration (1 hour) and the 15-minute breaks.\n\n🚨 Do not confirm the appointment immediately—you must receive the patient's confirmation first.\n\n3⃣ Confirmation & Updates:\nConfirm availability with the patient before finalizing.\nUpdate Google Calendar & Google Sheets after every booking.\nGoogle Calendar Event Title: \"Patient Name - Phone Number\".\nFor modifications or cancellations, free the slot and update the schedule.\n\n##Tools:\nUse \"Cheek Avilability\" to check available slots.\nUse \"Creat event\" to book the appointment.\nUse \"Add Data\" to record patient information.\n\n💬 Communication\n✅ Respond clearly, professionally, and in a friendly manner.\n✅ Always confirm the final date and time with the patient.\n✅ Ensure Google Calendar and Google Sheets are updated after every booking.\n\n📅 Today's date: {{ $now }}."
}
},
"typeVersion": 1.7
},
{
"id": "fea932f2-c99e-4e1a-83bc-b06abf6cce41",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-80,
160
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "x0tQpNXNP6v5Ovtd",
"name": "OpenAi account 2"
}
},
"typeVersion": 1.2
},
{
"id": "05bfbeb4-d2a4-4372-b763-6da636ed4393",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
60,
160
],
"parameters": {
"sessionKey": "={{ $('When chat message received').item.json.sessionId }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "86899211-daf8-4fc6-a61a-98504b239d83",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
20,
-220
],
"parameters": {
"color": 7,
"width": 194,
"height": 141,
"content": "**AI Agent 👇**\nThe Prompt is already there, You just need to setup the prompt user message with your text message."
},
"typeVersion": 1
},
{
"id": "947c5aa3-549e-49f1-b136-030cbd3ca6ff",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-120,
300
],
"parameters": {
"color": 7,
"width": 150,
"height": 80,
"content": "**Chat Model ☝️**\nAdd your Open Ai API Key "
},
"typeVersion": 1
},
{
"id": "cac840df-644e-4092-b678-af2fdf3fc378",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
300
],
"parameters": {
"color": 7,
"width": 190,
"height": 80,
"content": "**Gpoogle Calendar ☝️**\nConnect to Google Calendar"
},
"typeVersion": 1
},
{
"id": "f474ee97-ba38-4100-bfc7-0d01d0a4c599",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
500,
300
],
"parameters": {
"color": 7,
"width": 190,
"height": 80,
"content": "**Google Sheets ☝️**\nConnect to Google Sheets"
},
"typeVersion": 1
},
{
"id": "51fcd961-7b0b-4435-a315-17d4ddc1ed30",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
40,
300
],
"parameters": {
"color": 7,
"width": 150,
"height": 80,
"content": "**Memory ☝️**\nAdd the Session ID "
},
"typeVersion": 1
},
{
"id": "398fdf7a-508d-4a0a-8c2c-1f0075b6ad56",
"name": "Check Availability",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
200,
160
],
"parameters": {
"options": {},
"timeMax": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End_Time', ``, 'string') }}",
"timeMin": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start_Time', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "3009ae2f09f9ecab6eaa1d36f0b38c099f0e370759cad1c51691f9dc0fbd64fd@group.calendar.google.com",
"cachedResultName": "Prise de rendez vous pour les Medcins "
},
"resource": "calendar"
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "NtT31ekfbGzWyc9k",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "43673597-ffb6-4d38-8fb0-975eb47976f6",
"name": "Creat event",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
360,
160
],
"parameters": {
"end": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End', ``, 'string') }}",
"start": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start', ``, 'string') }}",
"calendar": {
"__rl": true,
"mode": "list",
"value": "3009ae2f09f9ecab6eaa1d36f0b38c099f0e370759cad1c51691f9dc0fbd64fd@group.calendar.google.com",
"cachedResultName": "Prise de rendez vous pour les Medcins "
},
"additionalFields": {}
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "NtT31ekfbGzWyc9k",
"name": "Google Calendar account"
}
},
"typeVersion": 1.3
},
{
"id": "650b5d36-7b52-4bb2-953a-d9ee278a35eb",
"name": "Add data",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
500,
160
],
"parameters": {
"columns": {
"value": {
"Nom complet": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Nom_complet', ``, 'string') }}",
"Date / heure ": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Date___heure_', ``, 'string') }}",
"Numéro de telephone": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Num_ro_de_telephone', ``, 'string') }}"
},
"schema": [
{
"id": "Nom complet",
"type": "string",
"display": true,
"required": false,
"displayName": "Nom complet",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Numéro de telephone",
"type": "string",
"display": true,
"required": false,
"displayName": "Numéro de telephone",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Date / heure ",
"type": "string",
"display": true,
"required": false,
"displayName": "Date / heure ",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Confirmé",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "Confirmé",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JAbg-TJZr7fqiRMAjQY6baDAkQoigzUd4YqbTPoQqWE/edit#gid=0",
"cachedResultName": "Feuille 1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1JAbg-TJZr7fqiRMAjQY6baDAkQoigzUd4YqbTPoQqWE",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JAbg-TJZr7fqiRMAjQY6baDAkQoigzUd4YqbTPoQqWE/edit?usp=drivesdk",
"cachedResultName": "RDV Medcin"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "Q4J5dsFmt1OSnjNV",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "39048f71-6a4c-4181-947e-5e2545c4dc1e",
"connections": {
"AI Agent": {
"main": [
[]
]
},
"Add data": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Creat event": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Check Availability": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
}
}
}