> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/analyze/integrated-webhooks/integrated-webhooks-common-questions/integrated-webhooks-using-broadcast-to-handle-opportunities.md).

# Integrated Webhooks - Using broadcast to manipulate opportunities

### General concept of broadcast

Broadcast in Sprinthub is a signal that can be sent and received at different points of the platform, always related to a lead. In an automation, a broadcast must be emitted (by action) and, at another point, received (as a trigger). Currently, broadcast triggers and actions are available in CRM automations, 360º SAC, chatbots, and automation flows.

## Store funnel - creating stage automation

The goal is that when the lead registered on the site completes an order, a broadcast is sent that will be received in the CRM and will trigger a stage automation. This automation has the trigger 'Broadcast received' and the action of changing the opportunity funnel/stage. Upon receiving the webhook signal, the identified lead who has an opportunity in the 'Registered Leads' stage will have their opportunity moved to the 'Active Customers' stage.

<figure><img src="/files/4b4e2be69b33386d397e8963cc13b1a386c47323" alt=""><figcaption><p><em>E-commerce funnel.</em></p></figcaption></figure>

<figure><img src="/files/33c29c0b6f412e8497b7828c9cbcdb9de01de836" alt=""><figcaption><p><em>Stage automation.</em></p></figcaption></figure>

<figure><img src="/files/d991963b54e136b21d897dbcf9310dd7a8a7b38b" alt=""><figcaption><p><em>Configuration of the stage automation 'Receive Broadcast - Purchase'.</em></p></figcaption></figure>

## Purchase completed webhook

As an example, a webhook was created and mapped that expects to receive basic order data, such as the cart containing the products, their prices and names, the buyer's name, their email and WhatsApp.&#x20;

The cart is mapped as a list of objects, allowing, through extra actions, multiple custom objects to be created for the lead, one for each item in the list.&#x20;

The field 'Identifier For' with WhatsApp will be used to identify the lead (if it already exists) on the platform, through their WhatsApp number.

<figure><img src="/files/8d50cbaa38bdfe37e64fbf92707f4f1312b6f424" alt=""><figcaption><p><em>Webhook mapping.</em></p></figcaption></figure>

<figure><img src="/files/fba17d9a3c3ea9dd4a6ab0cfc3b557e00060a62b" alt=""><figcaption><p><em>Mapping of the cart objects list.</em></p></figcaption></figure>

<figure><img src="/files/d0fa565cceffaec3cc6886cb01bc2b7427511d7e" alt=""><figcaption><p><em>Webhook Extra Actions.</em></p></figcaption></figure>

<figure><img src="/files/b3491d6861b326fdb7b8aa9ec4b3dda15295ae60" alt=""><figcaption><p><em>Webhook Extra Actions - Link custom object.</em></p></figcaption></figure>

<figure><img src="/files/7a3917762a3a959dc25a13c33694911a15e6559c" alt=""><figcaption><p><em>Webhook Extra Actions - Send broadcast.</em></p></figcaption></figure>

## Simulating purchase trigger

As an example, the following trigger will be performed using the Postman software, in the format mapped above.

<figure><img src="/files/5089bc3df7810705c9266b373104a6fbc3a8e496" alt=""><figcaption><p><em>Request made through Postman.</em></p></figcaption></figure>

## Result of the purchase trigger

We can check the result of the automations by verifying whether the lead was moved stages, received the message and correctly executed the webhook, through the lead's history.

<figure><img src="/files/072d72a7d40d20a58289e2c3e794aa00bf2d90d0" alt=""><figcaption><p><em>Lead in the Active Customers stage.</em></p></figcaption></figure>

<figure><img src="/files/6cb70b883212beafb564a6b032f89f987c6f12d4" alt=""><figcaption><p><em>Lead history, containing the execution of the webhook, the broadcast sending</em> <br><em>and the actions configured in the stage automation.</em></p></figcaption></figure>

<figure><img src="/files/692e861bb338eef084e2e7f7043bdd392f69ccdf" alt=""><figcaption><p><em>Custom Product objects created.</em></p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sprinthub.com/en/topics/analyze/integrated-webhooks/integrated-webhooks-common-questions/integrated-webhooks-using-broadcast-to-handle-opportunities.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
