AutomationFlowsSlack & Telegram › Auto-reply to Faqs on Whatsapp Using Postgres (module "faq")

Auto-reply to Faqs on Whatsapp Using Postgres (module "faq")

ByAndrew @boanse on n8n.io

This workflow is designed for businesses or individuals who want to automate responses to frequently asked questions via WhatsApp, while managing their question-and-answer database using Postgres.

Event trigger★★★★★ complexity31 nodesWhatsApp TriggerWhatsAppPostgres
Slack & Telegram Trigger: Event Nodes: 31 Complexity: ★★★★★ Added:

This workflow corresponds to n8n.io template #3650 — we link there as the canonical source.

This workflow follows the WhatsApp → WhatsApp Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "GBuLBrPlWxWejX9i",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "WA-Bot-Module-FAQ-v1-db-sell-full",
  "tags": [
    {
      "id": "XPad0ERjSdqfxG52",
      "name": "module",
      "createdAt": "2025-03-31T08:11:00.151Z",
      "updatedAt": "2025-03-31T08:11:00.151Z"
    },
    {
      "id": "NeRMkUNq0sRVlL99",
      "name": "whatsapp",
      "createdAt": "2025-03-10T18:20:40.864Z",
      "updatedAt": "2025-03-10T18:20:40.864Z"
    },
    {
      "id": "2ocrWSzdKoCOU2AC",
      "name": "sell",
      "createdAt": "2025-04-19T15:39:51.859Z",
      "updatedAt": "2025-04-19T15:39:51.859Z"
    }
  ],
  "nodes": [
    {
      "id": "30f09326-a3d2-42d0-b9b8-f6690b0630ae",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        40,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7a1af53e-5453-4200-a1f9-bf8620d85e58",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d136ac5f-e513-454c-8c6e-bedc268ebdb7",
      "name": "Starts",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        480,
        560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6df4273c-561e-476e-96ff-52c0cbaf0622",
      "name": "Upsert Bot Status",
      "type": "n8n-nodes-base.postgres",
      "position": [
        700,
        560
      ],
      "parameters": {},
      "typeVersion": 2.5
    },
    {
      "id": "a0384747-2f60-4197-a6d3-1ec9afd2321e",
      "name": "Get Bot Status",
      "type": "n8n-nodes-base.postgres",
      "position": [
        480,
        760
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2.5,
      "alwaysOutputData": true
    },
    {
      "id": "f3a8d4e7-cb16-4886-8929-128339be9b01",
      "name": "Commands",
      "type": "n8n-nodes-base.switch",
      "position": [
        980,
        760
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "1422f8f4-7f5d-4d30-93a0-43ec34f5cc5d",
      "name": "Main Menu",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1260,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ec0bc2c0-4cbf-4b16-9ef3-21c42ce2531b",
      "name": "Initialization",
      "type": "n8n-nodes-base.set",
      "position": [
        260,
        760
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0146cc0a-4e53-4bc0-be87-01c0e27f472e",
      "name": "Union list ",
      "type": "n8n-nodes-base.summarize",
      "position": [
        1920,
        960
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5cecfb54-1214-4a85-845f-6de728b31990",
      "name": "Union Number with Question ",
      "type": "n8n-nodes-base.set",
      "position": [
        1700,
        960
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1f19f7bb-d409-4adf-9282-8e70b534e608",
      "name": "List?",
      "type": "n8n-nodes-base.if",
      "position": [
        1260,
        960
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "929052df-317f-4cd6-b34d-870b5b03eab0",
      "name": "Get FAQ",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1700,
        1160
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2.5
    },
    {
      "id": "5a44e221-66a5-4b7a-8b15-bf417b5de654",
      "name": "Get FAQs",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        960
      ],
      "parameters": {},
      "typeVersion": 2.5
    },
    {
      "id": "60eaee6b-c0d2-433e-93fd-0ae51642b97a",
      "name": "FAQs",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2140,
        960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c4635a70-fe7d-4bde-9b3b-846e193136c3",
      "name": "FAQ",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2140,
        1160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ecba3de4-581b-4e1e-87fe-d8433601fa16",
      "name": "Get FAQs ",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        1160
      ],
      "parameters": {},
      "typeVersion": 2.5
    },
    {
      "id": "dcd29044-79f6-4ce3-9030-a5622d5af1e7",
      "name": "Update Bot Status on MANAGER",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        560
      ],
      "parameters": {},
      "typeVersion": 2.5
    },
    {
      "id": "7ec46303-6302-4b15-9d5f-e46ce5485389",
      "name": "Request Manager",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1260,
        560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c41d4c5e-d714-4a14-93aa-2d999256415c",
      "name": "Add Consultation request",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        1400
      ],
      "parameters": {},
      "typeVersion": 2.5
    },
    {
      "id": "a0e9af9e-413c-4917-9a4c-23c315b6c1ad",
      "name": "Request Success",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1700,
        1400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6c112dbb-3b9b-49f1-b8ec-d1956b56b639",
      "name": "Update Bot Status on START",
      "type": "n8n-nodes-base.postgres",
      "position": [
        2140,
        1400
      ],
      "parameters": {},
      "typeVersion": 2.5
    },
    {
      "id": "bd71702b-b917-43d6-afa5-437d92dec68b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1220,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8f9fb861-a8fa-4fb6-82bc-7e5cc7f61a40",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1420,
        1360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fed8a3f2-d9e3-4a8d-a35a-97427d9c56a4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1220,
        920
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "24dcf954-6e70-4e4d-9926-7f9aeb1bfc51",
      "name": "Define Flow",
      "type": "n8n-nodes-base.switch",
      "position": [
        700,
        760
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "68ec3dc3-bd9d-4223-889a-051e4de46cd7",
      "name": "Request to Manager",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1920,
        1400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9eb78841-0291-4948-8cd8-1524a7b1f64f",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        760
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b74d73f8-ed80-4902-a1e5-af17e69635f1",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1311b611-f074-42d4-9d8c-7d503ec3c887",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        1080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "66bf4e2e-3c23-47af-bdb5-10513474f161",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        1080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "51536995-c5d9-47aa-bcb1-bfab0d69d6ec",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5cbe810c-fc5b-43ae-a0ac-f22c8c23fc53",
  "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
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow is designed for businesses or individuals who want to automate responses to frequently asked questions via WhatsApp, while managing their question-and-answer database using Postgres.

Source: https://n8n.io/workflows/3650/ — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

This workflow is for businesses or services that require managing customer reservations or appointments through a Telegram bot and storing reservation details in a PostgreSQL database.

Postgres, WhatsApp, WhatsApp Trigger
Slack & Telegram

This workflow is designed for educators, HR teams, or anyone who needs to create and distribute quizzes or tests via WhatsApp and automatically store and analyze responses in a PostgreSQL database.

WhatsApp, Postgres, WhatsApp Trigger
Slack & Telegram

This workflow is designed for businesses or developers who want to integrate product information into a WhatsApp bot and allow users to retrieve details about products from a database.

WhatsApp Trigger, WhatsApp, Postgres
Slack & Telegram

This comprehensive N8N automation template revolutionizes content creation by delivering a complete end-to-end solution for AI-powered blog generation. Transform simple ideas into fully SEO-optimized,

Slack Trigger, Telegram Trigger, Gmail Trigger +16
Slack & Telegram

This template is ideal for users managing Telegram channels who want to automate the process of posting messages, including text and images, directly from an bot.

Telegram Trigger, Postgres, Telegram