How to Create and Use Facebook Messenger Codes (Scan Code)

Intro to the Messenger Code

Messenger Code, Parametric Code or Scan Code, whatever you want to call them drive offline traffic to your chatbot. A Messenger Code functions like a QR code, but specifically for Facebook Messenger. By printing and posting these scannable codes, you can push offline users to your chatbot with ease.

This guide will cover:

  • What a Messenger Code is
  • Why you should use Messenger Code
  • How to get a Messenger Code with the Rocketbots Platform & Dialogflow

What is a Parametric Code Exactly?

Parametric codes are QR codes for Facebook, once scanned, a person will be brought to your bot for a conversation. Take a look at how we created an awesome business card to give out at our events.

Image for post
Image for post

Behind the Parametric Code, is a URL with a reference, which directs the user to a specific conversation in the chatbot. By adding that same reference to a specific intent inside your Dialogflow Agent you decide the conversation the user has after scanning.

The URL behind the Parametric Code looks like this:

Image for post
Image for post

1. Connect Facebook to Rocketbots. You can add a new channel at any time by navigating to the Channel Settings and pressing on “Add Channel”.

2. Open the Create Scan Code screen. In the Channel Settings section you will find a small icon that resembles the scan code next to the Facebook Channel you connected.

Image for post
Image for post

3. Add a Reference and Download. You can create a different code for any occasion (or campaign), just by changing the reference. Press on download and that’s it.

What is a Reference?

References are quite helpful. Every time someone scans your code, the reference gives us an indication where this code was scanned and allows us to take an action in return. Imagine adding this code to a flyer, and you would like to automatically send a file to anyone that scans it. The reference code will help you identify everyone who came to your chat from that flyer against anyone who found you through other means. You can see this as a segmentation tool.

Why You Should Use Parametric Codes.

Simple, you have a bunch of offline users and you would like to turn them into an online audience. Here are some amazing use cases where parametric codes are incredibly handy.

A Spa

You chatbot then lets people request assistance, and food while they are at your Spa. How do you let them know these services are available at their fingertips?

Place a Parametric Code near the pool that prompts people to scan with Facebook Messenger for assistance.

Once scanned you can send your client directly to the intent that acknowledges they are already inside the Spa and shows off the services available.

A Large Event or a Convention

So you’ve put all this effort into organising a massive event and you want to make sure you can reach those you actually came to the event next year.

Place a Parametric Code on the wall with the subtitle, scan with Facebook Messenger to find out about the awesome afterparty.

Not only will you have an audience to message for next years event. You can broadcast messages to your guests when new details about your party become available. Making sure your after party is great as can be.

A Pizza Place

Do you spend a lot of time making the fancy one-off pizzas to please your loyal customers? I sure do. Don’t you wish you had a way to reach your customers with a tasty photo when you make one of those magnificent creations?

Easy, just put a Parametric Code in your restaurant so your customers can get the WiFi password. The bot will give them the information they need and you can broadcast message them with delicious custom pizzas to your heart’s content.

Written by

CEO and founder of Rocketbots (, a Hong Kong based company specialized in developing AI-powered Chatbot solutions for enterprises.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store