Trigger Nodes
WhatsApp Bot

WhatsApp Bot

The WhatsApp Bot trigger enables seamless integration and creation of interactive chatbots on WhatsApp by leveraging Meta's WhatsApp Business API. It verifies and parses messaging payloads from the WhatsApp Webhook, empowering developers to build context-aware, multimedia-rich conversational experiences efficiently.

Whatsapp Bot

Prerequisites

Before you can create a chatbot on WhatsApp, you need to have the following:

  1. A verified business on Facebook.
  2. A registered WhatsApp business phone number.
  3. Access to the official WhatsApp Business API.

Setting up a Meta Developer Account

Create a new app

After creating your Meta Developer Account, select "My App >> Create an app".

Create a new app

Select Other in "What do you want your app to do" section.

"Select Other" on What do you want your app to do section.

Select Other in "What do you want your app to do"

Select Business

"Select Business" - the type of app you want to create and use for your business.

Select Business

Create App details

Give your app a name, enter a contact email, and connect it with your business account.

Create App details
  • Add WhatsApp to your app: In your app, add WhatsApp. Meta will provide you with a test phone number and a temporary token that needs to be refreshed every 24 hours. If you have an existing business account, you can add that instead.

    Add WhatsApp to your app
  • Set up the webhook in BuildShip: In BuildShip, clone the WhatsApp webhook verification template and ship you workflow.

    Copy the "shipped" URL and add it to the Callback URL on Meta Developer Account in your dahsboard under WhatsApp --> Configuration. Enter the verify token you saved earlier, then click "Verify" and "Save".

    Set up the webhook in BuildShip
  • Configure the webhook: To connect the WhatsApp API to BuildShip, you need to configure a webhook. In your Meta Developer Account, go to "WhatsApp" >> "Configuration" >> "Edit Webhook". Enter the callback URL (see step 5 for setting up BuildShip) and a verify token (any text or number that you'll save for later).

    Configure the webhook
  • Subscribe to messaging on webhooks: To receive all events from WhatsApp in BuildShip, you need to subscribe to messaging on webhooks. Click "Manage" (Webhook fields) and subscribe to messages.

    Subscribe to messaging on webhooks
  • Update BuildShip's flow: Update BuildShip's flow to send an API response for all the events received from WhatsApp.

  • Test setup with test message: Go to "WhatsApp" >> "API Setup". Add your number and test if you're receiving a message from WhatsApp. You'll recieve a test of successful connection from WhatsApp

    Send test message

Get App ID and App Secret

On the Meta dahsboard, go to your app and click App settings where you'll find your App ID and App Secret.

Get App ID and App Secret

Note: Your app must be verified by Meta before obtaining App ID and App secret.

Setting up a Permanent Token

To set up a permanent token, you need a Meta Business Account. Full documentation link (opens in a new tab).

  1. Create a system user: Log in to your Meta Business Account (https://developers.facebook.com (opens in a new tab)) >> "Settings" >> "Business Assets". If you've already set up your Meta Developer Account, you'll see your app and WhatsApp Test Account. Go to "Settings" >> "Business Settings" >> "System users" >> "Add". Enter a system username and system user role.

  2. Associate the system user with your app: Go to "Add Assets" >> "App". Select your app and give the system user partial or full access. Click "Save changes".

  3. Generate a new token: Click "Generate new token" >> Select your app from the dropdown menu. Make sure "whatsapp_business_messaging" and "whatsapp_business_management" are turned on. Click "Generate token".

  4. Save the token: Save the Access Token as it's not saved in Facebook. This is a permanent token that can be used for your Meta Developer app.

By following these steps, you'll be able to set up a WhatsApp bot using the Meta Developer Account and the WhatsApp Business API, connected to the BuildShip platform.

Trigger Inputs

  • Path: This field specifies the endpoint path for receiving webhook requests from the WhatsApp API. The default value is /handle-webhook. This path needs to be the same as the path specified in the WhatsApp Verification (opens in a new tab) workflow on the Meta Developer Platform.

  • Method: This field indicates the HTTP method to be used for the webhook requests. It is set to POST, which is the required method for receiving webhook data from the WhatsApp Cloud API.

  • App ID: (mentioned in prerequisites) This field requires entering the App ID provided by the WhatsApp Business Manager Cloud API (opens in a new tab). It is a unique identifier for your application, displayed on top of your Meta App Dashboard.

  • App Secret: (mentioned in prerequisites) This field requires entering the App Secret provided by the WhatsApp Business Manager Cloud API (opens in a new tab). It is a secret key used for authentication and securing communication with the WhatsApp Cloud API.

Use the WhatsApp Bot - Auto Reply template

  1. Clone the WhatsApp Bot - Verification template from BuildShip App. Add your verification token and ship your workflow. Add the shipped URL and verify the webhook in the Meta Dashboard (follow prerequisites).

  2. Clone the WhatsApp Bot - Auto Reply template, Thi workflow verifies the incoming messages webhook payload from the WhatsApp Webhook by Meta with the power of Claude AI to automatically generate and send responses to the incoming messages.

WhatsApp Bot - Auto Reply
💡

To Get Started and built your first WhatsApp Bot, Clone the WhatsApp Bot - Verification template first and follow the instruction from the prerequisites then clone the WhatsApp Bot - Auto Reply templates from BuildShip App add secrets and required fields and ship your workflow.

Need Help?

  • 💬
    Join BuildShip Community

    An active and large community of no-code / low-code builders. Ask questions, share feedback, showcase your project and connect with other BuildShip enthusiasts.

  • 🙋
    Hire a BuildShip Expert

    Need personalized help to build your product fast? Browse and hire from a range of independent freelancers, agencies and builders - all well versed with BuildShip.

  • 🛟
    Send a Support Request

    Got a specific question on your workflows / project or want to report a bug? Send a us a request using the "Support" button directly from your BuildShip Dashboard.

  • ⭐️
    Feature Request

    Something missing in BuildShip for you? Share on the #FeatureRequest channel on Discord. Also browse and cast your votes on other feature requests.