Skip to content
FlexiPedia logo

Facebook Reaction Trigger

Harness the power of user engagement with the Facebook Reaction Trigger in Flexito OmniAI. This feature allows you to capture and respond to user reactions on Facebook, enabling personalised interactions and insightful analytics. Follow this guide to set up the trigger, configure

Flexito OmniAI
Beginnerv4
Read in:

Listen to an audio overview

A short, AI-generated podcast-style summary of this article.

Harness the power of user engagement with the Facebook Reaction Trigger in Flexito OmniAI. This feature allows you to capture and respond to user reactions on Facebook, enabling personalised interactions and insightful analytics. Follow this guide to set up the trigger, configure your flows, and make the most of reaction data for your business needs.

This guide will walk you through setting up and using the Facebook Reaction Trigger in Flexito OmniAI. Follow the steps below for a seamless setup:

Step 1: Create a New Trigger

To begin, navigate to the Triggers section within your bot on Flexito OmniAI:

  1. Go to Automations on the left sidebar.

  2. Select Triggers from the options available.

  3. Click the New Trigger button at the top-right corner of the interface.

  4. Choose Facebook Reaction from the list of trigger options.

Step 2: Configure the Facebook Reaction Trigger

In the Trigger Configuration window, follow these steps:

  1. Enter a descriptive name for your trigger (e.g., Facebook Reaction Trigger).

  2. Under Save content to a user field, select or create a new Custom User Field to store the reaction data.

  3. To create a new user field:

  4. Click the + Create New Field button.

  5. Name the field (e.g., Facebook Reaction Payload).

  6. Choose JSON as the field type.

  7. Save the new field.

  8. Optionally, add tags or notes for better organisation.

  9. Ensure the Trigger Activation Toggle is set to Activated (green).

  10. Click Save to complete the configuration.

Once the Facebook Reaction Trigger is configured, you can:

  • Select an existing flow: Connect it to the trigger if you already have a flow for handling Facebook reactions.

  • Create a new flow: Develop one specifically to process the reactions if needed.

Design your flow to capture and process the reaction data stored in the custom user field. This can involve:

  • Identifying the type of reaction.

  • Sending a personalised message to the user.

  • Logging the reaction for analytics or reporting purposes.

Step 4: Understand the Payload Integration in Message Nodes

When crafting your flow, you can use the Custom User Field that contains the reaction payload. The screenshots provided illustrate:

  • Where the Custom User Field (e.g., Facebook Reaction Payload) is located in a Node.

  • How to access and integrate the reaction data in JSON format into your message content.

This enables you to dynamically reference and use the reaction data within your flow.

Step 5: View the Payload in Action

The screenshots also provide an example of how the reaction is triggered during a live chat conversation:

  • You’ll see the reaction stored in the Custom User Field with a clear payload structure, which includes:

  • The message ID of the reacted message.

  • The reaction itself (e.g., 👍 or ❤️).

This example illustrates the data format and how it can be utilised to identify and process the reaction within your flow.

Step 6: Create a Custom Flow for Reactions

With this understanding, you can now build or adjust your flow to:

  • Identify the type of reaction.

  • Trigger specific responses or actions based on the reaction type.

  • Engage users in a manner that aligns with your business objectives.

The Flow Builder in Flexito OmniAI offers the flexibility to design a process tailored to your specific needs.

By following these steps, you can effectively leverage the Facebook Reaction Trigger to capture, understand, and respond to user reactions, creating a personalised and engaging experience.

Additional Guide: Getting Message Content Using the Bot User API Node

Step 1: Add a Bot User API Node to Your Flow

  1. Open the Flow Builder in Flexito OmniAI.

  2. Drag and drop the Action Node into your flow and navigate to Advanced Actions.

  1. In Advanced Actions, select Bot User API.

Step 2: Configure the Bot User API Node

  1. Action Type: Choose Get Chat Messages.

  1. Fill in the required fields:

  • Bot User Ns (Test Only): Enter the test User Ns (e.g., f79795u1718...).

  • Message Id: Enter the test Message Id (e.g., wamid.HBgMTN...). Later, replace this static value with a Custom Field containing the dynamic Message ID.

Step 3: Process the API Response

  1. Test the Request:

  2. Click Test Request to retrieve the JSON response containing the message data. The system will return the message content in JSON format.

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

  1. Save the Result in a Custom Field:

  2. In the Map Response to Custom Field field, select or create a Custom Field to store the result (e.g., Message_content).

  3. Enter the JSON Path and click Add to confirm.

  4. Optionally, define a Fallback Value if the JSON does not return the expected data.

  5. Replace the Message Id with a Dynamic Variable:

  6. After testing and mapping the JSON, replace the static Message Id field with a Custom Field that dynamically stores the Message ID.

  7. Example: {{Message_ID}}.

  8. Save Your Configuration:

  9. Click Save to finalise the setup.

Outcome:

With this setup, the message text will be saved in the specified Custom Field, allowing you to use this data in other nodes or messages within the flow.

If you encounter any issues, please submit a ticket to (mailto:)