{
  "name": "Manage WhatsApp chats centrally on Slack",
  "nodes": [
    {
      "id": "30fcebd0-d271-47ee-98e7-e1c9db4ae1f1",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -2740,
        120
      ]
    },
    {
      "id": "a71a46a0-72c6-43d3-a001-b9a2f57da8f5",
      "name": "Send Message in Channel",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1640,
        -180
      ]
    },
    {
      "id": "aef4c666-5e07-4692-b9f1-4049bb06e6c8",
      "name": "Slack Trigger",
      "type": "n8n-nodes-base.slackTrigger",
      "position": [
        -2700,
        920
      ]
    },
    {
      "id": "b665feac-c851-4463-851f-f723a940ce80",
      "name": "Message Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1860,
        99
      ]
    },
    {
      "id": "bbe095f2-914f-41b9-ad69-b47d0217e392",
      "name": "get audio URL",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -1640,
        20
      ]
    },
    {
      "id": "c645ad49-d722-47fe-9b1e-c8685f0322ea",
      "name": "get document URL",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -1640,
        420
      ]
    },
    {
      "id": "2c5eb333-0d26-4ce4-b4ac-a94e183d910c",
      "name": "get image URL",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -1640,
        220
      ]
    },
    {
      "id": "78012279-114e-4b8c-bd18-3e33d537c7c8",
      "name": "Create Channel",
      "type": "n8n-nodes-base.slack",
      "position": [
        -2520,
        120
      ]
    },
    {
      "id": "9413ee28-9b92-409a-807a-38b1139cd837",
      "name": "get All Channels",
      "type": "n8n-nodes-base.slack",
      "position": [
        -2300,
        120
      ]
    },
    {
      "id": "40d09c7b-aeb2-491f-864e-b92023dc8e57",
      "name": "Filter Channel by Name",
      "type": "n8n-nodes-base.filter",
      "position": [
        -2080,
        120
      ]
    },
    {
      "id": "f0ed5738-9442-42a9-bc76-bd71eaf2fb5b",
      "name": "upload media",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1200,
        220
      ]
    },
    {
      "id": "6a749b7b-78c0-4462-9019-f059d0845382",
      "name": "download media",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1420,
        220
      ]
    },
    {
      "id": "66423f74-1ce5-44e2-8b41-2dcb6d22b1a9",
      "name": "Get Channel by ID",
      "type": "n8n-nodes-base.slack",
      "position": [
        -2480,
        920
      ]
    },
    {
      "id": "5587398a-5a6b-48b4-b056-1ef2ae40aaae",
      "name": "Checking Message Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        -2260,
        920
      ]
    },
    {
      "id": "00abbd13-b397-4a8b-ac9a-5f4c7bb37823",
      "name": "Send Message",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -2040,
        1020
      ]
    },
    {
      "id": "52c609ed-0085-4762-badc-5fab0e526dfe",
      "name": "Get Media URL",
      "type": "n8n-nodes-base.slack",
      "position": [
        -2040,
        820
      ]
    },
    {
      "id": "f8d972de-add6-4858-abe8-d13ceebee263",
      "name": "Download Media",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1820,
        820
      ]
    },
    {
      "id": "1552ab2b-d8c4-4324-a1a2-4a27e981f292",
      "name": "Send Message1",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -1600,
        820
      ]
    },
    {
      "id": "592dd9e2-8b95-420a-910d-f6f3a5bd583e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2840,
        620
      ],
      "parameters": {
        "width": 1860,
        "height": 560,
        "content": "## Slack to WhatsApp Flow\n- Trigger: Slack Trigger listens for Slack messages (text or media).\n- Message Type Handling: Checking Message Type uses a Switch to determine whether it’s text or media.\n- T"
      }
    },
    {
      "id": "23ee1ef0-ad8d-4c4a-8558-40bcbbfb1406",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2840,
        -200
      ],
      "parameters": {
        "width": 1860,
        "height": 780,
        "content": "## WhatsApp to Slack Flow\n- Trigger: WhatsApp Trigger listens for new WhatsApp messages.\n- Message Type Routing: Message Type node uses a Switch to check if the message is text, audio, image, or docum"
      }
    }
  ],
  "connections": {
    "Message Type": {
      "main": [
        [
          {
            "node": "Send Message in Channel",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get audio URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get image URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get document URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Media URL": {
      "main": [
        [
          {
            "node": "Download Media",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack Trigger": {
      "main": [
        [
          {
            "node": "Get Channel by ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get audio URL": {
      "main": [
        [
          {
            "node": "download media",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get image URL": {
      "main": [
        [
          {
            "node": "download media",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Channel": {
      "main": [
        [
          {
            "node": "get All Channels",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Media": {
      "main": [
        [
          {
            "node": "Send Message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "download media": {
      "main": [
        [
          {
            "node": "upload media",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Create Channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get All Channels": {
      "main": [
        [
          {
            "node": "Filter Channel by Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get document URL": {
      "main": [
        [
          {
            "node": "download media",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Channel by ID": {
      "main": [
        [
          {
            "node": "Checking Message Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Checking Message Type": {
      "main": [
        [
          {
            "node": "Get Media URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Channel by Name": {
      "main": [
        [
          {
            "node": "Message Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}