{
  "name": "Auto-reply to FAQs on WhatsApp using Postgres (Module \"FAQ\")",
  "nodes": [
    {
      "id": "30f09326-a3d2-42d0-b9b8-f6690b0630ae",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        40,
        760
      ]
    },
    {
      "id": "7a1af53e-5453-4200-a1f9-bf8620d85e58",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        540
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d136ac5f-e513-454c-8c6e-bedc268ebdb7",
      "name": "Starts",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        480,
        560
      ]
    },
    {
      "id": "6df4273c-561e-476e-96ff-52c0cbaf0622",
      "name": "Upsert Bot Status",
      "type": "n8n-nodes-base.postgres",
      "position": [
        700,
        560
      ]
    },
    {
      "id": "a0384747-2f60-4197-a6d3-1ec9afd2321e",
      "name": "Get Bot Status",
      "type": "n8n-nodes-base.postgres",
      "position": [
        480,
        760
      ]
    },
    {
      "id": "f3a8d4e7-cb16-4886-8929-128339be9b01",
      "name": "Commands",
      "type": "n8n-nodes-base.switch",
      "position": [
        980,
        760
      ]
    },
    {
      "id": "1422f8f4-7f5d-4d30-93a0-43ec34f5cc5d",
      "name": "Main Menu",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1260,
        760
      ]
    },
    {
      "id": "ec0bc2c0-4cbf-4b16-9ef3-21c42ce2531b",
      "name": "Initialization",
      "type": "n8n-nodes-base.set",
      "position": [
        260,
        760
      ]
    },
    {
      "id": "0146cc0a-4e53-4bc0-be87-01c0e27f472e",
      "name": "Union list ",
      "type": "n8n-nodes-base.summarize",
      "position": [
        1920,
        960
      ]
    },
    {
      "id": "5cecfb54-1214-4a85-845f-6de728b31990",
      "name": "Union Number with Question ",
      "type": "n8n-nodes-base.set",
      "position": [
        1700,
        960
      ]
    },
    {
      "id": "1f19f7bb-d409-4adf-9282-8e70b534e608",
      "name": "List?",
      "type": "n8n-nodes-base.if",
      "position": [
        1260,
        960
      ]
    },
    {
      "id": "929052df-317f-4cd6-b34d-870b5b03eab0",
      "name": "Get FAQ",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1700,
        1160
      ]
    },
    {
      "id": "5a44e221-66a5-4b7a-8b15-bf417b5de654",
      "name": "Get FAQs",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        960
      ]
    },
    {
      "id": "60eaee6b-c0d2-433e-93fd-0ae51642b97a",
      "name": "FAQs",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2140,
        960
      ]
    },
    {
      "id": "c4635a70-fe7d-4bde-9b3b-846e193136c3",
      "name": "FAQ",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2140,
        1160
      ]
    },
    {
      "id": "ecba3de4-581b-4e1e-87fe-d8433601fa16",
      "name": "Get FAQs ",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        1160
      ]
    },
    {
      "id": "dcd29044-79f6-4ce3-9030-a5622d5af1e7",
      "name": "Update Bot Status on MANAGER",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        560
      ]
    },
    {
      "id": "7ec46303-6302-4b15-9d5f-e46ce5485389",
      "name": "Request Manager",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1260,
        560
      ]
    },
    {
      "id": "c41d4c5e-d714-4a14-93aa-2d999256415c",
      "name": "Add Consultation request",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        1400
      ]
    },
    {
      "id": "a0e9af9e-413c-4917-9a4c-23c315b6c1ad",
      "name": "Request Success",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1700,
        1400
      ]
    },
    {
      "id": "6c112dbb-3b9b-49f1-b8ec-d1956b56b639",
      "name": "Update Bot Status on START",
      "type": "n8n-nodes-base.postgres",
      "position": [
        2140,
        1400
      ]
    },
    {
      "id": "bd71702b-b917-43d6-afa5-437d92dec68b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1220,
        540
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8f9fb861-a8fa-4fb6-82bc-7e5cc7f61a40",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1420,
        1360
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fed8a3f2-d9e3-4a8d-a35a-97427d9c56a4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1220,
        920
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "24dcf954-6e70-4e4d-9926-7f9aeb1bfc51",
      "name": "Define Flow",
      "type": "n8n-nodes-base.switch",
      "position": [
        700,
        760
      ]
    },
    {
      "id": "68ec3dc3-bd9d-4223-889a-051e4de46cd7",
      "name": "Request to Manager",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1920,
        1400
      ]
    },
    {
      "id": "9eb78841-0291-4948-8cd8-1524a7b1f64f",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        760
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b74d73f8-ed80-4902-a1e5-af17e69635f1",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        500
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1311b611-f074-42d4-9d8c-7d503ec3c887",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        1080
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "66bf4e2e-3c23-47af-bdb5-10513474f161",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        1080
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "51536995-c5d9-47aa-bcb1-bfab0d69d6ec",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        500
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "List?": {
      "main": [
        [
          {
            "node": "Get FAQs",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get FAQs ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Starts": {
      "main": [
        [
          {
            "node": "Upsert Bot Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get FAQ": {
      "main": [
        [
          {
            "node": "FAQ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Commands": {
      "main": [
        [
          {
            "node": "Request Manager",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Main Menu",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "List?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get FAQs": {
      "main": [
        [
          {
            "node": "Union Number with Question ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get FAQs ": {
      "main": [
        [
          {
            "node": "Get FAQ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Flow": {
      "main": [
        [
          {
            "node": "Starts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Commands",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add Consultation request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Union list ": {
      "main": [
        [
          {
            "node": "FAQs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Bot Status": {
      "main": [
        [
          {
            "node": "Define Flow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Initialization": {
      "main": [
        [
          {
            "node": "Get Bot Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request Manager": {
      "main": [
        [
          {
            "node": "Update Bot Status on MANAGER",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request Success": {
      "main": [
        [
          {
            "node": "Request to Manager",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Initialization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request to Manager": {
      "main": [
        [
          {
            "node": "Update Bot Status on START",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Consultation request": {
      "main": [
        [
          {
            "node": "Request Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Union Number with Question ": {
      "main": [
        [
          {
            "node": "Union list ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}