# How to Use Webhooks to Pass Events to Third-Party

***

## Webhooks to pass DT Event to 3rd Party 👇

{% embed url="<https://youtu.be/aPqP0MggLVI>" %}

* Webhooks enable seamless communication and integration between different systems by instantly notifying them of relevant updates or actions.
* DoubleTick offers a variety of webhook triggers, allowing users to automate actions based on specific events within the platform.&#x20;

<figure><img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FOxld5ExbSuLDv6IydJDB%2Fimage.png?alt=media&#x26;token=8eb78749-d0d0-45c5-ac37-0e770f799966" alt=""><figcaption></figcaption></figure>

***

## DoubleTick Event Based Webhook Triggers

| Webhook Trigger                              | Description                                                                                                                                                                                                                                                          |
| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Message Status Update**                    | Triggers whenever there is a change in the status of a message sent through the platform                                                                                                                                                                             |
| **Message Received**                         | Triggers whenever a message is received by the platform, enabling immediate responses or actions based on incoming messages                                                                                                                                          |
| **Chat Assigned to Agent**                   | Triggers when a chat or conversation is assigned to a specific agent                                                                                                                                                                                                 |
| **Chat Unassigned**                          | Triggers when a chat or conversation is unassigned from an agent,indicating that it is no longer being handled and may require reassignment or further attention                                                                                                     |
| **Lead Received from Widget**                | Triggers when a lead is generated or received through a widget on their website, allowing for immediate follow-up and engagement with potential customers                                                                                                            |
| **Verified Lead Received from Widget**       | <p>Triggers when a lead generated through a widget on their website has been verified as genuine or legitimate</p><p></p><p>Enabling prompt and targeted follow-up actions</p>                                                                                       |
| **First Time Message Trigger from Customer** | <p>Triggers when a customer sends their first message</p><p></p><p>Enabling businesses to initiate personalized interactions and tailored responses to new customers</p>                                                                                             |
| **Customer Custom Field Updated**            | <p>Triggers when a custom field associated with a customer's profile has been updated or modified</p><p></p><p>Allowing businesses to stay informed about changes in customer data and enabling them to tailor their interactions and communications accordingly</p> |
| **Template Updated**                         | Triggers when there is a change in the status of a template, such as its approval or rejection, allowing for timely updates and actions to be taken in response to changes in template availability or usage                                                         |
| **Tag added**                                | Triggers when a tag is added to a conversation or customer profile, enabling businesses to categorize and organize interactions for better management and segmentation                                                                                               |
| **Tag removed**                              | Triggers when a tag is removed from a conversation or customer profile, providing insight into changes in categorization and organization of interactions,                                                                                                           |

These triggers enable seamless integration with other systems or applications, empowering users to streamline workflows and enhance productivity by responding to relevant updates or actions in real-time.

***

## How to add a Webhook ?

To add a webhook in DoubleTick, follow these steps:

* Click on "**Settings**" in the left panel & navigate to the "**Webhooks**" section
* On the Webhooks page, click on the "**New Webhook**" button

<figure><img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FNlKZZYGa7XsMmFv5NamC%2Fimage.png?alt=media&#x26;token=c6de0763-f35f-43b1-a221-b0224977dfae" alt=""><figcaption></figcaption></figure>

* Enter the webhook URL (the endpoint URL where you want to receive the data) in the designated field
* Choose the triggers you want to associate with the webhook. You can select one or multiple triggers based on your requirements
* After adding the webhook URL and selecting triggers, click on the "Save Webhook" button to save the webhook configuration

<figure><img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2Fx5HQLCvuovxVkqNLCI0a%2Fimage.png?alt=media&#x26;token=ab8f8f56-5971-4289-a3d3-70ace7f63495" alt=""><figcaption></figcaption></figure>

***

## Delete Webhook

To delete a webhook , follow these steps:

1. Locate the webhook you want to delete in the Webhooks section
2. Click on the delete icon located on the right end of the webhook  <img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2F6wtTRqVPnMkTgli82Qv2%2Fimage.png?alt=media&#x26;token=0263b26c-4ff2-4820-a99e-5903f28ee925" alt="" data-size="line">
3. Confirm the deletion in the pop-up window by clicking on the "<mark style="color:red;">**Delete**</mark>" button

<figure><img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FthBhosnCYk8fAyhJjxgV%2Fimage.png?alt=media&#x26;token=5ef3bd30-0529-4f47-a2ad-136a917a29b7" alt=""><figcaption></figcaption></figure>
