> For the complete documentation index, see [llms.txt](https://docs.logicdialog.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.logicdialog.ai/fundamentals/webhooks.md).

# Webhooks

There are times when you want the content of a bot to be dynamic. This might be either to fetch some information, or even to save the result of the Forms that the user has completed. In order to "call out" or integrate with other platforms and systems, we have `Webhooks`.&#x20;

A `Webhook` is an API that you can send data to, and in this case it is something that is accessible via a `HTTP` `POST` request. As a result, to use a webhook you will need a `URL` that will receive the information. You can specify this under the `Webhook` part of the Settings page.&#x20;

![](/files/H4z4k91WDlR1CTBj3k0g)

{% hint style="info" %}
Think of the `Webhook Endpoint` as an address where you'd like to post a letter to. Inside the letter is the contents of the form that the user has completed.&#x20;
{% endhint %}

Once you've setup the webhook, any `Function` blocks you have in your content will call out to this `URL` and pass the relevant data with it. As there is one webhook URL per bot, you may need a way to distinguish between one event and the other. We do this by specifying a `handler name` in the settings of a block.&#x20;

![](/files/LOloYQKczGa7R08RAq1Z)

You can specify any handler name you like, however you then use this name to differentiate between events. By doing so you can have one webhook that supports handling the events from two different blocks.&#x20;

For more information about building a API that can handle these webhook events, please read our `WBB SDK` documentation which provides examples and more details.&#x20;

{% embed url="<https://sdk.wbb.ai/quick-start>" %}


---

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

```
GET https://docs.logicdialog.ai/fundamentals/webhooks.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.
