This instruction describes the connection and configuration of Facebook. If you want to connect integration and chatbot for Instagram, this guide will help you.

Social media is an essential resource for today’s online business. It is now possible to automate interactions with your current and potential subscribers and customers thanks to Facebook integration and a convenient chatbot.

Note that the Facebook ad account has a huge set of targeting parameters. This helps to attract the most targeted subscribers to your base, and the cost per subscriber can be lower than from other traffic sources.

By connecting the integration, you will be able to receive Facebook user’s data into your JustClick contact database (with the subsequent use of this data in all service tools), as well as respond to subscribers automatically via a chat bot in the social network messenger.

Connect Facebook to your account

To connect Facebook to your account, go to the mailing settings and click on the “Continue with Facebook” button:

In the window that opens, you need to either confirm your account (if you are already logged into the current Facebook account in the current browser), or log in by specifying the login/password from your account on the social network:

Select the pages that Facebook users will interact with, for which the integration is configured (if they do not exist, create a page or group in your Facebook account):

On the options page, enable all options and click on the “Finish” button:

After successful integration, you will see page data from Facebook:

Handover Protocol

Go to the settings of the Facebook Business page (Page settings – Advanced Messaging – Handover Protocol) and click the “Configure” button for the Messenger receiver and specify the JustClick application for the item “Primary receiver for handover protocol”

Facebook integration tools

All subsequent settings for interaction with Facebook users are done through processes.

Create a process with Facebook chatbot features

Create a process in the “Tasks” section (for more details about creating processes in this manual) or directly in the funnel (for more details in this manual). You will be able to send messages to users via the JustClick chatbot directly to Facebook.

In this case, you have the opportunity to receive a contact email address from a Facebook user. This will allow you to interact with the user not only within the social network, but also send email newsletters.

We recommend using processes in funnels – you can configure additional actions for the user after the process is over for him:

The starting trigger of the process will be the “Start dialogue on Facebook” block:

When setting up the block in the field [1], you need to select the page on whose behalf the interaction with the Facebook user will occur (you have already connected it in the Mailings-Settings-Messenger integration section):

In field [2] you can include a unique ref-link – then the process will be launched only if the Facebook user started the dialogue exactly by the link with the following parameters:

After adding the start trigger, configure other actions that will be performed for the social media user: following Facebook and sending a message in Facebook chat.

Attention! In messenger message blocks, it is now possible to add a link with the #nextpage tag. This option works only with visual funnels. Read more HERE

Facebook subscription to JustClick

To send an activation email from JustClick to a Facebook user email, use the “Facebook @ opt-in” block in the process:

In the block settings, you need to configure the text of the subscription question by email, as well as configure the subscription activation letter. Be sure to pay attention to the last field “URL after confirming the subscription” – in it you need to specify a link to the page to which the user will be redirected after clicking on the activation link in the sent email:

You can read the article on using variables ({…} | Contact name | Reset password, etc.) here.

Pay attention to the type of message that is sent to the user! Any message sent more than 24 hours after the last user interaction must be of acontent type that matches the purpose of the message (in accordance with Facebook’s Messaging Policy).

There are 4 types of messages available:

  1. A message of type “Message in the first 24 hours” will NOT be delivered to users who interacted with you on Messenger more than 24 hours ago. If none of the specific message types are right for your use case at this time, use SMS or email to send them information 24 hours after interaction. The “Message in the first 24 hours” type is set by default. This message is sent only within 24 hours after the user interacts with your chat.
  2. Type “Reminder or Updates for Event” should be specified if in this message you will notify the user of an event for which he or she previously registered or booked. You should not use this type for messages where you are promoting something, offering a coupon, or notifying about an event for which you have not previously registered.
  3. Type “Post-purchase message” must be specified if you want to provide the contact with information about an already completed purchase (for example, information about the invoice, about changes in delivery conditions, etc.). You should not put this type of message if you plan to send the user information about other offers, for upselling or other information unrelated to the purchase already made.
  4. The Account Update Message type must be used to notify a one-time change in a user’s account. The type is suitable for reporting a change in the status of an application in the account, or notification of suspicious activity in the account. It is unacceptable to use this type for systematic, recurring notifications; for advertising messages; for tips or notifications about anything other than one-time account changes.
Similarly, selecting a post type works for both Facebook Questions and Facebook Messages.

After the user enters the process with the “Subscribe via Facebook” block, in the chat he will be asked to subscribe to your mailings in one click, specifying an e-mail (substituted from the Facebook account profile):

After the email is sent via chat, a subscription activation letter will be sent to the user’s mail, and the user’s email will be added to your contact base:

After activation, the Facebook user’s contact will become an activated subscriber in the JustClick system: you will be able to send him letters through the process (as well as broadcasts and automatic email series).

Sending a message to a user on Facebook

To send a message to the Facebook user who started a conversation on your page within the social network, add the “Facebook Message” block in the process:

In the message settings, add the message text to the field [1]; the text of the button that will be shown – in the field [2] (if necessary); and the link that the user should follow after clicking on the button – in the field [3]:

An example of a message from a chatbot for a Facebook user:

You can create additional messages by clicking on the buttons:

  1. +Text – additional text message.
  2. +Image – additional message-image.
  3. +Video – additional video message.

Want to add follow-up messages to the user? It’s simple:

By pressing the button [1] – the format of the additional message will be selected, which will be displayed as field [2]. After adding text, picture or video, it will be displayed in field [3]; you can also add a button with a link below the new post if needed.

You can add quick replies to the chatbot!

When the user receives your message, he will be shown one or more options for a quick response to your message. The JustClick chatbot recognizes the answer options and performs actions according to the specified settings:

In the text for messages, you can add emoticons that work in the messenger – they will be shown to the user as if they were added to Facebook.

An example of a message with these settings:

You can combine messages, create different process options, and also combine them with the “Subscribe with Facebook” block to tell the user more about the benefits of subscribing. For example, offer a gift that you only send by e-mail.

You can send messages to the user in the messenger within 24 hours after any response (message, including a quick response) from the Facebook user. If the user does not write in the chat within 24 hours, the process will not be able to send him such a message due to restrictions on the side of Facebook.

You can also post links to your free courses in Facebook messages. Even if users in Facebook chat do not indicate their email, they will be able to follow the link and watch a free course. If the email is specified, this email will be updated in the student’s account.

The security system of the service will automatically ask the user to re-authorize in the student’s account if the user’s Facebook email matches the student’s email that was previously registered in the system. This is to prevent Facebook users from accessing your paid courses for free if they accidentally enter the email of an active student.

Questions in the Facebook chat

You can ask questions with selected answer options to users so that the answers are saved in the user’s contact card.

To do this, add the Facebook Question block to the process:

In the block settings, you need to specify a question that will be addressed to the user [1], as well as the answer options that he can choose [2]. The user’s answer will be saved in the fields of the contact card [3]. It is possible to select additional contact fields as a field, or create it by clicking on the “Create field” button:

You can find out more about which type of message to choose here.
Be sure to select or create a field that matches the response type. If an additional contact field of the “Integer” type is created, it will be impossible to write letters-symbols into it, if they are in the quick reply.

You can set a block execution timeout. In this case, it is possible to transfer the contact to the next block of the process, if he does not answer the question after the selected time (in the example, the timeout time is 10 minutes):

You can also add a filter at the time of block execution so that the block is triggered only for contacts that match the filter conditions.

After configuration, a block “Facebook question” will be created with 4 outgoing links, which will be performed for contacts, depending on how they answered the question:

For a contact, the condition “Response received” [1] will be triggered if any response has been received from the user; conditions “Answer 1” and “Answer 2” ([2] and [3]) will work for the contact if he chose the first or second of the proposed answers, respectively; if the user did not answer within the selected time (in the example – 10 minutes), the “Timeout exceeded” condition will be triggered for him.

The question created in this way will be shown to the Facebook user with the answer options:


When a user selects an answer (for example, “Answer 2”), it will be saved in an additional field in that user’s contact card.

Setting up a sophisticated chatbot for Facebook

You can set up a sophisticated responsive chatbot for your Facebook pages to effectively and most importantly automatically interact with your page visitors. To download a ready-made chatbot template, click on this link and add a funnel with a process to your account.

Let’s take a closer look at the main features of a chat bot:

The main advantage of such a chatbot is that all 3 branches will be executed in parallel: the user can select one of the functions and get the result (this will end the process for him).

After the dialogue on Facebook has started, you can send a welcome message to the visitor of your page, in which he can choose what he is interested in:

  • receive a training course as a gift (left branch of the process);
  • offer of a paid course for the promotion (middle branch);
  • ask another question, incl. by phone (right branch).

To configure such a block, you need to configure the response options in the “Greetings” block:

After one of these options works, the user will receive a message in the messenger and can choose one of these quick replies. Depending on the user’s response, one of the scenarios will be implemented in the process:

Option “Gift”

After a Facebook user clicks on the “Get a Gift” quick response, the “Subscribe offer” block will work for him. In this block, you can inform that you are sending a gift only by email, and so that a visitor to your page can receive a gift, he needs to send you his email:

Then the next block of the “Subscribe via Facebook” process will ask the user for an email – in the messenger he will just need to click on the email, and the subscription will take place. Then the user activates the subscription on his mail – and the last block of the “Letter with a gift” branch will be executed for him.

You can add any other actions after this block, or – as in the example – after this block add “End of Process”. This will end the chat with the Facebook user.

Option “Special Offer”

When a Facebook user selects a quick response “Learn about the Special Offer” – the “Message with a button” block is triggered for him. In this block, you can describe your proposal to the client in as much detail as possible; clarify that it is limited and available only now (for example), as well as add a button that will link to your selling page (or directly to the order page with a discount):

Clicking on the button (shown with an arrow in the screenshot) will take the user to the link in this button.

Option “Other”

When a Facebook user selects the “Other” quick response, the “Phone Request” block is implemented for him. Add clarifications for the visitor to this message: what question he is interested in; ask the user for a phone number:

The next block can be added to the “Task for the manager to call” block so that your employee receives a notification about the need to contact the client. Then – in the “completed” output, add “end of the process” (because your manager contacted the Facebook user and helped resolve his issue), and in the “failed” output, add an additional message for the client that he will be contacted in the near future, or an additional nice bonus.

All branches must end with an End Process block.

Expanding the functionality of chat bots

If the user selects one of the options in the chat shown above, other options will not be shown for him after the end of the branch of the selected option.

You can make it so that the Facebook user within the chat in the messenger can go through all 3 branches of the chatbot, choosing different options for a quick response after the greeting. There are several options for configuring a chatbot for this, but the easiest to configure is the option with recursion of branches.

You can add an example of a chatbot with recursion to your JustClick account by following this link.

The main feature of this chatbot is that it constantly (or partially) repeats itself, because after executing the branches, the contact in the process returns closer to the beginning of the process, and it will continue to execute for it:

General features of how to best set up a chatbot with recursion:

  1. The start trigger is “Facebook conversation started”.
  2. The next block (without delay) – “Facebook message” – a greeting for the user. It shouldn’t be repeated – you don’t need to say hello several times in one chat.
  3. The next block is the choice of options for the user. This is also a “Facebook message”, but it will be repeated after the end of the chatbot thread.
  4. The following blocks – come from each of the choices. There you configure the functionality you need, which will be performed for the contact (as in a simple chatbot).
  5. After you form the entire branch – you need to link the last block of the branch to block 3 – which is placed after the greeting block.

With this, set up the chat bot after the client, for example, receives information on the promotion, a message will be displayed again where he can choose the option with a gift or “other”:

On the “other” option, we recommend adding the “End of process” block with a delay, so that after telephone conversations or chatting, the user will automatically end the process (and the funnel actions will start for him).

Rate article

1 star2 stars3 stars4 stars5 stars (No votes)