Trigger a Webhook (HTTP)

How to Use the “Trigger a Webhook (HTTP)” Action in Botassium

One of the most powerful features in Botassium is the ability to connect your automation flows to external services. The “Trigger a Webhook” action allows you to send HTTP requests to any third-party API, receive data back, and use that data in your flow—opening the door to endless integrations.

This guide explains how to set up webhooks, pass custom data, and handle responses dynamically.

What is the “Trigger a Webhook” Action?

The Trigger a Webhook node is an action that sends an HTTP request to a custom URL, with configurable method, headers, and body. You can also optionally capture the response and store it as a variable to use in the next nodes.

This action is perfect for:

  • Connecting to your own backend server

  • Sending data to CRMs, ERPs, or marketing platforms

  • Receiving real-time pricing, availability, or recommendations

  • Triggering logic in other apps or systems

Configuration Options

1. URL

Insert the full URL of the webhook or API endpoint you want to call.
Example: https://api.example.com/update-lead

2. Method

Select the HTTP method to use:

  • GET

  • POST

  • PUT

  • DELETE

3. Headers (Optional)

Insert a JSON object representing the request headers.
Example:

{
  "Authorization": "Bearer YOUR_API_KEY",
  "Content-Type": "application/json"
}

4. Request Body (Optional)

Enter the request body (for POST, PUT, etc.). This supports:

  • Static JSON values

  • Dynamic variables from your flow like @user_email, @user_name, etc.

5. Save Response to Variable (Optional)

Enable the checkbox if you want to store the HTTP response for use later in your flow. When checked, a new input appears:

  • Variable Name: Enter a name like api_response, user_score, etc.

You can then reference this variable in condition nodes, reply messages, or further logic.

6. Test Webhook Button

Use the Test Webhook button to send a test request to the URL using your current configuration. The response will be shown directly inside the node—great for debugging and previewing results.

Outputs: Success and Failure

This node provides two output paths:

  • On Success: The request succeeded (response code 2xx). You can continue your flow using the response or just proceed normally.

  • On Failure: The request failed (non-2xx response). Use this to show an error message, log the issue, or trigger alternative logic.

Example Use Case

A user submits their email and order number via a WhatsApp flow. You want to check order status from your backend:

  1. Add a Trigger a Webhook node

  2. Set method to POST

  3. Enter URL: https://api.myshop.com/check-status

  4. Body:

{
  "email": "@user_email",
  "order_id": "@order_id"
}
  1. Save response to variable: order_info

  2. Use a condition node afterward to check ${order_info.status} and act accordingly

The Trigger a Webhook action is available across all WhatsApp automation flows, and is ideal for advanced integrations, real-time API connections, backend processing, dynamic message generation, and connecting Botassium to any external system.

Seamlessly Integrates With Your Favorite Tools

Build powerful chatbots for WhatsApp in just a few clicks.

Get Started Now

Join our email newsletter

Seamlessly Integrates With Your Favorite Tools

Build powerful chatbots for WhatsApp in just a few clicks.

Get Started Now

Join our email newsletter

Seamlessly Integrates With Your Favorite Tools

Build powerful chatbots for WhatsApp in just a few clicks.

Get Started Now

Join our email newsletter