# Messenger Ads to chatbot

While creating ads, you can run messenger. Below are steps on how to connect facebook messenger ads with chatbot.

* Open ad manager and edit the ad. Go to "message template" section and click on "Create new" in the dropdown to create a new message template, as shown below in the image.

![](/files/-MSBUc4HcBB6Ji8F0M_s)

* Click on "Start conversations" and Create button below that, as shown below

![](/files/-MSBWxXZbopn0TKO-OoU)

* Choose desired message type among "text only", "text and image" or "text and video" and configure text/image/video.
* In the custom action section select "Quick Replies". Add as many Quick reply options as needed.
* For each quick reply option, in the automated response section, select "connect your bot" in dropdown. In bot payload fill PLAYBOOK\_\<playbook id> as shown below in the image. You can get playbook id from AI builder(in left bar hover over playbook name, click on 3 dots and select "copy id")

![](/files/-MSBVyr3b1oEPWoz3nNn)

* In the customer action, instead of Quick Replies, you can also use Buttons and in button payload user PLAYBOOK\_\<playbook id>.
* In the 2nd step, instead of "Start conversations" you can click on "Advanced setup", define your own JSON payload as required and use PLAYBOOK\<playbook id> wherever bot payload is required.


---

# 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.intelliticks.com/growth-hacks/messenger-ads-to-chatbot.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.
