> For the complete documentation index, see [llms.txt](https://help.chatterfy.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.chatterfy.ai/konstruktor-skriptov/nastroiki-skripta/tipy-stepov-vnutri-konstruktora/send-webhook.md).

# Send Webhook

**Send webhook -** это функционал отправки информации из Chatterfy в любые внешние сервисы посредством отправки webhooks.&#x20;

{% hint style="info" %}
Чтобы добавить отправку вебхуков, вам необходимо добавить новый шаг **Send webhook.**
{% endhint %}

1\. Нажмите на кнопку "Create step"

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-09-30/82057b28-94f1-4eed-82f6-1711fe36476a/user_cropped_screenshot.jpeg?tl_px=0,0\&br_px=1306,870\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=1\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png\&wat_pad=365,217)

2. Нажмите на кнопку Send Webhook

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-09-30/11e296e2-c430-4fa4-b0fa-d61afc3055a4/user_cropped_screenshot.jpeg?tl_px=0,152\&br_px=1145,1114\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=1\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png\&wat_pad=555,485)

<figure><img src="/files/Dc6WIxiKtzxLxxORwY9F" alt=""><figcaption></figcaption></figure>

* **Доступные переменные для отправки:**

{username} - Имя пользователя в телеграмм. (текстовое значение)

{chatId} - ChatID пользователя в телеграм. (числовое значение)

{stepKey} - Ключ шага, на котором находится пользователь (текстовое значение)

{createdAt} - Время начала диалога (2024-03-10T17:49:32.806Z)&#x20;

{KEYCUSTOMFIELD} - Ключ из ваших кастомных полей. Замените KEYCUSTOMFIELD на ваш KEY кастомного поля, который можно найти в Bot Settings

{tracker.KEYTRACKERFIELD} - Ключ из ваших трекер филдов. Например, {tracker.clickid}

{% hint style="info" %}
Примеры отправок webhooks
{% endhint %}

{% hint style="success" %}

```
https://keitaro.yoursite.com/25123a/postback?subid={tracker.clickid}&username={username}&chatid={chatId}&startdialogue={createdAt}
```

{% endhint %}

* **В этом вебхуке мы передаем параметры в keitaro по формату:**

subid={tracker.clickid} - передаем для Keitaro clickid юзера, который был задан для этого пользователя трекером&#x20;

username={username} - имя пользователя телеграмма

chatid={chatId} - ID пользователя телеграмма

startdialogue={createdAt} - время начала диалога


---

# 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://help.chatterfy.ai/konstruktor-skriptov/nastroiki-skripta/tipy-stepov-vnutri-konstruktora/send-webhook.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.
