FeaturedCustomer Support#WhatsApp Business#Cloud API#Customer Support#RAG#Guardrails#Data Table

WhatsApp Business Support Agent

Answer WhatsApp Business messages from your help center. Screen each message before the agent runs, then log the reply in a Data Table.

Workflow at a glance

The full canvas, before you import it

#WhatsApp Business#Cloud API#Customer Support#RAG#Guardrails#Data Table

Select a node to see its settings.

8 nodes · Free & source-available

Answer WhatsApp questions from your help center

When a customer asks about shipping, returns, or opening hours, the agent searches your support articles for an answer and replies in the same WhatsApp chat. A Data Table keeps the question, reply, and API response details together so your team can review what happened.

How it works

  1. WhatsApp Message receives one inbound text message from your webhook relay. Check Message checks that it has the fields needed to reply, and Keep Question makes the message text available to the search tool.
  2. Support Agent screens the message for prompt injection, phishing, and requests for personal data. If the guardrail blocks it, the run stops before the agent searches or sends a reply.
  3. The agent calls Support Knowledge, its RAG search tool, and uses the matching articles to answer in the customer's language. If the search comes up short, the agent tells the customer and suggests contacting your support team.
  4. Send WhatsApp Reply posts the answer to the WhatsApp Business Cloud API as a reply to the original message. Log Exchange saves the question, reply, HTTP status, and outgoing message ID if Meta returns one.

Set up the workflow

  1. On Support Agent, select a model and credential for the reply. In Guardrails, select a guardrail model and credential. The blocked categories are already set.
  2. On Support Knowledge, choose a vector store containing customer-facing FAQs, help articles, or policy pages.
  3. Create a Bearer credential called WhatsAppCloud with an access token that has the whatsapp_business_messaging permission. In Send WhatsApp Reply, replace YOUR_PHONE_NUMBER_ID with your business phone number ID from Meta.
  4. Create a Data Table with text columns named messageId, messageText, replyText, replyMessageId, and httpStatus. Make messageId unique and select the table on Log Exchange. The workflow uses that ID to update the same row if the message is processed again.

Connect the WhatsApp webhook

Use a public HTTPS relay as your Meta callback and subscribe to the messages field. The relay handles Meta's verification request, validates the signature on each incoming POST, and deduplicates events by message ID before forwarding them. Meta's guide to webhook endpoints

Set the Heym workflow's POST endpoint to use JWT Token authentication. Have the relay send a workflow execution token in the Authorization: Bearer <token> header and forward one JSON object per incoming text message.

{
  "messageId": "wamid.example",
  "senderId": "15550100123",
  "recipientField": "to",
  "messageText": "How long do I have to return an item?"
}

Take messageId from the incoming message's id and messageText from text.body. If the event supplies from_user_id, use it as senderId and set recipientField to recipient. For a phone number from from, use to as shown above. The relay can acknowledge status updates and other message types without starting a run. Meta's message webhook reference

Try it with a test number

Send a WhatsApp question that your help center answers. Check the reply in WhatsApp and find the matching row in the Data Table. An outgoing message ID shows that Meta accepted the request. Delivery confirmations arrive as separate webhook events.

This workflow sends free-form text during WhatsApp's 24-hour customer service window. Messages sent outside that window require an approved WhatsApp message template. Meta's guide to service messages

How to import this template

  1. 1Click Import → Copy JSON on this page.
  2. 2Open your Heym and navigate to a workflow canvas.
  3. 3Press Cmd+V / Ctrl+V — nodes appear instantly.
  4. 4Add your API keys in the node config panels and click Run.
More workflow templates
View all templates
Heym
incident analysis · production AI
Observed across 100s of AI rollouts

AI workflows don't fail because of prompts.
They fail because of orchestration.

symptom · glue code01
5 tools
Scripts, vector DB, approval bot, tracing, browser runner — none of them talk.
symptom · visibility02
~0%
Observable behavior across the stack. Debugging is guesswork.
with heym · one runtime▲
1 canvas
Agents, RAG, HITL, MCP, traces & evals. Self-hosted. Observable.
AI-Native RuntimeProduction-Grade
github.com/heymrun/heym