Facebook Ads for Messenger integration

2 ways to set up a Facebook Ad to lead paid traffic to your chatbot.

Using this guide you’ll create an Ad experience like the one in this video:

Note that it is working with video ad only.

Here’s how to set up a Facebook Ad using link

It’s an easy way, but it requires tapping Get Started by a user. You can use either regular… link or…?ref=… link.

Here’s how to set up a Facebook Ad using JSON message

It’s a more complicated, but flexible way.

  1. Create a regular Facebook Ad with video or image as media and fill it with your promotional content.
  2. Choose “Structured Message (JSON)” as a destination.
  3. Ads_Manager
  4. Tap edit. Paste proper JSON code and that’s it!

Composing proper JSON code

You configure the first message that a user sees in your bot with the use of JSON code.


Here’s what the JSON of the bot’s first message from the video looks like:

    "message": {
        "attachment": {
            "type": "template",
            "payload": {
                "template_type": "button",
                "text": "You're in 2 taps from buying awesome Japanese knife set",
                "buttons": [
                        "type": "postback",
                        "title": "Proceed to checkout",
                        "payload": "block name: japanese knife"
                        "type": "postback",
                        "title": "Learn more",
                        "payload": "block name: knife info"

As you can see, it’s a regular Button Template JSON with payload in buttons that looks like this: “block name: <target block name>”.

We also recommend that you use the Generic Template in your Ads.