• Channels
    • Instagram DMs
    • Facebook Messenger
    • WhatsApp
    • TikTok
    • SMS
    • Website
    • Voice & Phone
  • Platform
    • Features & Integrations
    • CRM & Ticketing
    • Chatbot Templates
  • Services
    • Click-To-Message Ads
    • AI Agents
    • Chatbot Development
    • Industries
      • Restaurants
      • Real Estate
      • Influencers & Creators
      • Universities
      • Car Dealers
      • Gyms & Fitness
      • eCommerce & Retail
      • Consumer Goods
      • Law Firms
      • Museums & Attractions
      • Travel
      • Events & Entertainment
      • Hotels
  • Pricing
  • Contact
  • Log In
  • Create Bot

How to get the JSON code for Click-To Message Adverts on Facebook & Instagram

  • Home
  • Docs
  • How to get the JSON code for Click-To Message Adverts on Facebook & Instagram

Channels

4
  • How to Create and Send a WhatsApp Template Message on app.chitchatbot.ai
  • WhatsApp Business Chatbot Setup for ChitChatBot.ai
  • Custom Fields in app.chitchatbot.ai
  • How to Set Up a Poll

Webchat

3
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • How to setup bot Persistent Menu?

Facebook Messenger

11
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • Automatically Reply To Facebook Comments
  • How to get the JSON code for Click-To Message Adverts on Facebook & Instagram
  • Meta’s Guidelines and Policies for Using Automated Bots
  • Messenger Lists For Marketing Messages – Recurring Notifications on Messenger
  • How to setup bot Persistent Menu?
  • How to setup the greeting message?
  • How to set up Conversation starters?
  • How to setup Welcome Message for Messenger
  • Core Messenger Welcome Components

Instagram DMs

6
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • How to get the JSON code for Click-To Message Adverts on Facebook & Instagram
  • Meta’s Guidelines and Policies for Using Automated Bots
  • How to setup bot Persistent Menu?
  • How to set up Conversation starters?

Text Messages (SMS)

1
  • Custom Fields in app.chitchatbot.ai

WhatsApp

4
  • How to Create and Send a WhatsApp Template Message on app.chitchatbot.ai
  • WhatsApp Business Chatbot Setup for ChitChatBot.ai
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 

Voice / Phone

2
  • Voice Automation with AudioCodes on chitchatbot.ai
  • Custom Fields in app.chitchatbot.ai

Email

1
  • Custom Fields in app.chitchatbot.ai

Telegram

1
  • Custom Fields in app.chitchatbot.ai

Integrations

9
  • Connect OpenAI ChatGPT to your ChitChatBot.ai Account
  • Voice Automation with AudioCodes on chitchatbot.ai
  • How to Generate Images Using OpenAI on Chitchatbot.ai
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • How to Analyse an Image Using OpenAI Vision
  • Google Sheets – Dynamic Gallery
  • Google Sheets
  • ActiveCampaign

AI Features

3
  • Connect OpenAI ChatGPT to your ChitChatBot.ai Account
  • Voice Automation with AudioCodes on chitchatbot.ai
  • How to Generate Images Using OpenAI on Chitchatbot.ai

Tools

4
  • Add Admins & Agents To Your Account
  • Custom Fields in app.chitchatbot.ai
  • Bot Simulator Tool
  • How to Set Up a Poll
View Categories
  • Home
  • Docs
  • Channels
  • Facebook Messenger
  • How to get the JSON code for Click-To Message Adverts on Facebook & Instagram

How to get the JSON code for Click-To Message Adverts on Facebook & Instagram

1 min read

Click-To-Message Ads

Promoting your products through Click-To-Message Ads can be significantly enhanced by using automation. By using the JSON code, you can automate interactions with potential customers and streamline the process, allowing your bot to handle responses, engage users, and guide them toward making a purchase. This integration ensures a seamless experience for your audience, as the chatbot can take over communication once users click on your ad.

The JSON code is a powerful tool because it enables you to easily integrate your chatbot’s flow with Facebook Messenger and Instagram Direct Messages. This approach enhances engagement by providing real-time responses and nurturing leads efficiently, making it a valuable tool for businesses looking to scale their marketing efforts on both platforms.

Here’s how you can generate and use the JSON code for your chatbot to work with Messenger and Instagram ads:

  1. Step 1: Select Flows from the left sidebar of the platform.
  2. Step 2: Open the flow you want to generate a JSON code for.
  3. Step 3: Click the three-dot button in the upper right corner of the flow builder.
  4. Step 4: Click Get JSON for Messenger Ads (This works for Instagram too).

By using the JSON code, your chatbot can be seamlessly integrated with both Messenger and Instagram ads, enabling you to deliver personalised and automated customer experiences across both platforms.

json ads - ChitChatBot - AI Bot Building Platform

Where to Paste the JSON Code:

  1. Go to Ads Manager and create a Click-to-Message Ad.
  2. At the Ad level, navigate to Message Template.
  3. Select Partner App and then Enter JSON Code.
  4. Remove all placeholder code that is already there – double check it’s all deleted.
  5. Paste the JSON code you generated from your flow.
  6. Once pasted, save your settings.
json mesage - ChitChatBot - AI Bot Building Platform

When setting up Click-to-Message Ads and selecting multiple destinations, such as Messenger and Instagram, be aware that Facebook Ads Manager can sometimes behave unpredictably whilst creating the ads. If you choose both platforms, Instagram will not support the JSON template and will show the error: “Instagram Direct does not support this message template. Your ad will only click to Messenger.”

However, if you deselect Messenger, the same JSON code works perfectly on Instagram.

To avoid this issue, it’s best practice to create two separate ad sets: one targeting Messenger and the other targeting Instagram, with each ad set using the appropriate JSON code for the respective platform. This ensures smooth functionality and avoids errors on both platforms.

This may not be an issue for you, however, we have raised this issue with Meta who plan to fix this bug and support both messaging apps using JSON rather than creating separate ad sets for each messaging app when JSON is used.

json mesage2 - ChitChatBot - AI Bot Building Platform
Updated on 18 November 2024

What are your Feelings

  • Happy
  • Normal
  • Sad
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Automatically Reply To Facebook CommentsMeta’s Guidelines and Policies for Using Automated Bots

Integrated AI. Infinite possibilities.

5
4
3
2
  • Log In
  • Sign Up
g2 reviews
Resources
  • Platform API
  • Documentation
  • Blog
  • FAQ
meta tech provider verified
Get in touch

Engage on any channel, connect with more people, and drive results - all in one chatbot platform.

Copyright © 2025 ChitChatBot.ai

Chit Chat Communications Ltd. is a limited company registered in England and Wales. Registered number: 13422957. VAT GB433681590.

  • Terms & Conditions
  • Privacy Policy