Submit a ticket

Integrating Facebook Ads with JSON

Want to learn more about this powerful tool? Our tutorial will help!

Facebook Ads are awesome for attracting new customers and communicating with your existing audience. JSON Growth Tool allows you to send an Opt-in message to every user who clicks on your ad. JSON Tool generates the code that's directly connecting the ad to Flow in the bot!

Note: this feature is a part of our Pro plan and isn't available on a Free one.

Creating 'Facebook Ads JSON' Growth Tool 

Navigate to 'Growth Tools' tab and click on '+ New Growth Tool':

Type a name for your Growth Tool and click here to create 'Facebook Ads JSON':

Next, you need to design an Opt-in message. Click 'Edit' to start working in a Builder:

This process is similar to any other ManyChat message creation. However, there are some limitations:

  1. The first message in the Opt-in Flow has to be less than 150 symbols.
  2. JSON doesn't support variables (ex. First Name field), Delay blocks, Buy Buttons, User Inputs, and Actions in URL buttons in the first message of the Opt-In message flow. 

Once the Opt-in Message is finished, open the 'Setup' tab:

And click here to copy your code:

Alternatively, you can create the Growth Tool directly in Flow Builder by clicking on the "Add Trigger" button:

And select the "Facebook Ads" trigger:

Creating Facebook Ad in Ads Manager

After opening Ads Manager, click 'Create Ad' button. Choose the 'Quick Creation' setup.

Next, you need to choose a campaign Objective. JSON Growth Tool works with Traffic, Messages, and Conversion Ads only.

After you click "Continue", choose Messenger as a destination for your Ad:

Feel free to select most suitable for you Audience, Budget & Schedule options. As for Placements, stick with Automatic Placements —this option will be adjusted automatically later. Then click 'Next'.

When you get to the Ad Setup tab, edit the headline, text, etc. of your ad and then scroll down until you see the Messenger setup section. Here you will need the 'Create New' section. Choose the 'Advanced Setup' option.

After this, click the 'Edit' button under the chosen setup. You'll see the default JSON code that you need to replace with the code copied from your JSON Growth Tool in ManyChat.

When the code is replaced, click 'Preview in Messenger' button to check your Opt-in Message and the whole flow.
Once JSON code is saved, the Ad's image and text successfully set up, you can click 'Finish' and then 'Confirm' to send your Ad to moderation.

Here is how your Ad will look like on the Facebook Feed:

'Send Message' button will fire your Opt-in Message to user's Messenger:

Yay! You have set up your Facebook Ad which will send an Opt-in Message to your potential or existing Audience. Remember, that users have to write anything back or click any Button in order to become a Subscriber. 

Troubleshooting Notes

Can't see JSON statistics:
For now, JSON stats can't be tracked by ManyChat, unfortunately. You can see a disclaimer about it under "?" sign in the 'Clicked' section of JSON statistics. It says: "Due to platform limitations we cannot definitely track Growth Tool impressions and opt-in message stats. The first time we can track a user is when he/she clicks a button in your opt-in message". However, once people interact with the first message of the opt-in sequence, they are recognized by ManyChat and since that point, ManyChat starts collecting its own stats. As such, if you choose the second message of the opt-in message flow, you'll see a precise number of people who received this message and interacted with it.

Opt-in Message isn’t sent/doesn’t react to clicks:
First of all, please make sure your Opt-In Message is Published in the Growth Tool’s ‘Opt-In Actions’ tab - unpublished changes will be marked by a small yellow circle near the ‘Edit’ button.

Also, make sure you’ve inserted a correct JSON code that’s been generated in the 'Setup' tab of the Growth Tool after publishing the Opt-In Message.

You need to replace the JSON code in Ads Manager only if you edited the opt-in message.