ReplyCX Documentation
Login
  • ⛩️Welcome to ReplyCX Knowledge Base! 📚
    • ReplyCX Basics
  • ▶️GETTING STARTED
    • Building a Chatbot
    • Testing a Chatbot
    • Channel Configurations
    • Deploying a Chatbot
    • Utility Tools
  • 🧩ACTION BLOCKS
    • Overview
    • Trigger
    • Send Message
    • Collect Input
    • Buttons
    • Carousel
    • Calendar
    • Send an Email
    • Condition
    • Image Carousel
    • Human Handover
    • Slider
    • Collect File
    • Delay
    • Form
    • Flow
    • Code-block
    • Options
    • Jump
    • List
    • Reply Button
    • AI Model
    • SET AI
    • Answer AI
    • AI AGENT
    • Webhook
    • Javascript
    • Send Status
    • Http Request
    • Dynamic data
    • Whatsapp flow
  • 🦾AI Studio
    • Building a GPT Chatbot
    • Knowledge Base
    • Training on historical live chat to generate response
    • Retrain frequency for URL data source
    • Custom Answers
    • Function Call
    • Prompts
    • Tokens
    • Setting up retrain
    • Advanced Crawling Criteria
  • ⛓️Integrations
    • Types of Integrations
    • Service Call
    • Google Sheets
      • Support for “Update Record” in Google Sheets
    • Codeblock
    • Google Calendar
    • Calendly
    • Zoho CRM
    • Hubspot
    • Dialog Flow
    • Events
    • Google Analytics
    • Freshdesk
    • Salesforce
    • Zapier
    • Airtable
    • Public API's
  • 🟢WhatsApp Business API
    • Prerequisites
    • WhatsApp Business API - Meta
    • Using a test WhatsApp Business API account
    • Product catalog on WhatsApp
    • Sync WhatsApp Template
    • Support for Carousel template message
  • Instagram
    • Using the Instagram Channel
  • 💬Live Chat
    • Overview
    • Saved Replies
    • Manage Saved Replies
    • Message status on live chat
    • Generating Response Using AI.
    • Rewriting existing response with AI
    • Labels
    • Managing Labels
    • Qualification details covered during a conversation
    • Settings
    • Filter conversations
    • Conversation History
    • Close a conversation
    • Related / Past Conversations
    • Elements on conversation card
    • Kind of Conversation Status
    • Copy Chat Transcript of a Conversation
    • Customize Live Chat Screen
    • Restart Conversation
    • Blocking Contacts
    • Agent status on live chat
    • Edit Variables in Closed Chat
  • ⚙️Troubleshooting
    • Variable Manager
    • Fallback Variables
    • Human Handover Configuration
    • Clone a bot
    • Preffered Image Dimensions
    • Working of Link Tracking
    • Setting up variables using trigger block
    • Availability of agents in Human Handover
    • Creating loop in the conversational flow
    • Requesting Edit Access
    • Cookies
    • Creating Custom Role
  • 📢Outbound Bots
    • Outbound Action Blocks
      • Delay
      • Send WhatsApp
      • Send SMS
      • Send Email
    • Building a One-Off Campaign
    • Building a Ongoing Campaign
    • Creating WhatsApp Templates
  • 📱Chat Widget Customization
    • Embedding Chat Widgets
    • Customize Chat Widget UI using CSS
    • Display Chat Widget in iFrame
    • Change Appearance
    • Chat widget 3.0
  • 🏦Account Management
    • Manage Teams
    • Manage Teammates
    • Manage Roles
      • Channel configuration Permission
    • Opt Out Management
  • 📊Reporting
    • Custom Reports
    • Contacts Feature Recap
    • Scheduling Contact Report
    • Weekly Reports and Interactions
    • Export a contact list
    • Tracking link clicks on chatbot messages
    • Agent Report
    • AI Agent Report
    • Outbound Report
  • 🧑‍💻 Support
    • Forget Password
Powered by GitBook
On this page
  • Via Query Params
  • Injecting JSON in the code snippet

Was this helpful?

  1. Troubleshooting

Setting up variables using trigger block

With ReplyCX, you can revolutionize online chat by personalizing the interaction and capturing essential data before the conversation even begins! Using our Trigger action block feature, custom variables from an external source are injected right away.

The values can be anything like sending and storing the details like name of the visitor, utm parameters of where the visitor is coming from can be captured and mapped with the variables.

The values are stored in these defined variables, and can later be used at any given point of time in the flow of the chat.

There are two methods in ReplyCX that a user can follow to parse information into variables:

  1. Via Query Params

  2. Injecting JSON in the code snippet

Via Query Params

Using this method, the user will be able to send Query Params on the domain in which the bot is hosted & the user will be able to map those params in the ‘Trigger’ action block with a variable name.

Let’s say I want to store the value of utm_source and utm_medium, I can simply map these names in the trigger action block and use the data wherever I want. Say, sending this data along with the contact details while creating a lead in your CRM.

The method will only be checked in the web channel

Users can click on “Add Another” to define more variables, however the maximum number of variables that ReplyCX allows users to map with the external data is 15

Injecting JSON in the code snippet

Using this method, the user will be able to inject a JSON payload inside ReplyCX’s code snippet. And using the trigger action block the user will be able to map the object path with a variable.

Here you see that in addition to the code snippet that you would have copied from the “Channel Configuration” page, we have the data-session-payload section. Adding this section with a JSON payload allows ReplyCX to read these values and store them in variables, which can be used inside the conversation flow.

In the above example, we have passed the values of “name” and “phone”, so now to store these values, we will map these fields on the Trigger action block.

It is essential to dynamically add this data-session payload on ReplyCX’s code snippet before the code snippet is fired, because ReplyCX only reads this data once.

To read data again, visitors would have to refresh the page and start conversation again.

PreviousWorking of Link TrackingNextAvailability of agents in Human Handover

Last updated 1 year ago

Was this helpful?

⚙️