{
  "name": "Manage finances, tasks, tweets and Gmail with GPT‑4.1 on WhatsApp",
  "nodes": [
    {
      "id": "a42f93ee-e6fa-4040-a1b6-62fc329f70b9",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        864,
        16
      ]
    },
    {
      "id": "f257b156-dc41-4492-b348-a154cbe3c20c",
      "name": "Append row in sheet in Google Sheets",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        944,
        432
      ]
    },
    {
      "id": "dd1a9dc6-7abc-42fb-a4d4-40ca980333f3",
      "name": "Get row(s) in sheet in Google Sheets",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1072,
        432
      ]
    },
    {
      "id": "dc990648-0a23-4932-8188-0617818bf885",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        816,
        432
      ]
    },
    {
      "id": "393a3daf-e91c-4e7b-8de5-074b50c7f098",
      "name": "expense-tracker",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        912,
        224
      ]
    },
    {
      "id": "587260b9-5105-493e-b4de-cfb61b5eb039",
      "name": "Task-manager-agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1536,
        224
      ]
    },
    {
      "id": "bcd84d68-b761-4619-9e7f-410452c7e647",
      "name": "Tweet-agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        2144,
        224
      ]
    },
    {
      "id": "17506000-9c4f-4b52-998c-537efbd94fd2",
      "name": "Create Tweet in X",
      "type": "n8n-nodes-base.twitterTool",
      "position": [
        2304,
        432
      ]
    },
    {
      "id": "42fd020a-dcc1-402e-9af7-6f53ba274c49",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2160,
        432
      ]
    },
    {
      "id": "b989707a-6baf-46e6-9d44-5c97426992e0",
      "name": "get-gmail",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        2592,
        224
      ]
    },
    {
      "id": "fe0a295f-5852-4915-a82c-8e6d4cfc90dc",
      "name": "Get many messages in Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        2736,
        432
      ]
    },
    {
      "id": "b00337c5-da5b-4347-ba20-887752b91999",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2592,
        432
      ]
    },
    {
      "id": "b27b1739-fa14-41ab-bb63-dd7f094a744d",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        400,
        0
      ]
    },
    {
      "id": "42e2c543-db67-4b21-92a9-cd36ee33a84b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1296,
        432
      ]
    },
    {
      "id": "df9c0dce-d5f9-4c86-94cd-8ccb481c3908",
      "name": "Transcribe a recording",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        784,
        -528
      ]
    },
    {
      "id": "52935b3c-e4dd-4978-beae-4a9fc5dab7e7",
      "name": "download-audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        -528
      ]
    },
    {
      "id": "f462c7b2-2164-4aed-994f-a85b1dd48531",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        128,
        -464
      ]
    },
    {
      "id": "de5adec9-4c8c-406f-8f5a-1bd3aab0f5f2",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -112,
        -432
      ]
    },
    {
      "id": "5583e250-b016-488b-a6d4-157ad21d7d11",
      "name": "Generate audio",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2256,
        -288
      ]
    },
    {
      "id": "ee4f85cd-1a5e-4ab4-94a5-5888e57dbf35",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        736,
        16
      ]
    },
    {
      "id": "ef6750dd-2606-46cc-b3d5-5def85de005c",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        2032,
        -192
      ]
    },
    {
      "id": "1d6ec277-c2b3-4f41-a90c-e7a2fd93b239",
      "name": "main-agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1568,
        -192
      ]
    },
    {
      "id": "9d2c7f04-423e-4084-89ca-e2e46f46efa4",
      "name": "Create a task in Google Tasks",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1424,
        432
      ]
    },
    {
      "id": "9f043c17-fb66-4a10-8e43-c15c98d533f5",
      "name": "create list",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1552,
        432
      ]
    },
    {
      "id": "e5426f29-a5f1-4d39-9202-8a4ead033ac3",
      "name": "update task",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1680,
        432
      ]
    },
    {
      "id": "7b8e3f6c-b9ff-4254-95dd-9d5e4fdea014",
      "name": "get list",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1808,
        432
      ]
    },
    {
      "id": "5a8af285-2a03-4052-afad-401f29d0971a",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -192,
        -144
      ]
    },
    {
      "id": "dbfe4c17-b977-4359-8702-8aa26b2c4302",
      "name": "get tasks",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1936,
        432
      ]
    },
    {
      "id": "482968cb-5a05-4c74-bae3-10a08e1f0ead",
      "name": "quick-web-search",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        560,
        16
      ]
    },
    {
      "id": "30df0de5-beea-4ed0-8ee8-a912804a8ea7",
      "name": "send audio response",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2480,
        -288
      ]
    },
    {
      "id": "3f88db87-efe8-4fab-95d6-87356f19e993",
      "name": "send text response",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2256,
        -96
      ]
    },
    {
      "id": "7a6cdfac-b462-4538-b22a-ee9bf6846c13",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        -544
      ],
      "parameters": {
        "width": 736,
        "height": 800,
        "content": "\n## How it works\n1. Message arrives via Green-API webhook (text or voice)  \n2. Voice messages → downloaded → transcribed (OpenAI Whisper)  \n3. Main router agent reads intent and selects exactly one su"
      }
    },
    {
      "id": "1913fdaa-963b-4367-bf7c-65cdf2384b16",
      "name": "set audio to one",
      "type": "n8n-nodes-base.set",
      "position": [
        1008,
        -528
      ]
    },
    {
      "id": "162d4985-3b55-4c83-944a-7329fc65d695",
      "name": "audio to 0",
      "type": "n8n-nodes-base.set",
      "position": [
        1008,
        -336
      ]
    },
    {
      "id": "aa8a710a-d07d-47ff-bda4-40a361d03e70",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        -656
      ],
      "parameters": {
        "width": 1344,
        "height": 448,
        "content": "## Classify input"
      }
    },
    {
      "id": "1041dbbb-a33e-4b72-9cd9-1f16b661687a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1952,
        -368
      ],
      "parameters": {
        "width": 864,
        "height": 416,
        "content": "## send response according to input"
      }
    },
    {
      "id": "025c6b12-5d32-4975-81dd-f800309df132",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        -272
      ],
      "parameters": {
        "width": 400,
        "height": 256,
        "content": "## main Agent"
      }
    },
    {
      "id": "35551b4d-f23c-4eba-bb6c-791dea506d9b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        176
      ],
      "parameters": {
        "width": 384,
        "height": 448,
        "content": "## Sub Agent for expense Tracking\n"
      }
    },
    {
      "id": "f8630511-aefd-46bf-9454-279df9c46aab",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        160
      ],
      "parameters": {
        "width": 752,
        "height": 448,
        "content": "## Sub Agent for Google Tasks\n"
      }
    },
    {
      "id": "a1399821-275d-4d3a-9002-6fcf970baf8b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        160
      ],
      "parameters": {
        "width": 384,
        "height": 448,
        "content": "## Sub Agent for Posting Tweet"
      }
    },
    {
      "id": "18b7565d-54b8-4a57-94eb-217bc9adea04",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        144
      ],
      "parameters": {
        "width": 384,
        "height": 448,
        "content": "## Sub Agent for Gmail\n"
      }
    },
    {
      "id": "d90b4aee-88ac-4284-8908-c6d0bc9383b9",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        -80
      ],
      "parameters": {
        "width": 656,
        "height": 208,
        "content": "## Tools to do websearch and calculate"
      }
    },
    {
      "id": "12f48fce-97e6-49b1-b484-373200c7e11b",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -224
      ],
      "parameters": {
        "width": 256,
        "height": 256,
        "content": "## Chat Trigger for manual execution"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Generate audio",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "send text response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "download-audio",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "audio to 0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get list": {
      "ai_tool": [
        [
          {
            "node": "Task-manager-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "get tasks": {
      "ai_tool": [
        [
          {
            "node": "Task-manager-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "get-gmail": {
      "ai_tool": [
        [
          {
            "node": "main-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "main-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "audio to 0": {
      "main": [
        [
          {
            "node": "main-agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "main-agent": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tweet-agent": {
      "ai_tool": [
        [
          {
            "node": "main-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "create list": {
      "ai_tool": [
        [
          {
            "node": "Task-manager-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "update task": {
      "ai_tool": [
        [
          {
            "node": "Task-manager-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "main-agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Generate audio": {
      "main": [
        [
          {
            "node": "send audio response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "download-audio": {
      "main": [
        [
          {
            "node": "Transcribe a recording",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "expense-tracker": {
      "ai_tool": [
        [
          {
            "node": "main-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "quick-web-search": {
      "ai_tool": [
        [
          {
            "node": "main-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "set audio to one": {
      "main": [
        [
          {
            "node": "main-agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Tweet in X": {
      "ai_tool": [
        [
          {
            "node": "Tweet-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Task-manager-agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "main-agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "get-gmail",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Tweet-agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "expense-tracker",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Task-manager-agent": {
      "ai_tool": [
        [
          {
            "node": "main-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe a recording": {
      "main": [
        [
          {
            "node": "set audio to one",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many messages in Gmail": {
      "ai_tool": [
        [
          {
            "node": "get-gmail",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "main-agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a task in Google Tasks": {
      "ai_tool": [
        [
          {
            "node": "Task-manager-agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet in Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "expense-tracker",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "expense-tracker",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}