🌐 How to Send WhatsApp Messages to Facebook Messenger Subscribers Using BotCommerce

📚 Learn how to integrate ChatPion with BotCommerce to send WhatsApp messages to your Facebook Messenger subscribers, turning them into WhatsApp subscribers as well.

💡 PRO TIP: Click here to hire an expert to guide you in the step by step. Book a call now to learn all the tips and tricks for training your AI, or let us handle it all for you instead.

Learn how to send WhatsApp Messages to Facebook Messenger subscribers using BotCommerce:

Collect Phone Numbers on Facebook Messenger: #

    • Use ChatPion’s Quick Reply, User Input Flow, or WebView form to collect phone numbers.
    • Ensure your bot is already set up to collect phone numbers via Quick Reply or other methods.

Set Up Webhook Workflow in BotCommerce: #

    • Go to BotCommerce and navigate to “Webhook Workflow”.
    • Click on “Create”, give a name to your workflow, and select the WhatsApp bot account you want to use.
    • Choose a message template or create a new one.

Create a Message Template: #

    • In BotCommerce, go to “Message Template” under the Bot Manager.
    • Click “Create”, name your template, and write the message body.
    • Optionally, add a Quick Reply button and click “Save”.
    • Ensure the template is approved by WhatsApp.

 

Set Up Postback for Quick Reply: #

    • Go to “Postback” in BotCommerce, click “Create”, and add a reply.
    • Name the postback and configure it as needed.

 

Create Workflow in BotCommerce: #

    • Select the message template you just created and click “Create Workflow”.
    • This will generate a webhook callback URL. Copy this URL.

 

Integrate Webhook URL in ChatPion: #

    • In ChatPion, navigate to “API Channels” and then “JSON API Connector”.
    • Click on “New Connection”, name it, select the Facebook page, and paste the webhook URL.
    • Select the fields for the webhook trigger (e.g., Phone Number) and the data to send (e.g., first name, last name, phone number).
    • Save the connection.

Capture Webhook Response in BotCommerce: #

    • In BotCommerce, click “Capture Webhook Response” to wait for a data sample.
    • Provide sample data on the Facebook page where the bot is collecting phone numbers.
    • Return to BotCommerce to see the captured sample data.

Map Webhook Response Data: #

    • Map the captured phone number for sending WhatsApp messages.
    • Use a formatter to remove the plus sign from phone numbers if necessary.
    • Create a formatter for the phone number, selecting “Trim Left” and specifying the plus sign to trim.
    • Combine first and last names into a single string for the WhatsApp username using a CONCAT formatter.

Configure Message Sending: #

    • Select the postback for the message template’s Quick Reply button.
    • Add a delay time if needed (e.g., 120 minutes for 2 hours).
    • Optionally, create rules for sending messages under specific conditions.
    • Click “Save Workflow” to finalize.

Test the Integration: #

    • Provide a phone number on Facebook Messenger to trigger the webhook.
    • Check BotCommerce for the pending status and wait for the message to be sent to WhatsApp.
    • Verify the message delivery on WhatsApp and BotCommerce’s live chat.

By following these steps, you can successfully integrate ChatPion with BotCommerce, enabling you to send WhatsApp messages to your Facebook Messenger subscribers and enhance your multi-platform communication strategy.