Google日历管理工作流
这是一个AI Chatbot、Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 Agent、ChatTrigger、LmChatOpenAi、ToolWorkflow、MemoryBufferWindow 等节点。 使用GPT-4o虚拟助手(编排器)管理Google日历事件
- •OpenAI API Key
{
"id": "BEJjQAqk5n3Yc0Q4",
"meta": {
"instanceId": "146ab8f1ce0cef4bd9c6b91db262ad7cd77638e200455d5838ba053a27e415bc",
"templateCredsSetupCompleted": true
},
"name": "ca7ai Google_Calendar_workflow",
"tags": [],
"nodes": [
{
"id": "a0403acd-098a-491b-bf2b-0a55fac37560",
"name": "当收到聊天消息时",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
0,
0
],
"webhookId": "c7cc7c8c-c07b-44ca-9108-052810da3ee0",
"parameters": {
"options": {}
},
"typeVersion": 1.3
},
{
"id": "2c770716-4b5c-491e-ab26-120b34452558",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
208,
0
],
"parameters": {
"options": {
"systemMessage": "You are Albert, a helpful google calendar assistant. You are to use the \"sub_agent_cal\" to get calendar events, create calendar events, and delete calendar events."
}
},
"typeVersion": 2.2
},
{
"id": "5cd09248-ed99-456e-8d66-9b81241aa1db",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
80,
208
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "fYx3byxTFkzmN2m2",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "0b829bdb-c01c-4985-baaf-61527793ada1",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
224,
208
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "0aa51268-61c0-411b-bdd7-4fd2a241c895",
"name": "sub_agent_cal",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
528,
176
],
"parameters": {
"workflowId": {
"__rl": true,
"mode": "list",
"value": "41tGOnU3hN9zjJln",
"cachedResultName": "Google_Cal_sub_agent"
},
"description": "=此工作流有助于管理 Google Calendar 事件。",
"workflowInputs": {
"value": {
"text": "={{ $json.chatInput }}",
"session_id": "={{ $json.sessionId }}"
},
"schema": [
{
"id": "text",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "text",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "session_id",
"type": "string",
"display": true,
"required": false,
"displayName": "session_id",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.2
},
{
"id": "189828ba-266e-4c4b-8db0-6b9c0a2550ae",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
0
],
"parameters": {
"color": 4,
"width": 336,
"height": 176,
"content": "🟢 父级 — 聊天入口"
},
"typeVersion": 1
},
{
"id": "c74d95ad-d8ad-4082-9ee3-bfa4effed6c8",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
208
],
"parameters": {
"width": 336,
"height": 112,
"content": "🔗 编排流程"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "99ffa58b-9bb1-4adb-a009-abc2d61ca3f7",
"connections": {
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"sub_agent_cal": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于AI Chatbot、Multimodal AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Calistus Christian
@ca7aiAutomation strategist and AI workflow architect creating intelligent, agent-driven processes that streamline operations. I build advanced n8n solutions integrating AI, cloud services, and real-time data orchestration for scalable impact. Explore my free workflows to get started. Premium, custom-built solutions are also available. Connect with me on LinkedIn for tailored automation expertise.
分享此工作流