WhatsApp Reaction Trigger
Harness the power of WhatsApp reactions to enhance user engagement and streamline communication with Flexito OmniAI. By setting up the WhatsApp Reaction Trigger, you can capture user feedback in real-time, tailor responses, and gain valuable insights into user interactions. This
Listen to an audio overview
A short, AI-generated podcast-style summary of this article.
Harness the power of WhatsApp reactions to enhance user engagement and streamline communication with Flexito OmniAI. By setting up the WhatsApp Reaction Trigger, you can capture user feedback in real-time, tailor responses, and gain valuable insights into user interactions.
This guide will walk you through setting up and using the WhatsApp Reaction Trigger in Flexito OmniAI. Follow the detailed steps outlined below to get started:
Step 1: Create a New Trigger
To create a new trigger in your bot, head to the Triggers section in Flexito OmniAI:
Navigate to Automations on the left sidebar.
Choose Triggers from the menu.
Press the New Trigger button at the top-right corner.
Select WhatsApp Reaction from the list of trigger options.
Step 2: Configure the WhatsApp Reaction Trigger
In the Trigger Configuration window:
Provide a descriptive name for your trigger, such as WhatsApp Reaction Trigger.
Choose or create a Custom User Field to save the reaction data.
To create a new user field:
Click the + Create New Field button.
Name the field (e.g., WhatsApp Reaction Payload).
Set the field type to JSON.
Save the new field.
Optionally, add tags or notes for better organization.
Ensure the Trigger Activation Toggle is set to Activated (green).
Click Save to complete the configuration.
Step 3: Link or Create a Flow to Handle Reactions
Once the WhatsApp Reaction Trigger is configured, you can:
Connect to an existing flow: If you have a flow ready to handle WhatsApp reactions, link it to the trigger.
Create a new flow: If no flow exists, design one to process reactions.
The flow can capture and process reaction data stored in the custom user field, including:
Identifying the reaction type.
Sending a personalised response to the user.
Logging reactions for analytics or reports.
Step 4: Understand the Payload Integration in Message Nodes
When building your flow, use the Custom User Field that holds the reaction payload. The screenshots provided illustrate:
Where to find the Custom User Field (e.g., WhatsApp Reaction Payload) in a Node.
How to access and integrate reaction data in JSON format into your message content.
This enables you to dynamically reference and use reaction data within the flow.
Step 5: View the Payload in Action
The screenshots also demonstrate a live chat conversation where the reaction is triggered:
The reaction is stored in the Custom User Field, showcasing a clear payload structure, including:
The message ID of the reacted message.
The reaction itself (e.g., 👍 or ❤️).
This example clarifies the data format and how to identify and process reactions in your flow.
Step 6: Create a Custom Flow for Reactions
With this knowledge, you can now develop or adjust your flow to:
Recognise the reaction type.
Trigger specific responses or actions based on the reaction.
Engage users in a way that suits your business objectives.
Flexito OmniAI's Flow Builder offers the flexibility to design a process that meets your needs.
By following these steps, you can effectively use the WhatsApp Reaction Trigger to capture, understand, and respond to user reactions, providing a personalised and engaging experience.
Outcome:
With this setup, the message text will be saved in the specified Custom Field, enabling you to use this data in other nodes or messages within the flow.
If you experience any issues, please submit a ticket to (mailto:).
Additional Guide: Getting Message Content Using the Bot User API Node
Step 1: Add a Bot User API Node to Your Flow
Open the Flow Builder in Flexito OmniAI.
Drag and drop the Action Node into your flow and proceed to Advanced Actions.
In Advanced Actions, select Bot User API.
Step 2: Configure the Bot User API Node
Action Type: Choose Get Chat Messages.
Complete the required fields:
Bot User Ns (Test Only): Input the test User Ns (e.g., f79795u1718...).
Message Id: Enter the test Message Id (e.g., wamid.HBgMTN...). You can later replace this static value with a Custom Field containing the dynamic Message ID.
Step 3: Process the API Response
Test the Request:
Click Test Request to obtain the JSON response with the message data. The system will return the message content in JSON format.
Mapping the Data:
In the Sample Data section, find the desired value from the JSON response. For example:
Use the JSON Path to access the specific field and save the message text in a custom field.
Save the Result in a Custom Field:
In the Map Response to Custom Field field, choose or create a Custom Field to store the result (e.g., Message_content).
Enter the JSON Path and click Add to confirm.
Optionally, set a Fallback Value if the JSON does not return the expected data.
Replace the Message Id with a Dynamic Variable:
After testing and mapping the JSON successfully, replace the static Message Id field with a Custom Field that dynamically stores the Message ID.
Example: {{Message_ID}}.
Save Your Configuration:
Click Save to complete the setup.

