Global Variables

Updated 

Overview

Global variables in a Conversational AI application are essential components used to store information that can be accessed and utilized across any dialogue tree within the application.

These variables hold data obtained from users during conversations or fetched from external sources. By using global variables, the bot can provide tailored responses, improving the user experience by making interactions feel more natural and relevant.

Additionally, variables can be used to trigger specific actions within the dialogue flow. For example, variables can be matched with other variables, custom fields, or parameters to direct the conversation to different branches in a Dialogue Tree.

Enablement Note

To learn more about getting this capability enabled in your environment, please raise a support ticket at

tickets@sprinklr.com.

To Create a Global Variable

  1. Within your Conversational AI Application, select Manage Variables within Build.

  2. Click Add Variable in the top right corner of the Variables window.

  3. Add the Variable Name and click Save.

  4. You can now use these variables while creating dialogue trees. They will be visible within the Select Resource section after being added in the Manage Variables section.

    Once any operation is performed on these variables, they will only retain their value if the conversation is routed from the Dialogue Tree.

What's next?

To learn more about configuring Dialogue Trees, visit Sprinklr's help article on nodes in a dialogue tree.