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.
The full canvas, before you import it
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
- 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.
- 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.
- 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.
- 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
- 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.
- On Support Knowledge, choose a vector store containing customer-facing FAQs, help articles, or policy pages.
- Create a Bearer credential called WhatsAppCloud with an access token that has the
whatsapp_business_messagingpermission. In Send WhatsApp Reply, replaceYOUR_PHONE_NUMBER_IDwith your business phone number ID from Meta. - Create a Data Table with text columns named
messageId,messageText,replyText,replyMessageId, andhttpStatus. MakemessageIdunique 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
- 1Click Import → Copy JSON on this page.
- 2Open your Heym and navigate to a workflow canvas.
- 3Press Cmd+V / Ctrl+V — nodes appear instantly.
- 4Add your API keys in the node config panels and click Run.
Discover more automations
- Customer SupportHITL Support Reply AgentDraft a customer-facing support response, pause for human approval, then continue with the reviewed reply.
- Customer SupportIMAP Support Inbox TriageWatch a shared mailbox, summarize incoming support email, and route urgent messages to Slack.
- Customer SupportUrgent vs Standard RouterBranch on a keyword in the input line — fast path vs standard path using a Condition and two outputs.
- Customer SupportSlack Orchestrator + Triage Sub-AgentsOrchestrator agent classifies incoming Slack messages and delegates to an UrgentAgent or NormalAgent sub-agent, each with its own posting logic.
- Customer SupportLanguage Switch RouterDetect the language of incoming text with an LLM and route to the matching branch using the Switch node.
- Customer SupportTelegram FAQ Auto ReplyReply to inbound Telegram questions with an LLM and keep the latest question in a global variable.
- Customer SupportCustomer Survey Sentiment Slack DigestRead recent survey rows from Google Sheets, summarize sentiment and themes with AI, then post a daily digest to Slack.
- Customer SupportDiscord Slash Command FAQ ReplyAnswer Discord slash commands with an AI-generated, concise FAQ response and a native interaction follow-up.
- Customer SupportSupport Contract SLA Credit AgentCompare support incidents against contract SLAs, draft credit recommendations, and route finance-sensitive exceptions for approval.
- Customer SupportDecision Model Support TriageUse one Decision Model to assess urgency, choose a support team, and score business impact. Route tickets using all three answer types.
- AI AgentsDuckDuckGo Claim Evidence FinderSearch DuckDuckGo Lite for a factual claim and turn the result snippets into a cited evidence brief.
- AI AgentsPublic Domain Exhibit BuilderOne agent searches a museum collection over MCP and uses a Python tool to prepare a linked exhibit of public-domain works.