Scope Wiser

Webhook Workflow: Complete Beginner's Guide

Build a Webhook Workflow: pick a template, load sample data, map fields, add formatters, rules and a delay, and read the report when nothing arrives.

Last updated Nov 15, 2026

What you'll do: build a Webhook Workflow that sends a WhatsApp template message when something happens in another system, such as an order, a payment or a form.

Time: 30–45 minutes, once your template is approved.

You can build the whole workflow from a pasted sample and connect the store afterwards. Every recipe in this module (order notifications, cash-on-delivery verification, abandoned carts) is a Webhook Workflow with different data mapped into a different template.

Before you start

  • ☐ You are working on a WhatsApp bot. Webhook Workflows appears on WhatsApp bots only.

  • ☐ An approved WhatsApp template, with a variable for each piece of order data you want to include. The workflow form asks for it on its very first screen and will not proceed without one. Build it under Chatbot Manager → Automation → Message Templates and wait for approval. Creating & Getting WhatsApp Templates Approved covers the rules that get templates rejected.

  • ☐ A sample of the data your store sends (called a payload). The easiest way: connect the store, place one test order and press Capture Webhook Response. Or ask your developer for a sample.

  • ☐ If there is a store, it is connected. Shopify and WooCommerce connect from Connect Account: see Connecting Shopify and Connecting WooCommerce. That connection is separate from the workflow, and the Callback APIs (section 6) need it to write anything back.

  • ☐ The phone numbers in the external system are ones your customers actually use on WhatsApp, in a format WhatsApp accepts.

Why a template? The customer has not messaged you, so no session exists and only an approved template can be sent. See WhatsApp Rules You Must Know: 24-Hour Window & Template Messaging.

1. Name the workflow and pick a template

  1. Open Chatbot Manager and select the WhatsApp bot.

  2. Click Automation → Webhook Workflows.

  3. Click Create.

    You should now see the screen split in two: the workflow form on the left and the AI Workflow Assistant on the right. The form starts as a single card, Workflow Details.

  4. In WORKFLOW NAME * (placeholder "Abandoned Cart Recovery", with a validate button beside it), type a name. Name it after the event and the store, not the feature: Shopify — order created tells you what it does when there are nine of them.

  5. In MESSAGE TEMPLATE *, choose the approved template this workflow sends.

  6. Look at TEMPLATE INFO. It is a live preview of the template's name, its category chips and its message body. The variables you see here are exactly the ones you will have to supply data for.

  7. Click Create Workflow.

    You should now see the rest of the form. The callback URL, mapping, rules and delay only appear after you press Create Workflow.

Webhook Workflows, stage one: workflow name, message template and template preview

Optional: let the AI Workflow Assistant do the mapping

The AI Workflow Assistant panel on the right has a free-text box and six quick actions (all listed under Reference). The one that saves the most time:

  1. Click Paste JSON sample and hand it a real payload.

  2. Let it propose the mapping.

  3. Check its work with Run test.

Check what the assistant picked. Reading an order payload, it can pick the billing phone when you wanted the shipping phone, and both look plausible.

The AI Workflow Assistant panel with its quick actions

2. Load sample data

The first new card is Configure Webhook Data: "Provide sample JSON, capture a real-time response, or use AI to map fields."

At the top is the Webhook Callback URL, a read-only box holding this workflow's own web address. That address belongs to this workflow alone: one workflow, one address, one event.

Below it are two tabs. Use either one.

Option A: Custom JSON Body (no store needed)

  1. Click the Custom JSON Body tab.

  2. Paste a sample payload into the text box.

  3. Click Run Test.

You should now see the mapping fields below fill from your sample. No store, no plugin, no waiting. Every recipe in this module can be built this way and connected afterwards. A Run Test counts as 1 in TARGETED.

Option B: Real-time Response (from your live system)

  1. Copy the Webhook Callback URL and paste it into your store (see section 3).

  2. Fire one real event from the store, for example a test order.

  3. Come back and click the green Capture Webhook Response button.

Configure Webhook Data with the callback URL, the Google Sheet Instruction button and the Custom JSON Body tab

3. Paste the callback URL into the other system

The callback URL is the address the external system sends to. Where you paste it depends on the platform:

  • WooCommerce: in WordPress, go to WooCommerce → Settings → Advanced → Webhooks. Add a webhook with the topic you want and the callback URL as the delivery URL.

  • Shopify: in the Shopify admin, go to Settings → Notifications → Webhooks, with the format set to JSON.

  • Anything else: any system that can send data to a web address, including form builders, payment providers and spreadsheet automations.

  • A Google Sheet: click Google Sheet Instruction and follow the four steps shown. The script step needs a developer (details under Reference).

Once the workflow is saved, you do not have to reopen it to get the address back. Copy Webhook URL is in the three-dot (⋮) menu at the end of the row in the listing.

4. Map the fields

Once a payload has been captured or tested, Webhook Response Mapping shows one row per field the template needs:

  • PHONE NUMBER *

  • VARIABLE : <TEMPLATE VARIABLE NAME> *, one row for each variable in the template you chose in section 1.

Each row has a data-field dropdown and a Select Formatter dropdown.

  1. Check the rows that are already filled in. Mapping is auto-populated wherever Scope Wiser can work out the match; on a normal order payload the phone and name rows arrive already filled in correctly. Check them rather than retyping them.

  2. For each empty row, open the data-field dropdown and pick a field. The list shows every field in the sample next to its value, so you pick from real data rather than guessing. billing>phone means the phone inside the billing section; line_items at the bottom is the whole product list.

  3. If a variable should always say the same thing, such as your shop name, choose << Static Value >> at the top of the list.

5. Clean up values with Data Formatters

Raw values are rarely message-ready. The Data Formatters panel ("Format or manipulate webhook data") fixes that. It has a + New button, a search box and a table of FORMATTER DEFINITION · ACTIONS.

  1. In Data Formatters, click + New. The Data Formatter drawer opens.

  2. In Name *, type the name you want to see in the Select Formatter list.

  3. Set Global Formatter * to Yes or No (default No). Yes makes it reusable in every workflow, which is worth doing for the two you need on every store.

  4. In Action *, choose what it does, then fill in that action's own parameters.

  5. In the mapping row that needs it, choose the formatter in Select Formatter.

Four actions do most of the work in this module:

  • Trim Left, with + as the Trim parameter, strips the leading plus from a phone number. Stores routinely save numbers as +96890000001; WhatsApp will not accept the plus. If you build one global formatter today, build this one.

  • Concat List Items joins a list into a single string. Point a mapping row at the bare list (line_items rather than an indexed item), attach this formatter with a Glue such as a comma, and a basket becomes readable text inside your template instead of a variable that renders as nothing.

  • Format Number makes a total look like money. Its parameters are Decimal *, Decimal Separator and Thousand Separator.

  • Default Value rescues a template from an empty variable by supplying wording when the payload has nothing for that row.

Need a space as a parameter? The drawer's tip: "How to use Whitespace? You can use whitespace as parameter value. Just type [space] as parameter value."

The Data Formatter drawer with Action set to Trim Left and + as the Trim parameter

6. Optional: write back to the store with Callback APIs

The Callback APIs panel ("Trigger a third-party API based on webhook data after a WhatsApp message button is clicked") is how a workflow writes something back into your store. It has + New, a search box and a table of NAME · ACTIONS.

  1. In Callback APIs, click + New. The Callback API drawer opens.

  2. In Name *, type a name.

  3. In API Action *, choose one of the four actions (listed under Reference).

  4. In Select Store API *, choose the store. If it is not connected yet, use the Add New API link beside it.

  5. Fill in any parameters the action needs. Woocommerce Order Note Update, for example, adds a Note * field and a "Read me" panel explaining that it adds a note to an order and updates the order.

This is the mechanism behind cash-on-delivery confirmation. The customer taps a button on the template, and the outcome is written straight into the order (cancelled, tagged, noted) without anyone in your team touching it. Verifying Cash-on-Delivery Orders Over WhatsApp builds exactly that.

7. Set a delay

Send message with a delay is a single row: Wait 0 minutes after a webhook triggers.

  1. Type the number of minutes. It is minutes only, so write anything measured in hours in minutes.

Zero is right for an order confirmation. One or two minutes suits a COD verification, because the store needs a moment to finish writing the order.

8. Optional: only send when a rule matches

Send message based on conditions is where "only" gets expressed: only COD orders, only orders over a value, only a particular region.

  1. Click + Add Rule. A row of Select Data Field · Select Operator · Put Value appears, with a red icon to remove it.

  2. Fill in the three parts of the row.

  3. Use the two toggles to decide how the rules combine:

    • Send message only if any of the following rules satisfies

    • Send message only if all of the following rules satisfy

A message that a rule filters out is not an error. It is counted separately, under SKIPPED.

9. Choose what happens after sending

Actions following successful webhook call is the last card. You can assign the conversation to a team role or member, add or remove labels and sequences, and set the subscriber's name (every field is under Reference).

  • ASSIGN SEQUENCE is the join between webhooks and follow-ups. It is how an external event enrols someone into a Follow-up Sequence: an unanswered COD verification chased two hours later, an abandoned cart followed up the next day.

  • SUBSCRIBER NAME is worth setting from the payload, because it turns a row of phone numbers in the inbox into a list of people.

10. Save the workflow

Click Save Workflow.

You should now see: "Workflow data has been mapped and saved successfully. You will be able to see it working from next webhook call."

There is no bot-flow field. A workflow's job ends when the template goes out. What the template's buttons do afterwards is set up elsewhere: the system flows under Automation → Quick Actions for the conversation the customer sees, and Callback APIs for anything that has to change in the store.

11. Watch it run

  1. Go back to Webhook Workflows. Your workflow is in the list.

  2. STATUS is a live toggle in the row, so you can pause a workflow without deleting it.

  3. VERIFIED turns to a green ✓ Yes once a sample payload has been captured. That is all "verified" means here.

  4. To see who got the message, click Workflow Report at the top right of the listing.

Workflow Report showing the workflow table and the per-recipient log

✅ Done when…

  • ☐ The workflow is saved and its STATUS toggle is on

  • ☐ The callback URL is pasted into the external system

  • ☐ A test event shows up on the Workflow Report

If something doesn't work

A failure at any of the five stages of a workflow (see Reference) looks the same from outside: nothing arrives. Work down the chain rather than guessing. Before fixing anything, check SKIPPED (a rule blocked it) against FAILED (sending broke).

  • The external system never called. Check its own webhook log first, and check LAST CALLED AT on the Workflow Report. WooCommerce and Shopify both keep delivery records, and a 404 or a timeout there ends the investigation.

  • The call arrived but the message was skipped. A rule excluded it: look at SKIPPED, not FAILED. Open the Raw Data panel and compare the value that actually arrived against the value your rule expects. A rising SKIPPED count usually means a rule points at the wrong data field or expects a value the payload spells differently.

  • The call arrived and the send errored. That is FAILED. Almost always the phone number: a + prefix that no Trim Left formatter is stripping, a missing country code, or a number with no WhatsApp account. Check the RESPONSE column on the report. A rising FAILED count sends you to phone-number formatting and template approval.

  • The message went out but did not reach anyone. That is UNREACHED.

  • The template was rejected. An unapproved or paused template cannot send. Check its status under Message Templates.

  • A variable renders as nothing. A mapping row points at a field that is absent from this particular payload. A Default Value formatter covers the gap.

  • It worked and then stopped. Credentials were regenerated on the store side, or the template was edited and lost its approval. Once fixed, use Resend All Failed Webhook.

  • A customer says they never got the message. The per-recipient log on the Workflow Report settles it, and RESPONSE is usually where the reason is written.

  • A mapping stops matching. Reopen the workflow and read the Raw Data panel ("The original webhook data received in raw format"). It shows the captured payload line by line, so you can see what actually arrived.

Reference

Three different things called "webhook"

Feature

Where

Direction

Webhook Workflows

Chatbot Manager → Automation → Webhook Workflows

Inbound. An external system calls Scope Wiser, and Scope Wiser sends a WhatsApp message.

Outbound Actions

Chatbot Manager → Automation → Outbound Actions

Outbound. A bot event calls your URL.

Bot Settings → Webhook

Bot Settings button → Webhook tab

Outbound. Copies of messages sent to a URL you host.

How a workflow runs

  1. Something happens in the external system. An order is created in Shopify, a cart is abandoned in WooCommerce, a form is submitted.

  2. That system calls the workflow's Webhook Callback URL, sending the event as data. Scope Wiser creates this address once the workflow exists; you paste it into the other system.

  3. Scope Wiser reads the data and picks out the fields you told it to: the phone number, the customer's name, the order total, the product list.

  4. Rules decide whether to send. Only COD orders, only orders over a value, only a particular region.

  5. A WhatsApp template message goes out, with the mapped values filling its variables, immediately or after a delay you set in minutes.

AI Workflow Assistant

The panel is headed AI Workflow Assistant: "Configure your webhook workflow with AI." Underneath its opening prompt is a free-text box labelled "Ask anything about this workflow…", a reset icon, and six quick actions:

Quick action

What to use it for

Set name & template

Naming the workflow and choosing a template from a description

Map webhook data

Working out which incoming field belongs in which template variable

Paste JSON sample

Handing it a real payload so it can do the mapping for you

Shopify order update

The Shopify order path as a starting point

Add condition

Building the rule that decides whether to send

Run test

Checking the workflow end to end before it faces a customer

Configure Webhook Data: the controls

  • Webhook Callback URL: read-only, with the helper "Copy and paste into your external app to send data to this workflow." Beside it is the Google Sheet Instruction button.

  • Real-time Response tab: captures what your live system actually sends. It shows a green Capture Webhook Response button and the helper "Send a test event from your app, then click Capture to load the real-time response."

  • Custom JSON Body tab: a text box, a Use JSON button and a Run Test button, with the helper "Click Run Test to load mapping fields without an external trigger."

Google Sheet trigger (for developers)

Google Sheet Instruction opens a slide-over headed Google Sheet Trigger Instruction, containing the setup steps and a complete Apps Script with this workflow's own address already substituted, plus a Copy button. The steps as written are:

  1. Go to the Apps Script Editor: open your Google Sheet, then Extensions → Apps Script.

  2. Add the Code: paste the onChange function into the script editor.

  3. Set Up a Trigger: in the Apps Script editor, click the Triggers (clock) icon, click Add Trigger, and set it up for the onChange function with the event type On change.

  4. Test the Function: insert or delete rows to trigger the function.

All Data Formatters

Sixteen actions are available in the Action * dropdown.

Action

Parameters

Concat Left

Glue, Concat *

Concat List Items

Glue, Position *

Concat Right

Glue, Concat *

Day Add

Day *

Day Subtract

Day *

Default Value

Default *

Format Number

Decimal *, Decimal Separator, Thousand Separator

Number Add

Number *

Number Multiply

Number *

Number Subtract

Number *

Replace

Search *, Replace

Shorten

Limit *

Split

Separator *, Position *

Static Value

Value *

Trim Left

Trim *

Trim Right

Trim *

Callback API actions

API Action

What it does in the store

Shopify Order Cancel

Cancels the order in Shopify

Shopify Order Tag Update

Writes a tag onto the Shopify order

Woocommerce Order Cancel

Cancels the order in WooCommerce

Woocommerce Order Note Update

Adds a note to the WooCommerce order

Condition operators

Equal (=), Not equal (≠), Less than (<), Less than or Equal (≤), Greater than (>), Greater than or Equal (≥), Contains, Start with and End with.

Actions following successful webhook call

Field

Control

ASSIGN CONVERSATION TO A GROUP

Select Team Role

ASSIGN CONVERSATION TO A USER

Select Team Member — populated only from people created under Control Panel → User Manager, so it is empty on a solo account

ASSIGN LABEL

free text

REMOVE LABEL

free text

ASSIGN SEQUENCE

free text

REMOVE SEQUENCE

free text

SUBSCRIBER NAME

data-field dropdown

What a saved workflow contains

Exactly these sections: Workflow Details, Configure Webhook Data, Webhook Response Mapping, Send message with a delay, Send message based on conditions and Actions following successful webhook call, alongside the AI Workflow Assistant, Data Formatters, Callback APIs and Raw Data panels. Nothing on that screen attaches a bot flow to the workflow.

The workflow list

The list filters by Any Status (Active / Inactive), by Any Verification (Verified / Non-verified) and by search. Its columns are # · WORKFLOW · STATUS · VERIFIED · ACTIONS · TARGETED · PROCESSED · DELIVERED · OPENED · FAILED · SKIPPED · UNREACHED.

Each metric shows as a labelled percentage over a count, and the labels do not match the column headings. Three of these columns are three different kinds of failure:

Column

Label on the metric

What it actually means

FAILED

Error

Something broke while sending. A bad phone number, a rejected or paused template, a platform error.

SKIPPED

Condition Failed

Your rules filtered the message out. Nothing is broken; the workflow decided not to send.

UNREACHED

Failed

The message did not reach the recipient.

Row actions

The three-dot (⋮) menu at the end of each row carries six:

Action

What it does

Copy Webhook URL

The quickest way back to the callback URL once the workflow is saved

Report

Opens the workflow's report

Resend All Failed Webhook

A bulk retry of everything that failed

Download Report

Exports the report

Edit Connection

Reopens the workflow for editing

Delete

Removes it

Resend All Failed Webhook re-sends a batch that failed for a reason you have since fixed (an expired store credential, a template that was paused and is now approved again) without asking the store to send everything a second time.

The Workflow Report

Workflow Report, top right of the listing, shows the same workflow table with an extra LAST CALLED AT column, and beneath it a per-recipient delivery log:

# · PHONE NUMBER · STATUS · SCHEDULED AT · DELIVERED AT · OPENED AT · FAILED AT · RESPONSE

That is one row per phone number, with the platform's own reply in the RESPONSE column.

Next: Order Notifications: WooCommerce & Shopify. It is the gentlest recipe to build first, because a wrong message is merely a duplicate rather than a customer-facing mistake. Verifying Cash-on-Delivery Orders Over WhatsApp and Abandoned Cart Recovery build on the same foundation.

Was this helpful?
Edit this page