Skip to content

Trigger a smart automation from your own system (custom webhook)

Smart Automation with Custom Webhook Event, custom webhook, webhook automation, API trigger, third-party trigger, payload

When you finish, your website, app or a third-party tool can send an event to a BusinessOnBot webhook URL, and the customer in that event gets a WhatsApp message with the details you passed in.

Step 1: Name the automation and define the data

Section titled “Step 1: Name the automation and define the data”
  1. Go to Smart Automation and click Create Automation.

  2. Enter an Automation Name and an Automation Description.

  3. Under Choose Trigger Event, select Custom webhook.

  4. Add the custom variables your system will send. Each one is either:

    • Text: for example customer name, order ID or phone number.
    • Link: a URL to use in a template’s call-to-action button, for example a tracking link.
  5. Copy the payload shown on screen with the copy button. Your system must send data in exactly this format.

  6. Click Next.

  1. Set the delay in Days, Hours and Minutes after the event arrives, for example 5 minutes.

  2. Under Target customers, choose All Customers, or Custom customers to target a group.

  3. If you chose Custom customers, choose ALL or ANY, set the primary condition to Custom webhook, and pick one of your variables as the secondary condition. For example, send only when the order ID or tracking link matches a value you set.

  4. Click Next.

  1. Under Select message type, choose Template, or Flow to send a flow you built in Flow Builder.

  2. Select the template and map its variables to the custom variables from step 1. For a call-to-action button, choose a Link variable, such as the tracking link.

  3. Under Exit Condition, choose Yes or No. See Exclude customers with exit conditions.

  4. Under Expiry Time, choose Custom Date and enter an end date and time, or Never to run the automation until you turn it off.

  5. Click Deploy Automation.

  1. On the Smart Automation page, find your automation’s card and click the link icon (Copy webhook link).

    The automation card with the Copy webhook link icon

  2. Add this webhook URL to your website, app or third-party tool, so it sends the payload from step 1 whenever the event happens.

How to create a smart automation with a custom webhook

Was this page helpful?

Still stuck? Email support@businessonbot.com