In this article, I will show you how to integrate ChatPion with BotSailor.
You can send WhatsApp messages to your Facebook messenger subscribers who will provide phone numbers through ChatPion. I will show you the whole workflow and how to integrate it. Ultimately, the subscribers of the ChatPion will become the subscribers of the BotSailor.
On the WhatsApp Webhook Workflow page, you can easily integrate ChatPion with BotSailor.
Collect Phone numbers by ChatPion with Quik Reply or User Input Flow inside Facebook Messenger:
To Integrate ChatPion with BotSailor, first, you have to collect the phone numbers of the Facebook Messenger subscribers.
Now let's see how to collect phone numbers from Facebook messenger subscribers with ChatPion.
To collect phone numbers, you must create a chatbot on ChatPion that will collect phone numbers from Facebook messenger subscribers.
To create a chatbot that will collect phone numbers from Facebook Messenger Subscribers, first go to the Dashboard of the ChatPion.
Then click on the BotManager menu at the left sidebar. After that click on the Create new flow button. Instantly, the visual flow builder editor will appear.
In this article, I have created a chatbot with a quick reply to collect phone numbers.
Now go to the BotSailor to integrate ChatPion with BotSailor.
Now click on the Webhook Work Flow campaign at the left sidebar of BotSailor. Instantly, WhatsApp Webhook Workflow will appear with a button called to create.
To create a Webhook WorkFlow Campaign, click on the create button. Instantly, a section called new workflow will appear at the bottom of the page.
Now you have to provide a name in the workflow name field. And select a WhatsApp account in the WhatsApp Account field. Click on the field and a drop-down menu of the different fields will appear. And from the drop-down menu, select a WhatsApp account. And from the selected account, the message to the Facebook messengers subscribers will be sent.
In the message template field, you have to select a message template that will be sent to the Facebook messenger subscribers that will provide phone numbers. Click on the message template field and a drop-down menu of different message templates.
Now let's see how to create a message template.
To create a message template, click on the Bot Manager menu at the left sidebar of the dashboard. Instantly, the WhatsApp bot manager page will appear.
Now click on the Message template option, and the message template settings section will appear with a create button. Click on the create button to create a message template. Instantly, a pop-up modal form called a message template will appear. Now you have to fill out the form.
Provide a template name in the Template name field. Then you have to provide a message in the message body field.
Then you will see a button option. In the button option, you can create a Call to Action or Quick Reply button.
In this article, I will create a Quick Reply Button. Click on the Quick Reply option. Instantly, a field called Button Text will appear. Now provide a button text in the Button Text field. Now click on the Save button.
And the message template will be created and is available in the list of message templates. Now check the status of the message template by clicking on the Check Status Button. If the status of the message template is improved, you can use the message template.
In the message template, I have created a quick reply button. Therefore, now I need to create a postback.
To create a postback, click on the postback option. Instantly, the post-back settings page will appear with create button. Now click on the create button and you will be redirected to the visual flow builder editor.
Now add a Text element to the Start bot flow. On the text, element, add some text about BotSailor. Now click on the save button to save the postback.
Now come back to the Webhook Workflow. In the message template section, select the message template you have created for this webhook workflow. Now click on the create workflow button.
Instantly, a webhook callback URL will appear. Now you have to copy the webhook callback URL.
Now go to the dashboard of the ChatPion. Click on the API Channels menu in the left sidebar of the Dashboard. Then click on the JSON API Connector.
Instantly, the JSON API Connector page will appear with a new connection button.
Now click on the new connection button. And instantly, a modal form called to add a new connection will appear.
Write a name for the connection in the name field. In the select page field, select a page. And in the Webhook URL field, past the Webhook callback URL, you copied from the BotSailor.
Now select the phone number field. That is, when the phone number field changes webhook callback will be triggered.
Also, you have to select First name, Last name, and phone number in the Which data you need to send section.
Now click on the Save button.
Now come back to the BotSilor Webhook section in the botsailor and click on the Capture Webhook Response. And it will wait for sample data. And you need to provide sample data here to map the data.
Now go to the Facebook page you have created the chatbot for. In the messaging window of the Facebook page, write a keyword to trigger the bot.
Instantly, the quick reply of the bot will show you your phone number. Now click on the phone number to provide it.
Now go to the BotSailor to capture the data. After a moment, you will see the data.
In the Raw data field, you will see the data.
Now you have to map the webhook response with some variables.
In the phone number field, you have to select the phone number.
And you need to remove the plus sign of the phone number to send WhatsApp message to the number.
To remove the plus sign from the phone number, you have to use a data formatter.
Click on the new button in Data Formatter. Instantly, a data formatter will appear. Write a name in the name field. Now you have to select an action. I have to remove plus sign from the phone number so I select the Trim Left option. In the Trim field, you have to provide what you want to trim so that provide plus sign in the Trim Field. Now click the save formatter button.
Now select the formatter.
In the user name variable field, select the first name.
Now create a formatter to formate the user name.
Click on the new button in Data Formatter. Instantly, a data formatter will appear. Write a name in the name field. In the action field, select concate right. In the Glue field, if you want to use white space use write [space] inside third bracket. In the Concate section, write [last_name]. Now click the save formatter button.
Now select the name formatter you have created for the user name. Now in the button field, select the postback I have created.
If you want to send the message with delay, you can select the delay time.
For this tutorial, I am selecting nothing.
You can also send messages based on condition.
Now click on the Save workflow button.
Now check if it is working or not.
In this article, I am not setting up any rules. Now click on the save workflow.
Go to the Facebook page and open the messaging window. And send the keyword in the messaging window.
The Quick reply of the bot will show you your phone number. Click on the phone number to provide the phone number.
Now return to the WhatsApp work flow section of the BotSailor. Now click on the report button of the Workflow to see the report.
Clicking the report button, we see that the Workflow is in pending status.
We hope that the message will be sent in a few seconds. Just wait for a few seconds to get the message.
Now open your WhatsApp account to see the message.
Categories :
Stay ahead of the curve with BotSailor`s latest articles. Dive into expert analyses, industry trends, and actionable tips to optimize your experience. Explore our articles now and unlock the full potential of your business.
BotSailor is a complete WhatsApp marketing automation; it has chatbot, live chat, broadcasting, Shopify & WooCommerc...
READ MOREYou can send Woocommerce Order Notifications to customers via WhatsApp by BotSailor in a very easy and straightforward w...
READ MOREWe're delighted to announce the opening of the BotSailor Affiliate Program today! We developed it as a way to thank the ...
READ MORE
(0) Comments