# SAC 360º Automation - Triggering Webhooks When Updating Fields with AI

### Prerequisites:

* Create a custom lead field to store the value to be sent;
* Configure a trained AI agent to automatically collect and populate that field.

## Creating 360º Customer Service automation

For this example, a custom field named '**Order Number**' was created. I am assuming the AI was trained with a list of products or services, and with the goal of performing self-service and sales, it identifies the order desired by the lead and sends it to an external platform.

The trigger '**A lead field is updated**' will automatically identify when the AI fills in or modifies the lead field, executing the actions I will show below.

<figure><img src="/files/877327eedace5b5064738df7af29eb21f1a863dd" alt=""><figcaption><p><em>360º Customer Service automation trigger.</em></p></figcaption></figure>

## Configuring Send Webhook action

When adding the '**Send Webhook**' action you must configure the expected method on the route, the URL, and any information in the request header or body.

To include the custom field value in the request body, you will need to use the token associated with its alias, as well as any other native lead field. As shown in the screenshots below.

<figure><img src="/files/7949c675b101b3eb9c1fd849474a79f87144c3d7" alt=""><figcaption><p><em>Send Webhook action.</em></p></figcaption></figure>

<figure><img src="/files/c47ad4deaf07b25f683e9f34acec6a537b5a7a04" alt=""><figcaption><p><em>Configuring action to add the lead field token.</em></p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.sprinthub.com/en/topics/general/sac-360/sac-360o-automations/sac-360o-automation-triggering-webhooks-when-updating-fields-with-ai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
