This workflow corresponds to n8n.io template #4051 — we link there as the canonical source.
This workflow follows the Agent → Google Calendar recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "IneqsTtizvyTbzuW",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "\ud83e\udef6 Taxi Booking Support",
"tags": [
{
"id": "no8Mb078mvRgw7PS",
"name": "DEMO",
"createdAt": "2025-04-30T05:34:10.330Z",
"updatedAt": "2025-04-30T05:34:10.330Z"
},
{
"id": "ARpmcvwbJW5SeJBu",
"name": "Support",
"createdAt": "2025-05-05T10:21:06.618Z",
"updatedAt": "2025-05-05T10:21:06.618Z"
},
{
"id": "M2uPwGVjWmavBPky",
"name": "2.0",
"createdAt": "2025-05-01T16:38:48.524Z",
"updatedAt": "2025-05-01T16:38:48.524Z"
}
],
"nodes": [
{
"id": "0663639c-ff0b-40ff-abb5-c0cfad5cec9b",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
740,
-260
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "ad6e6c34-f39c-4668-8a63-0a02c18776d3",
"name": "xAI @grok-2-1212",
"type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
"position": [
720,
-80
],
"parameters": {},
"typeVersion": 1
},
{
"id": "684e9b26-d904-4eef-911e-1f26fd95f123",
"name": "Status Switch",
"type": "n8n-nodes-base.switch",
"position": [
1140,
-260
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "5e376525-9eb2-4a66-aca2-d4f046671eeb",
"name": "Set Cancel Booking",
"type": "n8n-nodes-base.postgres",
"position": [
1640,
-400
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.6
},
{
"id": "88930c90-5e56-484a-9965-1fc0619b20a0",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"notes": "Every 5m",
"position": [
0,
-260
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1.2
},
{
"id": "6e146613-6f30-4d2b-b9d8-5e73ce3d69a1",
"name": "Booking",
"type": "n8n-nodes-base.set",
"position": [
480,
-260
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "8a81ec5d-c71a-4206-8b9e-2f32704234f7",
"name": "Call Back",
"type": "n8n-nodes-base.executeWorkflow",
"notes": "Demo Call Back",
"position": [
1640,
-220
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1.2
},
{
"id": "2f25bf32-0139-4f75-a5da-cfe3f9adbbc1",
"name": "Open Hold Booking",
"type": "n8n-nodes-base.postgres",
"notes": "> 5m",
"position": [
260,
-260
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 2.6
},
{
"id": "78253c02-a270-47fe-a3b1-222bf1a13a06",
"name": "If Hold Expired",
"type": "n8n-nodes-base.if",
"notes": "TTL 5m",
"position": [
1420,
140
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 2.2
},
{
"id": "032b64d2-1ea4-45fb-9f01-9dc58b4b5841",
"name": "If Open Expired",
"type": "n8n-nodes-base.if",
"notes": "TTL 10m",
"position": [
1420,
-340
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 2.2
},
{
"id": "051f6eba-62e4-433a-8521-6a85718ce9f0",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
180,
-340
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "33c29ee9-f1fa-4d22-b6c1-9eb4ed3e1f40",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
-520
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4c5e982c-a667-4d66-814d-88d2ef9d59d9",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1080,
-420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "849fc8d3-b6b8-4846-8a59-c25904bdcdf7",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
20
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "847a61c6-5ee0-4ded-9cdc-1e09e7dcea4e",
"name": "Delete Event",
"type": "n8n-nodes-base.googleCalendar",
"position": [
1880,
-400
],
"parameters": {},
"executeOnce": true,
"typeVersion": 1.3
}
],
"active": false,
"settings": {
"timezone": "Etc/UTC",
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": "vuso7W8t402BPcT2",
"executionOrder": "v1",
"executionTimeout": -1
},
"versionId": "3b4b9971-0c49-4ac9-9b5e-ce978c406adf",
"connections": {
"Booking": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Status Switch",
"type": "main",
"index": 0
}
]
]
},
"Status Switch": {
"main": [
[
{
"node": "If Open Expired",
"type": "main",
"index": 0
}
],
[
{
"node": "If Hold Expired",
"type": "main",
"index": 0
}
]
]
},
"If Hold Expired": {
"main": [
[]
]
},
"If Open Expired": {
"main": [
[
{
"node": "Set Cancel Booking",
"type": "main",
"index": 0
}
],
[
{
"node": "Call Back",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Open Hold Booking",
"type": "main",
"index": 0
}
]
]
},
"xAI @grok-2-1212": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Open Hold Booking": {
"main": [
[
{
"node": "Booking",
"type": "main",
"index": 0
}
]
]
},
"Set Cancel Booking": {
"main": [
[
{
"node": "Delete Event",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Template was created in n8n v1.90.2 Schedule Trigger node Postgres node AI Agent node Google Calendar node Execute Sub-workflow If node, Switch node, Code node, Edit Fields (Set) Sub-workflow: Demo Call Back (or your own node) Scaling Design for n8n Queue mode in production…
Source: https://n8n.io/workflows/4051/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
Complete PostgreSQL-backed system: Keyword scoring → AI research → Multi-part content generation → fal.ai Nano Banana image generation → WordPress publishing
This workflow is for beauty salons who want consistent, high‑quality social media content without writing every post manually. It also suits agencies and automation builders who manage multiple beauty
Automate Microsoft Teams Meeting Analysis with GPT-4.1, Outlook & Mem.ai Watch the YouTube video to get started Follow along with the blog post
System Architecture Two integrated N8N workflows providing automated US stock portfolio management through Telegram: