Skip to main content

WhatsApp fact-checking bot with Perplexity AI and Twilio

Workflow preview

Workflow preview
100%
WhatsApp fact-checking bot with Perplexity AI and Twilio preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Build Your Own WhatsApp Fact Checking Bot with AI Tired of misinformation spreading on WhatsApp? This workflow transforms your n8n instance into a powerful, automated fact checking bot\! Send...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.perplexity, n8n-nodes-base.twilio, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
WhatsApp fact-checking bot with Perplexity AI and Twilio
Workflow name
WhatsApp fact-checking bot with Perplexity AI and Twilio

βœ…πŸ’¬Build Your Own WhatsApp Fact-Checking Bot with AI

Tired of misinformation spreading on WhatsApp? 🀨 This workflow transforms your n8n instance into a powerful, automated fact-checking bot! Send any news, claim, or question to a designated WhatsApp number, and this bot will use AI to research it, provide a verdict, and send back a summary with direct source links.

Fight fake news with the power of automation and AI! πŸš€

How it works βš™οΈ

This workflow uses a simple but powerful three-step process:

  1. πŸ“¬ WhatsApp Gateway (Webhook node): This is the front door. The workflow starts when the Webhook node receives an incoming message from a user via a Twilio WhatsApp number.
  2. πŸ•΅οΈ The Digital Detective (Perplexity node): The user's message is sent to the Perplexity node. Here, a powerful AI model, instructed by a custom system prompt, analyzes the claim, scours the web for reliable information, and generates a verdict (e.g., βœ… Likely True, ❌ Likely False).
  3. πŸ“² WhatsApp Reply (Twilio node): The final, formatted response, complete with the verdict, a simple summary, and source citations, is sent back to the original user via the Twilio node.

Setup Guide πŸ› οΈ

Follow these steps carefully to get your fact-checking bot up and running.

Prerequisites
1. Configure Credentials

You'll need to add API keys for both Perplexity and Twilio to your n8n instance.

  • Perplexity AI:
    1. Go to your Perplexity AI API Settings.
    2. Generate and copy your API Key.
    3. In n8n, go to Credentials & New, search for "Perplexity," and add your key.
  • Twilio:
    1. Go to your Twilio Console Dashboard.
    2. Find and copy your Account SID and Auth Token.
    3. In n8n, go to Credentials & New, search for "Twilio," and add your credentials.
2. Set Up the Webhook and Tunnel

To allow Twilio's cloud service to communicate with your n8n instance, you need a public URL. The n8n tunnel is perfect for this.

  1. Start the n8n Tunnel: If you are running n8n locally, you'll need to expose it to the web. Open your terminal and run:
    n8n start --tunnel
    
  2. Copy Your Webhook URL:
    • Once the tunnel is active, open your n8n workflow.
    • In the Receive Whatsapp Messages (Webhook) node, you will see two URLs: Test and Production.
    • Copy the Test/Production URL. This is the public URL that Twilio will use.
3. Configure Your Twilio WhatsApp Sandbox
  1. Go to the Twilio Console and navigate to Messaging & Try it out & Send a WhatsApp message.
  2. Select the Sandbox Settings tab.
  3. In the section "WHEN A MESSAGE COMES IN," paste your n8n Production Webhook URL.
  4. Make sure the method is set to HTTP POST.
  5. Click Save.

How to Use Your Bot πŸš€

  1. Activate the Sandbox: To start, you (and any other users) must send a WhatsApp message with the join code (e.g., join given-word) to your Twilio Sandbox number. Twilio provides this phrase on the same Sandbox page.
  2. Fact-Check Away! Once joined, simply send any claim or question to the Twilio number. For example: Did Elon Musk discover a new planet?
  3. Within moments, the workflow will trigger, and you'll receive a formatted reply with the verdict and sources right in your chat!

Further Reading & Resources πŸ”—

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 - Receive Whatsapp Messages

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Confirm news with Citations

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

Block 3 - Send Summary to whatsapp

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

Block 4 - Sticky Note

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

Block 5 - Sticky Note1

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

Block 6 - Sticky Note2

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

3. Summary Table

Workflow WhatsApp fact-checking bot with Perplexity AI and Twilio
Complexity intermediate
Nodes 6
Categories Support Chatbot, AI Chatbot
Author Harsh Maniya
Published 02 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6842/6842.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 WhatsApp fact-checking bot with Perplexity AI and Twilio do?

Build Your Own WhatsApp Fact Checking Bot with AI Tired of misinformation spreading on WhatsApp? This workflow transforms your n8n instance into a powerful, automated fact checking bot\! Send...

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, AI Chatbot use case.