Table of contents
Official Content
  • This documentation is valid for:

Once you have created your first Flow in Globant Enterprise AI, following the steps in How to create a Flow, you may be interested in exposing it in various communication and management platforms. 

Here is a step-by-step guide on how to expose a Flow through WhatsApp client.

Step 1: Create an Account and Application on Facebook Business

To get started, go to Facebook Business and register as a Meta developer. From there, you will be able to manage applications and access the WhatsApp Business API.

Once you have your Meta developer account, go to the Facebook Developer Portal and select the option to create an application. Next, follow the steps below:

  1. Click on Create App
    Capturadepantalla2024-11-18103409_2024111813513_1_png
  2. In the pop-up window, click on Select an app type to define the app type.
    Capturadepantalla2024-11-18103523_20241118135139_1_png
  3. Choose Business as the application type, and click on Next to continue.
    Capturadepantalla2024-11-18104116_20241118135216_1_png
  4. In the window that opens, add a name for your application. Then click on Create app.
    Capturadepantalla2024-11-18104201_20241118135248_1_png
  5. Go to the Add products to your app section. Select WhatsApp and click on Set up.
    Capturadepantalla2024-11-18104326_20241118135320_1_png

Step 2: Obtain WhatsApp API Credentials

Next, you will need to configure the WhatsApp Business API

Go to WhatsApp > API Setup and get the following data:

Capturadepantalla2024-11-18104523_20241118135417_1_png

  • Phone number: This number will be associated with the WhatsApp Business account for sending and receiving messages. You will need to verify this number in the WhatsApp Business settings for it to be enabled.
    To associate your phone number, follow the steps in How to connect your phone number to your WhatsApp Business account.
  • Phone number ID: This ID is unique to the phone number you have registered. You can find it in the Send and receive messages section.
  • WhatsApp Business Account ID: This ID is also available in the Send and receive messages section.
  • Access Token: This token authenticates continuous requests, such as sending and receiving messages, ensuring that only authorized applications access the WhatsApp API for each interaction.

Go to App Settings > Basic to get:

  • App Secret: This key authenticates the identity of your application during the initial configuration and adds a layer of security in the generation of access tokens.
    Capturadepantalla2024-11-18105636_png

Step 3: Flow configuration

Go to the Flow you wish to expose. Next, access Side Navigation Menu > Configuration > Integrations > Whatsapp Client and fill in the required data:

  • WhatsApp Endpoint: This field should include the URL of the WhatsApp API endpoint, usually https://graph.facebook.com/vXX.0, where XX represents the API version you are using (e.g. v17.0).
  • WhatsApp App secret = App Secret
  • WhatsApp JWT = Access Token
  • WhatsApp phone number = Phone number
  • WhatsApp phone ID = Phone number ID
  • WhatsApp Business Account ID = WhatsApp Business Account ID
  • WhatsApp verify = Any text

Once you have completed all the fields, click on Confirm

Step 4: WebHook configuration

Go to WhatsApp > Configuration and in the Callback URL field enter the following link: https://botbuilder.fluentlab.ai/fluentlab/whatsapp/<Bot-Id>.

To get the <Bot-Id>, go to the environment where you are building the Flow. In the Side Navigation Menu, click on the Overview option.

In the Verify Token field, enter the same text you set up earlier in WhatsApp Verify.

Capturadepantalla2024-11-18105944_png

After entering the Callback URL and Verify Token, click on the Verify and Save button to complete the verification.

Once you have verified the configuration, in the same section, look for the list of Webhook fields. Here, make sure that the messages field is set to Subscribed. This allows WhatsApp to send notifications about messages to your application.

Capturadepantalla2024-11-18110059_png

Note: Keep in mind that exposing a flow via WhatsApp may involve additional costs. See details in Conversation-Based Pricing.

See Also

WhatsApp Business Platform

Last update: March 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant