WhatsApp scenarios in Make
Start a Make scenario from a WhatsApp message and reply through the WhatSync API, with Make's built-in Webhooks and HTTP modules. Works with a personal number and with the WhatsApp Business API.
What you need
- A WhatSync account on the Max plan or higher, with your WhatsApp linked or a WhatsApp Business API number connected (Business plan).
- An API key from Developers with Read and Send.
- A Make account. Everything here uses Make's built-in apps: Webhooks, HTTP, Flow control, Tools and JSON.
- Download JSON
Make: reply safely to incoming messages (blueprint)
The pattern every other scenario builds on.
- Download JSON
Make: answer bookings with AI (blueprint)
AI reads the message, Make's router decides.
To import: create a scenario, open the menu with the three dots at the bottom and choose Import blueprint. Then go through the modules as described below. If Make reports a problem with a module after the import, delete that module and add it by hand: every setting is listed on this page.
How these were tested: every request the modules send, and every route, was run against the WhatSync API with a stand-in for Make. The blueprint files themselves were not imported into a Make account before publishing, so watch your first runs with Run once.
1. The webhook, protected by a key
- Add the Webhooks > Custom webhook module and create a webhook. Under its advanced settings, add an API key. Make then only accepts requests that carry that key in the
x-make-apikeyheader. - Copy the webhook's address.
- Add it in WhatSync with the event
message.receivedand with your key as a header. In Developers the header goes under the webhook's headers. With the API:
curl -X POST https://whatsync.app/api/v1/webhooks \
-H "Authorization: Bearer $WHATSYNC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://hook.eu1.make.com/YOUR_WEBHOOK","event_types":["message.received"],"headers":{"x-make-apikey":"THE_KEY_YOU_SET_IN_MAKE"}}'WhatSync sends the header with every event, stores it encrypted and never shows it again. Without this step anyone who learns the address could post a fake message to your scenario. Make cannot check WhatSync's own signature, so this header is the check.
Let Make learn the fields from a real message
Click Redetermine data structure in the webhook module, then write to your number from another phone. Do not use WhatSync's test event for this: in a test event data.message is a short text, and Make would then not offer data.message.text and the other message fields for mapping.
2. Reply safely: the HTTP module
Add HTTP > Make a request after the webhook. Put a filter on the line between them so only new customer texts get through:
1. type Text operators: Equal to message.received
1. data: message: chat_type Text operators: Equal to direct
1. data: message: from_me Text operators: Equal to false
1. data: message: type Text operators: Equal to textURL https://whatsync.app/api/v1/tools/send_message
Method POST
Headers Authorization Bearer wsk_live_YOUR_KEY
Idempotency-Key {{1.id}}
Body type Raw
Content type JSON (application/json)
Request content
{"channel":"{{1.data.message.channel}}","conversationId":"{{1.data.message.conversation_id}}","text":"Thanks, we got your message and will reply here soon."}
Parse response Yes
Evaluate all states as errors No
Timeout 40Idempotency-Keyis the event id. If Make runs the module again, or WhatSync delivers the event twice, WhatSync does not send a second message.- Evaluate all states as errors stays off. A refusal such as 429 or 409 then comes back as a normal result with
Status codeanddata.error.code, and the router below can act on it. channelandconversationIdcome from the event, so the reply goes out on the number and in the chat the message came in.- On the Business API this free text is allowed because the customer just wrote, which opens the 24-hour window.
Customer text can contain quotes and line breaks, which break a hand-written JSON body. Never map data.message.text straight into Request content. Use a fixed text as here, or pass it through JSON > Transform to JSON first, as the booking scenario does.
3. Act on the answer: the router
Add Flow control > Router after the HTTP module, with one route per kind of answer:
Sent from a Business number 2. Status code = 200 AND 2. data: channel = business
Too fast: wait 2. Status code = 429 AND 2. data: error: code = rate_limited
Uncertain: look it up 2. Status code = 409 AND 2. data: error: code = outcome_unknown
Refused: tell a person 2. Status code ≠ 200 AND code ≠ rate_limited AND code ≠ outcome_unknown
AND 2. data: error: message does not contain "already went"| Route | Modules | Why |
|---|---|---|
| Sent from a Business number | Tools > Sleep 10 seconds, then HTTP get_send_status with {"intentId":"{{2.data.intent_id}}"}, then an alert filtered on delivery_status = failed. | Meta reports delivery a few seconds later. A personal number has no delivery receipts, so nothing runs for it. |
| Too fast: wait | Sleep for the seconds below, then the same HTTP send again, with the same Idempotency-Key. Then an alert filtered on Status code ≠ 200. | 429 rate_limited means nothing was sent: 5 sends a minute per personal number. |
| Uncertain: look it up | Sleep 15 seconds, then HTTP get_send_status (below), then an alert filtered on data.status ≠ accepted. | 409 outcome_unknown means it may have gone. Never send again with a new key. |
| Refused: tell a person | An HTTP module that posts to Slack, or an email module. | sending_off, whatsapp_not_connected, a daily limit and the like do not fix themselves. |
{{min(2.data.error.retry_after; 300)}}URL https://whatsync.app/api/v1/tools/get_send_status
Method POST
Headers Authorization Bearer wsk_live_YOUR_KEY
Request content
{"intentId":"{{2.data.error.intent_id}}"}The last filter leaves out one refusal on purpose. WhatSync does not send the same text to the same person twice within an hour, so a customer who writes three times in a row gets your fixed reply once. That refusal contains the words "already went" and needs no alert.
Timeouts: the Break error handler
A network timeout is an error in Make whatever the settings. Right-click the HTTP module, choose Add error handler and add Break:
Automatically complete execution Yes
Number of attempts 3
Interval between attempts 1 (minutes)Make then keeps the run as an incomplete execution and runs the module again with the same input, which means the same key. Switch on Allow storing of incomplete executions in the scenario settings for this to work.
4. Answer bookings with AI
- Download JSON
Make: answer bookings with AI (blueprint)
Webhook, Transform to JSON, three HTTP modules, Parse JSON and two routers.
The same idea as the n8n booking workflow: the AI only turns the message into a small form, and Make's routers decide and act.
| Module | What it does |
|---|---|
| 1. Custom webhook | Receives the event. Filter after it: New customer text. |
| 2. JSON > Transform to JSON | Turns {{1.data.message.text}} into a safely quoted JSON string. |
| 3. HTTP > Make a request | POST https://api.openai.com/v1/chat/completions with a strict JSON schema. The customer's text goes in as {{2.json}}, without quotes around it. |
| 4. JSON > Parse JSON | Parses {{3.data.choices[].message.content}} into intent, date, time and people. |
| 5. Router | Booking with every detail, booking with details missing, or not a booking. |
| 6. HTTP (GET) | Your booking system: is that time free? Must answer {"available": true} or {"available": false}. |
| 7. Router | Free or full. |
| 8. HTTP (POST) | Your booking system: save the booking. reference is the event id, so a repeat cannot book twice. |
| 9, 10, 11. HTTP | send_message with the reply for that route, Idempotency-Key = {{1.id}}. |
| 12. HTTP | Tells a person about a message that is not a booking. |
{"model":"gpt-5-mini","response_format":{"type":"json_schema","json_schema":{"name":"booking_request","strict":true,"schema":{"type":"object","additionalProperties":false,"required":["intent","date","time","people"],"properties":{"intent":{"type":"string","enum":["book","cancel","change","question","other"]},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"people":{"type":["integer","null"]}}}}},"messages":[{"role":"system","content":"You read one WhatsApp message sent to Casa Luna and fill in a form about what the customer wants. You only extract. ..."},{"role":"user","content":{{2.json}}}]}{"channel":"{{1.data.message.channel}}","conversationId":"{{1.data.message.conversation_id}}","text":"You are booked: {{4.people}} people on {{formatDate(parseDate(4.date; "YYYY-MM-DD"); "dddd D MMMM")}} at {{4.time}}. Reply here if you need to change it."}After importing, paste your OpenAI key and your WhatSync key into the Authorization headers, replace the two example.com addresses with your booking system's, and put your Slack webhook address into module 12.
The send modules in this scenario have Evaluate all states as errors on and a Break handler, so a refused reply shows up under incomplete executions. For the full set of routes, copy the router from the safe reply scenario behind each send.
What the Make version leaves out
- It reads one message at a time. The n8n workflow also reads the last messages of the chat, so a customer can answer "8pm" to "what time?".
- It has no list of handled event ids. Make accepts a webhook request at once, so WhatSync rarely needs to deliver twice, and a repeat cannot send a second WhatsApp message because of the idempotency key. To also stop a repeat before the AI call, add a Data store keyed by
{{1.id}}and filter on "record does not exist".
5. Test it
- Click Run once, write to your number from another phone, and watch the bubbles. Click a bubble to see what each module sent and received.
- Write a second time within the hour. The HTTP module shows 422 and no alert goes out.
- Switch sending off in the WhatSync dashboard (Settings, Sending) and write again. Your alert should arrive. Switch it back on.
- Turn the scenario on and set its schedule to Immediately as data arrives.
Limits, every error code and the go-live checklist are in Running WhatsApp unattended.