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.
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:
- Click on Create App

- In the pop-up window, click on Select an app type to define the app type.

- Choose Business as the application type, and click on Next to continue.

- In the window that opens, add a name for your application. Then click on Create app.

- Go to the Add products to your app section. Select WhatsApp and click on Set up.

Next, you will need to configure the WhatsApp Business API.
Go to WhatsApp > API Setup and get the following data:

- 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.

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.
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.

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.

WhatsApp Business Platform