# Chatbot API - Zapier

Using the API with Zapier

Using the API with Zapier is all about making sure you are copying and pasting the right info into the right places. At its core that's pretty much how every automation platform works - you just have to make sure the right data is going in the right place.

The Action step you are going to select is the POST event in the Webhooks Zap

![](/files/1cNXxonys57DcYvzzuFN)

URL: This is where you paste in the webhook URL:

<https://YOUT\\_AGENCY\\_DOMAIN/en/chatbot/api/v1/message/>

Payload Type: json

Data:

\- chatbot\_uuid | this is the value copy/pasted from the chatbot’s dashboard

\- query | this is the message from the user that you want to send to the AI chatbot

\- user\_key | this is the unique contact ID to identify each person’s conversation

Wrap Request in Array: No

Unflatten: Yes

Basic Auth: Leave this field blank

Headers: Authorization | Token ba534d4274523452345da0e99345a67000![](/files/OLpwESvwA4rfCNRm1bGY)


---

# 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://lety.gitbook.io/lety-docs/chatbot-api/chatbot-api-zapier.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.
