{
  "name": "Research assistant for WhatsApp using Twilio, Perplexity and Claude",
  "nodes": [
    {
      "id": "f3a0dc1a-f64b-4f2e-945a-2cfdfe607e45",
      "name": "Fetch Whatsapp Request",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -528,
        0
      ]
    },
    {
      "id": "51fc09d1-55e2-4198-977b-79066559d246",
      "name": "Perform Deep Research",
      "type": "n8n-nodes-base.perplexity",
      "position": [
        -224,
        0
      ]
    },
    {
      "id": "783daa3b-db9e-4a8c-b0e1-60679ee293cf",
      "name": "Refine Generated Output for Whatsapp",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        112,
        0
      ]
    },
    {
      "id": "e613cdb5-7ba4-4519-b15e-a0174fdb55d6",
      "name": "Send Output in Whatsapp",
      "type": "n8n-nodes-base.twilio",
      "position": [
        640,
        0
      ]
    },
    {
      "id": "ede2a3ae-6dc9-486e-999f-dcb9737fd79b",
      "name": "Claude Sonnet 4",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        112,
        208
      ]
    },
    {
      "id": "3c93f1c8-e00e-4791-b10f-02f9c0d82630",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -224
      ],
      "parameters": {
        "width": 288,
        "height": 560,
        "content": "### 📲 WhatsApp Gateway\n\n**Function:** This is the front door. It catches incoming messages from a user via the Twilio webhook.\n\n**Trigger:** Receives a POST request from Twilio.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n**Out"
      }
    },
    {
      "id": "198ba40c-5f71-4cef-a69e-fb621829281d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -224
      ],
      "parameters": {
        "width": 288,
        "height": 560,
        "content": "### 🧠 The AI Research Engine\n\n**Function:** This node is the core researcher. It takes the user's simple question and performs a deep, multi-source dive using Perplexity's powerful `Sonar Pro` model.\n"
      }
    },
    {
      "id": "eada649f-b85c-4696-a670-eeafb6ac2773",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -224
      ],
      "parameters": {
        "width": 528,
        "height": 560,
        "content": "### 🎨 The Content Stylist\n\n**Function:** This node acts as an expert editor. It takes the raw research from Perplexity and polishes it into a perfect WhatsApp message.\n\n**Key Actions:** Adds emojis, e"
      }
    },
    {
      "id": "097b9242-ce57-48a2-9be5-f3e59298b634",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        -224
      ],
      "parameters": {
        "width": 320,
        "height": 560,
        "content": "### 🚀 WhatsApp Dispatch\n\n**Function:** This is the final step. It sends the beautifully formatted research summary back to the user who asked for it.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n* **Clever Logic:** It automa"
      }
    },
    {
      "id": "c5462997-d89d-4ae6-9d62-d5bca26bd02f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        -224
      ],
      "parameters": {
        "width": 368,
        "height": 560,
        "content": "## ⭐ Workflow Summary\n\n> ### 🤖 WhatsApp AI Research Assistant\n>\n> This workflow powers a fully automated, on-demand research assistant that operates directly within WhatsApp. It's designed to take any"
      }
    }
  ],
  "connections": {
    "Claude Sonnet 4": {
      "ai_languageModel": [
        [
          {
            "node": "Refine Generated Output for Whatsapp",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Perform Deep Research": {
      "main": [
        [
          {
            "node": "Refine Generated Output for Whatsapp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Whatsapp Request": {
      "main": [
        [
          {
            "node": "Perform Deep Research",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Refine Generated Output for Whatsapp": {
      "main": [
        [
          {
            "node": "Send Output in Whatsapp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}