{
  "name": "Create an auto-journal from WhatsApp with AI transcription",
  "nodes": [
    {
      "id": "a759a56e-74ee-4bce-bd62-55e0004bf1cf",
      "name": "Main Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1488,
        384
      ],
      "parameters": {
        "width": 600,
        "height": 832,
        "content": "# WhatsApp Auto-Journal with AI Transcription\n\nAutomatically save your WhatsApp messages, voice notes, and images to a Google Doc with AI-powered transcription.\n\n## How it works\n\n1. Send text, audio, "
      }
    },
    {
      "id": "6b2b1215-1728-4ba6-9556-ac0585588088",
      "name": "Security Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        480
      ],
      "parameters": {
        "width": 380,
        "height": 308,
        "content": "## Security Filter\n\nValidates incoming messages against authorized phone numbers only."
      }
    },
    {
      "id": "f0be15f1-1830-47c6-9382-fcedc92e2d6c",
      "name": "Trigger Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        592
      ],
      "parameters": {
        "width": 320,
        "height": 280,
        "content": "## WhatsApp Input\n\nReceives all incoming WhatsApp messages."
      }
    },
    {
      "id": "bb83d686-6436-4883-b4e5-9a4448e8ffe9",
      "name": "Router Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        352
      ],
      "parameters": {
        "width": 340,
        "height": 372,
        "content": "## Message Type Router\n\nRoutes messages based on content type (text, audio, or image)."
      }
    },
    {
      "id": "d8415e1d-c955-4c53-a336-1e4f36035573",
      "name": "Text Processing Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        128
      ],
      "parameters": {
        "width": 564,
        "height": 308,
        "content": "## Text Flow\n\nProcesses text messages and saves them to Google Doc."
      }
    },
    {
      "id": "fc55cae5-9066-4003-b092-b08f5e46326c",
      "name": "Audio Processing Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        576
      ],
      "parameters": {
        "width": 1596,
        "height": 360,
        "content": "## Audio Flow\n\nDownloads audio, transcribes with AI, uploads to Drive, and saves transcription to Doc."
      }
    },
    {
      "id": "b878783b-9622-465d-867c-8118c489792c",
      "name": "Image Processing Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        1024
      ],
      "parameters": {
        "width": 1204,
        "height": 344,
        "content": "## Image Flow\n\nDownloads image, uploads to Drive, and saves link to Doc."
      }
    },
    {
      "id": "824e6cbf-3e25-426c-8ecc-331885a7558f",
      "name": "Authorized Numbers Check",
      "type": "n8n-nodes-base.if",
      "position": [
        -352,
        608
      ]
    },
    {
      "id": "3a18e046-0bd0-4595-925b-c7f3da3df6ac",
      "name": "Route by Message Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        80,
        512
      ]
    },
    {
      "id": "2f024bdc-46af-4b8a-97a4-23d73607bf18",
      "name": "Get Audio URL",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        496,
        704
      ]
    },
    {
      "id": "699c8e6a-34e0-4f6a-8b1f-779bb7573f4e",
      "name": "Download Audio File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        672,
        704
      ]
    },
    {
      "id": "cb0b7ac4-6e7c-4b83-8e61-b9aa0d36b256",
      "name": "Get Image URL",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        432,
        1184
      ]
    },
    {
      "id": "f48c3129-bd5e-4f7f-a217-14b5e2f225c9",
      "name": "Download Image File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        656,
        1184
      ]
    },
    {
      "id": "8300b7b7-ca7e-4dc0-beb2-9f30d06e4c06",
      "name": "Save Text to Google Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        528,
        272
      ]
    },
    {
      "id": "6b399003-bd56-461f-9360-a9ae5809f46e",
      "name": "Save Audio Transcription to Google Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1568,
        704
      ]
    },
    {
      "id": "89168bb7-3e74-45cf-bbb3-fd003dafd120",
      "name": "Upload Audio to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1344,
        704
      ]
    },
    {
      "id": "d54daba6-dead-4101-af39-7939261c8e7e",
      "name": "Transcribe Audio with AI",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        896,
        704
      ]
    },
    {
      "id": "7cdf2e52-2457-413f-a0dd-49a340e0cd01",
      "name": "Upload Image to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        880,
        1184
      ]
    },
    {
      "id": "eb247069-5d4a-4b94-a30f-3328af4992a7",
      "name": "Send Text Confirmation",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        800,
        272
      ]
    },
    {
      "id": "9c985a79-8a9d-4bff-bbb0-9e83ba50a3bf",
      "name": "Send Audio Confirmation",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1792,
        704
      ]
    },
    {
      "id": "1f8bb4c6-9e57-4345-ad53-7f4ed8c50966",
      "name": "Send Image Confirmation",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1328,
        1184
      ]
    },
    {
      "id": "eb1c44f7-4bff-49f1-a922-0037c678a684",
      "name": "Convert Audio to Binary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1120,
        704
      ]
    },
    {
      "id": "c8d41901-ec09-4dca-907c-c2a8db2de40d",
      "name": "Save Image Link to Google Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1104,
        1184
      ]
    },
    {
      "id": "6ec519c7-21a6-4dd5-9624-f5e1c15aa479",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -592,
        704
      ]
    }
  ],
  "connections": {
    "Get Audio URL": {
      "main": [
        [
          {
            "node": "Download Audio File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image URL": {
      "main": [
        [
          {
            "node": "Download Image File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Authorized Numbers Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Audio File": {
      "main": [
        [
          {
            "node": "Transcribe Audio with AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image File": {
      "main": [
        [
          {
            "node": "Upload Image to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Message Type": {
      "main": [
        [
          {
            "node": "Save Text to Google Doc",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Audio URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Image URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Audio to Drive": {
      "main": [
        [
          {
            "node": "Save Audio Transcription to Google Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image to Drive": {
      "main": [
        [
          {
            "node": "Save Image Link to Google Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Audio to Binary": {
      "main": [
        [
          {
            "node": "Upload Audio to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Text to Google Doc": {
      "main": [
        [
          {
            "node": "Send Text Confirmation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Authorized Numbers Check": {
      "main": [
        [
          {
            "node": "Route by Message Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Audio with AI": {
      "main": [
        [
          {
            "node": "Convert Audio to Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Image Link to Google Doc": {
      "main": [
        [
          {
            "node": "Send Image Confirmation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Audio Transcription to Google Doc": {
      "main": [
        [
          {
            "node": "Send Audio Confirmation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}