JSON Code Generator

The JSON Code Generator allows you to string of messages together. The output it will give you is a string of JSON code. This JSON code can be used with your Facebook and Messenger Ads. These Ads are an entry point for people to your chatbot. And the JSON Code Generator assists in setting up these messages.

Here's a short video on how the JSON Code Generator works:

We hope the video sheds some light on the JSON code generator feature. If that went a bit too fast for your taste, please see the rest of the article about the JSON Code Generator Page.

JSON Code Generator Features

With the JSON Code Generator feature, you can string multiple messages (up to 5 as per the Facebook limit) together and convert them into a JSON code. It enables you to use your existing messages in conjunction with those nifty Messenger Ads. This saves you a ton of work, a better overview, as it gives you an easy way to set it all up. You’ll find all your messages, you can use to compile a JSON code with, stored inside the table at Capture > JSON Code Generator. The table will be empty if you haven’t set up any messages (or flows) yet.

JSON Code Generator Overview

In this section of the article you find what you can expect on the JSON Code Generator page. Respectively, Message Name, Actions, Drop-down, Search, Pagination, and more.

1. Message Name

  • This is the Message Name you give to your message when building a Flow. It’s recommended to use a Message Name that helps you to find your message back easily.

2. Actions

  • These are the actions you can perform on an individual message, currently: View Message.

3. Drop-Down menu

  • You can change the number of messages you want to appear per page by clicking the drop-down in the right-upper corner. You can choose to show either 10, 25, 50, or 100 records per page.

  • In the right-upper corner, you can also use the search field. Search terms are applied to all data in the table.

5. Next/Previous Page

  • In the bottom right corner, you can view the next page or previous page by clicking “next” or “previous”. This allows you to navigate through all your messages.

Setting Up Your JSON Code

Generating a new JSON Code is easy:

  • Simply click on the checkboxes, in order to specify which messages you want to include in your JSON code

  • Once you’ve selected at least one message, you see that the button “Select at least one message” is changed to “Generate JSON Code”.

    • Select up to 5 messages (per Facebook’s limit) to include in your JSON code

  • Then simply click on the button that now says “Generate JSON Code”.

A Slide-in will appear on the right side of the screen which has 3 "items":

  • A button called “Copy Generated JSON Code

    • Click to copy this code and use it when setting up your Messenger Ad

  • A button called “View Generated JSON Code

    • Click to view the code

  • A Preview of how your message will look like

Last updated