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

Step 1: Create an application key

  1. Access the Flow you wish to expose. In the Side Navigation Menu, select Configuration and then Application Keys.
  2. Click on the Generate Key button.
  3. In the Type field, select API and in Key Name, enter a name such as "B2ChatIntegration". Next, confirm the operation by clicking on Save.
  4. Copy the generated key using the copy icon next to the key.

For more details, see Step 2: Create an application key in the complete guide How to connect a Flow to B2Chat.

Step 2: Get the Bot id

Go to the Side Navigation Menu, and click on the Overview option in the Overview section.

There you will see a summary of the Flow including the Bot id, along with other details such as the Flow's name and purpose.

The Bot id is the alphanumeric identifier that appears below the name of your Flow.

Capturadepantalla2024-09-24114736_png

Copy the Bot id.

Step 3: Build B2Chat webhook

B2Chat uses this URL to answer messages and reach the bot. The URL format is:

https://botbuilder.fluentlab.ai/fluentlab/whatsappb2c/<bot-id>?apikey=<api-key>

  • <bot-id>: This is the identifier you obtained in Step 2: Get the Bot id
  • <api>: This is the application key you generated in Step 1: Create an application key.

Step 4: Request B2Chat Credentials

To connect your Flow to WhatsApp via B2Chat, you must contact Globant Enterprise AI support and provide the B2Chat webhook built in Step 3: Build B2Chat webhook. With this information, they will provide you with the necessary credentials for the integration, which include:

  • B2Chat Client ID: Unique client identifier to authenticate the connection.
  • B2Chat Signing Secret: Signing Secret to verify the integrity of incoming and outgoing messages.
  • B2Chat Endpoint: URL of the B2Chat endpoint for API requests.
  • B2Chat Security Endpoint: URL of the B2Chat security endpoint, which is used for additional authentication and security verification.

Step 5: Configure the Integration in Globant Enterprise AI

Go to the Flow you want to expose. Then go to Side Navigation Menu > Configuration > Integrations > WhatsApp Client via B2Chat and fill in the fields with the provided data:

  • B2Chat Client ID
  • B2Chat Signing Secret
  • B2Chat Endpoint
  • B2Chat Security Endpoint

To enable push notifications, select the Push notification allowed checkbox. 

Lastly, click on Confirm.

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

 

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