• 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

24
  • How to Connect MailChimp with ChitChatBot.ai
  • How to Assign a Conversation to an Admin or Team in app.chitchatbot.ai
  • How to Add a Note to a Contact in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Enable or Disable the Messenger Composer in app.chitchatbot.ai
  • Get Started with Telegram Automation on ChitChatBot.ai
  • 📞 Voice Automation with Twilio on ChitChatBot.ai
  • 📲 Get Started with SMS Automation Using Twilio
  • ChitChatBot System Variables & Account Fields
  • Instagram DM Automation with ChitChatBot.ai
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • How to Automatically Reply to Instagram Comments
  • How to Set Up Instagram Story Reply Automation
  • Instagram Story Mention Reply Setup Guide
  • Triggers and Actions in app.chitchatbot.ai 
  • How to Send Broadcast Messages on WhatsApp Using app.chitchatbot.ai
  • 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

12
  • How to Add Webchat to Your Website
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • How to setup bot Persistent Menu?

Facebook Messenger

22
  • Integrating Facebook Ads with Chitchatbot
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Use Personas in app.chitchatbot.ai
  • How to Enable or Disable the Messenger Composer in app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • 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

19
  • Integrating Facebook Ads with Chitchatbot
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • Instagram DM Automation with ChitChatBot.ai
  • How to Automatically Reply to Instagram Comments
  • How to Set Up Instagram Story Reply Automation
  • Instagram Story Mention Reply Setup Guide
  • 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)

6
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • 📲 Get Started with SMS Automation Using Twilio
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai

WhatsApp

15
  • Integrating Facebook Ads with Chitchatbot
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • 📍 How to Get a User’s Location in app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • How to Send Broadcast Messages on WhatsApp Using app.chitchatbot.ai
  • 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

6
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • 📞 Voice Automation with Twilio on ChitChatBot.ai
  • ChitChatBot System Variables & Account Fields
  • Voice Automation with AudioCodes on chitchatbot.ai
  • Custom Fields in app.chitchatbot.ai

Email

5
  • How to Connect MailChimp with ChitChatBot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai

Telegram

8
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • How to Send a Broadcast Message to Telegram Contacts
  • How Telegram Premium Users Can Automate Conversations Using a Chatbot
  • Get Started with Telegram Automation on ChitChatBot.ai
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai

Integrations

41
  • External Requests & Dynamic Content in Chitchatbot.ai
  • How to Extract Data from JSON
  • API Documentation For ChitChatBot.ai
  • QR Codes & Magic Links on ChitChatbot.ai
  • Pipedrive Integration
  • Integrating Facebook Ads with Chitchatbot
  • Klaviyo Integration with ChitChatBot.ai
  • Razorpay Integration with ChitChatBot.ai
  • HubSpot Integration with ChitChatBot.ai
  • How to Connect MailChimp with ChitChatBot.ai
  • How to Connect PayPal with ChitChatBot.ai
  • How to Connect ChitChatBot to Zapier
  • How to Find and Connect the ChitChatBot Make.com (formerly Integromat) App
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • 📞 Voice Automation with Twilio on ChitChatBot.ai
  • 📍 How to Get a User’s Location in app.chitchatbot.ai
  • 📲 Get Started with SMS Automation Using Twilio
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • How to Generate Images Using xAI
  • How to Analyze an Image Using Claude Vision
  • How to Connect Google Gemini to Chitchatbot.ai
  • How to Connect Claude (Anthropic) to Chitchatbot.ai
  • AI Triggers: Connect ChatGPT to Automation & External Tools
  • 🗣️ How to Convert Speech to Text with OpenAI
  • How to Analyze an Image Using Google Gemini Vision
  • Generating Images Using Google Gemini
  • Editing an Image Using Google Gemini
  • CRM Pipeline Management in Chitchatbot.ai
  • Appointment Scheduling Using OpenAI or Google Gemini
  • Appointment Scheduling Manager – Set Up Your Calendar
  • Enhance Customer Support with ChatGPT (OpenAI Integration)
  • Triggers and Actions in app.chitchatbot.ai 
  • 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

15
  • How to Extract Data from JSON
  • How to Generate Images Using xAI
  • How to Analyze an Image Using Claude Vision
  • How to Connect Google Gemini to Chitchatbot.ai
  • How to Connect Claude (Anthropic) to Chitchatbot.ai
  • AI Triggers: Connect ChatGPT to Automation & External Tools
  • 🗣️ How to Convert Speech to Text with OpenAI
  • How to Analyze an Image Using Google Gemini Vision
  • Generating Images Using Google Gemini
  • Editing an Image Using Google Gemini
  • Appointment Scheduling Using OpenAI or Google Gemini
  • Enhance Customer Support with ChatGPT (OpenAI Integration)
  • 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

36
  • Managing Your Ecommerce Products on Chitchatbot
  • Setting Delivery Costs by Location
  • Adding Ecommerce Categories
  • How to Sell with the Webshop
  • How to Use Your Own Custom Checkout Page with Chitchatbot
  • 🛍️ Introduction to Chitchatbot’s Built-in eCommerce Module
  • 🛍️ eCommerce Settings on ChitChatbot.ai
  • External Requests & Dynamic Content in Chitchatbot.ai
  • How to Implement a Referral System
  • How to Add Webchat to Your Website
  • How to Extract Data from JSON
  • API Documentation For ChitChatBot.ai
  • How to Copy Flows & Entire Bot Builds Using Templates
  • QR Codes & Magic Links on ChitChatbot.ai
  • Entry Point Links & Referral Parameters
  • Integrating Facebook Ads with Chitchatbot
  • Analytics in ChitChatBot.ai
  • How to Connect PayPal with ChitChatBot.ai
  • How to Connect ChitChatBot to Zapier
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Set Up Keyword Automated Responses Across Channels
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • How to Import Contacts into app.chitchatbot.ai
  • 📍 How to Get a User’s Location in app.chitchatbot.ai
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • Appointment Scheduling Using OpenAI or Google Gemini
  • Appointment Scheduling Manager – Set Up Your Calendar
  • Triggers and Actions in app.chitchatbot.ai 
  • Add Admins & Agents To Your Account
  • Custom Fields in app.chitchatbot.ai
  • Bot Simulator Tool
  • How to Set Up a Poll

Platform

60
  • Managing Your Ecommerce Products on Chitchatbot
  • Adding Ecommerce Categories
  • How to Sell with the Webshop
  • How to Use Your Own Custom Checkout Page with Chitchatbot
  • 🛍️ Introduction to Chitchatbot’s Built-in eCommerce Module
  • 🛍️ eCommerce Settings on ChitChatbot.ai
  • Messenger Lists For Marketing Messages – Recurring Notifications on Messenger
  • ChitChatBot and GDPR Compliance
  • Dynamic Multiple Choice Options
  • How to Format Date and Time
  • Math Calculations Inside Your Chatbot
  • How to Enable Development Mode – Test Bot for Admins Only
  • External Requests & Dynamic Content in Chitchatbot.ai
  • How to Provide Your Own Language Translations for Built-in Flows
  • How to Implement a Referral System
  • How to Add Webchat to Your Website
  • How to Extract Data from JSON
  • How to Connect Your Google, Facebook, or Microsoft Account for Login
  • API Documentation For ChitChatBot.ai
  • How to Copy Flows & Entire Bot Builds Using Templates
  • File and Video Size Limits on ChitChatbot.ai
  • QR Codes & Magic Links on ChitChatbot.ai
  • Entry Point Links & Referral Parameters
  • HubSpot Integration with ChitChatBot.ai
  • Analytics in ChitChatBot.ai
  • How to Connect MailChimp with ChitChatBot.ai
  • How to Connect PayPal with ChitChatBot.ai
  • How to Connect ChitChatBot to Zapier
  • How to Find and Connect the ChitChatBot Make.com (formerly Integromat) App
  • How to Block a Contact in app.chitchatbot.ai
  • How to Archive a Conversation in app.chitchatbot.ai
  • How to Delete a Contact in app.chitchatbot.ai
  • How to Assign a Conversation to an Admin or Team in app.chitchatbot.ai
  • Step-by-Step Guide: Mark a Conversation as Follow-Up
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Add a Note to a Contact in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Set Up Keyword Automated Responses Across Channels
  • How to Notify Admins on app.chitchatbot.ai
  • How to Use Saved Replies in the Inbox on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Use Personas in app.chitchatbot.ai
  • How to Enable or Disable the Messenger Composer in app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • How to Import Contacts into app.chitchatbot.ai
  • 📞 Voice Automation with Twilio on ChitChatBot.ai
  • 📍 How to Get a User’s Location in app.chitchatbot.ai
  • 📲 Get Started with SMS Automation Using Twilio
  • ChitChatBot System Variables & Account Fields
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • 🗣️ How to Convert Speech to Text with OpenAI
  • Editing an Image Using Google Gemini
  • CRM Pipeline Management in Chitchatbot.ai
  • Appointment Scheduling Using OpenAI or Google Gemini
  • Appointment Scheduling Manager – Set Up Your Calendar
  • Enhance Customer Support with ChatGPT (OpenAI Integration)
  • How to Automatically Reply to Instagram Comments
  • How to Rename Your Account and Change Your Profile Image on app.chitchatbot.ai  
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
  • Agency Partners
  • White-Labeling
meta tech provider verified
Get in touch

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

Contact Us

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
Your Cookie Preferences

We use cookies to optimise our website, personalise and measure the effectiveness of advertising and collect statistics on usage.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}