Skip to main content

Auto-reply to FAQs on WhatsApp using Postgres (Module "FAQ")

Workflow preview

Workflow preview
100%
Auto-reply to FAQs on WhatsApp using Postgres (Module "FAQ") preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? 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...

Best for

  • Support Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.whatsapptrigger, n8n-nodes-base.stickynote, n8n-nodes-base.whatsapp, n8n-nodes-base.postgres, n8n-nodes-base.switch, n8n-nodes-base.set, n8n-nodes-base.summarize, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Andrew.

Original n8n.io source

1.1 Workflow description

Title
Auto-reply to FAQs on WhatsApp using Postgres (Module "FAQ")
Workflow name
Auto-reply to FAQs on WhatsApp using Postgres (Module "FAQ")

Who is this for?

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.

What problem is this workflow solving?

This workflow addresses the challenge of efficiently managing and automating responses to customer inquiries. It helps reduce manual effort and ensures quick access to information, while providing an option for customers to request live assistance when needed.

What this workflow does

  1. It allows you to store questions and answers in a Postgres database.
  2. A link to a bot is shared with customers, enabling them to read the available questions and answers.
  3. If a customer does not find an answer to their query, they can request a consultation with a manager.

Setup

  1. Create tables in Postgres DB

    • Replace "n8n" in the provided SQL script with the name of your schema in the database.
    • Run the SQL script in your database to set up the necessary tables. (The script is available in the workflow.)
  2. Add Credentials

    • Set up the WhatsApp integration (OAuth and Account credentials).
    • Connect the Postgres database by adding the necessary credentials.

How to customize this workflow to your needs

  • Modify the Postgres schema name in the SQL script to match your database configuration.
  • Update the questions and answers in the database to suit the information you want to provide via the bot.
  • Customize the WhatsApp integration settings to match your account credentials and API details.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - WhatsApp Trigger

Type / Role
n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
Config choices
Version 1

Block 2 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Starts

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 4 - Upsert Bot Status

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 5 - Get Bot Status

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 6 - Commands

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 7 - Main Menu

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 8 - Initialization

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Union list

Type / Role
n8n-nodes-base.summarize - summarize
Config choices
Version 1.1

Block 10 - Union Number with Question

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - List?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Get FAQ

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 13 - Get FAQs

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 14 - FAQs

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 15 - FAQ

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 16 - Get FAQs

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 17 - Update Bot Status on MANAGER

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 18 - Request Manager

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 19 - Add Consultation request

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 20 - Request Success

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 21 - Update Bot Status on START

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 22 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 31 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Auto-reply to FAQs on WhatsApp using Postgres (Module "FAQ")
Complexity advanced
Nodes 31
Categories Support Chatbot
Author Andrew
Published 21 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3650/3650.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Auto-reply to FAQs on WhatsApp using Postgres (Module "FAQ") do?

Who is this for? 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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot use case.