LogoLogo
DialoX Manual
DialoX Manual
  • Start
    • News
    • Getting Started
    • Ordering
    • Signup
    • Switcher
  • STORE
    • Marketplace Apps
      • Level 1 - Basic
        • Callback Note Basic
        • On-call Router Basic
        • Smart Group Voicemail
        • Smart IVR Basic
        • SMS Call Deflector
        • Survey Basic
      • Level 2 - Advanced
        • Call Deflector
        • Callback Note
        • Order Assistant
        • Smart IVR
        • Survey
        • Website Chat
      • Level 3 - Professional
        • Callback Planner
        • Appointment Planner
    • Legacy Apps
      • Survey Extension
      • Smart IVR Basic
      • Smart IVR 2.0
      • Whatsapp Calldeflector 1.0
      • Whatsapp Calldeflector 2.0
      • Social Inbox 1.0
      • Social Inbox 2.0
      • Basic Group Voicemail
      • Group Voicemail
      • Oncall Assistant
      • Web App
      • Basic Callback Note
      • Callback Note
      • Callback Planner
      • Caller Based Router
    • Skills
      • Base flows
      • Platform defaults
      • Phone flows
      • Chat flows
      • Web flows
      • LLM Flows
      • LLM Knowledge base
      • Address Flows
      • Email flows
      • Timeplans
        • How to add a flow for lunch breaks
      • On-call schedule
      • Planner
      • OAuth Flows
      • Integrations
        • Zendesk
        • Jira
        • Hubspot
  • SETTINGS
    • User Settings
      • Availability settings
      • Profile settings
      • Security
    • App Settings
      • App identity
      • Opening hours
      • Tags
      • Studio
      • Extra options
      • Backups
  • Inbox
    • Inbox
      • Assigning
      • Joining and leaving
      • Sending messages
      • Canned responses
      • Team chat
      • Watching
      • Close
      • Filter conversations
      • Multiple inboxes
    • Contacts
    • Notes
    • Today
    • Notifications
      • Notification panel
      • Notification preferences
      • Rules for notification
      • Chrome and Windows settings
      • Microsoft Teams notifications
  • Studio
    • Home
      • Customer settings
        • Settings
        • Advanced settings
        • Store settings
      • Audit Log
      • Access Request
    • Dashboard
    • Flows
      • Playbook
      • Triggers
      • Variables
      • Conditions
      • Tags
      • Languages
      • Links
      • Nodes
        • Say
        • Ask: Open
        • Ask: Choice
        • Ask: Single
        • Ask: Date
        • Ask: Name
        • Ask: Phone
        • Ask: Email
        • Ask: Form
        • Ask: Language
        • Ask: Selection
        • Ask: Time
        • Ask: Audio
        • Ask: Number
        • Ask: Custom entity
        • Ask: Address
        • Ask: Zipcode
        • Iterate
        • Iterate: LLM
        • Say: LLM
        • Say: LLM Knowledgebase
        • Iterate: LLM Knowledgebase
        • Iterate: continue
        • Show: audio
        • Show: whatsapp link
        • Show: image
        • Show: video
        • Show: file
        • Show: location
        • Control flow: branch
        • Control flow: go to flow
        • Control flow: switch language
        • Control flow: close
        • Control flow: restart
        • Control flow: pause
        • Control flow: invoke dialog
        • Dial: number
        • Dial: smart
        • Send: note
        • Send: email
        • Send: SMS
        • Send: whatsapp
        • Escalate: default
        • Escalate: smart
        • Perform: create jira ticket
        • Perform: get jira ticket
        • Plan
    • AI
      • Intents
        • LLM Intents
        • Q&A Intents
      • Knowledge bases
      • Prompts
    • Channels
      • Chatwidget
      • Whatsapp
        • How to integrate Whatsapp
        • How to change my Whatsapp profile
        • How to manage Whatsapp templates
        • How to send Whatsapp template with documents
        • How to automate outbound Whatsapp
        • How to send Whatsapp template
        • How to use Commerce Catalog
        • Whatsapp for Business
      • MS Teams
        • How to migrate new Version
        • How to change channel connection
      • Facebook Messenger
      • Phone
      • Progressive Web App (PWA)
    • Content
      • Nudges
      • Whatsapp optout
      • Voice lexicon
      • FAQs
      • Calendars
    • Visitors
    • Calendars
    • Campaigns
    • Conversations
    • Notes
    • Contacts
  • ADMINISTRATION
    • Organisation
    • Bots
    • Licenses
    • Channels
    • Orders
    • Usage
    • Users
    • Access Requests
    • Analytics
  • DESKTOP
    • Enreach Contact Desktop
  • FAQ
    • Studio
      • How to Publish
      • How to make 2FA Required
      • How to add additional columns to contactlist
      • Conversation retention time
      • How to help the bot pronounce phone numbers correctly
      • How to help the bot pronounce loose numbers correctly
    • Flow Topics
      • Skipping step based on language tag
      • Switching language using intent trigger
    • Meta
      • How to get Meta Business Suite Verification
      • How to connect Facebook page to Facebook Business Account
    • 360Dialog
      • How to give permission API access
      • How do I change my profile in 360Dialog
      • How to make 360dialog templates
      • How do I terminate my number in 360Dialog
    • Bubblescript
      • How to add a custom button
      • How to change the email template
    • Operator
      • Where are my CDRs?
      • Onboarding required
    • Google Tag Manager
    • Platform
      • Network Security Policies
    • Make
Powered by GitBook
On this page
  • What are variables
  • Variables tab
  • Platform and built-in variables
  • Using variables in your flows
  • Method 1 - Copy the variable to your clipboard
  • Method 2 - Select the variable with short key /
  • Creating custom variables
  • Method 1 - Create a new variable in the Variables tab
  • Method 2 - Create a variable while assigning
  • Native string interpolation
  • Embedding user variables

Was this helpful?

Export as PDF
  1. Studio
  2. Flows

Variables

PreviousTriggersNextConditions

Last updated 1 day ago

Was this helpful?

What are variables

Variables are placeholders for information that is part of your bot, user or conversation. Variables are defined by the platform, the skills that are installed in your bot, or by you as a flow builder. Variables hold information that can be used inside your conversations. Like Bot is the variable that holds the title of your bot and Purpose holds the description. Both fields are maintained on the within your bot's settings.

Variables tab

The Variables tab shows the variables that can be used inside your flows. The platform variables and the built-in variables of your installed skills are displayed at the bottom. The variables that you defined yourself, called Custom variables, are displayed at the top.

Platform and built-in variables

Depending on the skills installed in your bot, the list of built-in variables might differ. The following table describes the most commonly used ones:

Label
Bubblescript
Description

Bot

bot.title

Bot language

bot.locale

Email

user.email

The email address of the user

First name

user.first_name

The first name of the user

Last name

user.last_name

The last name of the user

Language

user.locale

The language of the user, on the phone and whatsapp channels this is derived by the country code in the phone number. On web channels it is derived from the web browser.

Last seen

user.last_seen

The datetime when the user had the last conversation with this Smart App

Last message

last_message

Last message of the user

Phone

user.phone

The phone number of the user in ISO 164 format, like +3112345678

Purpose

bot.purpose

Conversation language

conversation.locale

The language in which the current conversation is held. When this Smart App supports the language of the user, it will initially be the same value as the Language variable.

Using variables in your flows

There are two ways of using the variables inside your flows.

Method 1 - Copy the variable to your clipboard

Click on one of the variables in the Variables tab to copy it to your clipboard. You can then paste the variable inside any of the compatible text fields of your flow to use the selected variable.

Method 2 - Select the variable with short key /

Type a / in the text field you want to use a variable and select the variable from the drop down.

Creating custom variables

Custom variables can be created implicitly while assigning them to a flow node or explicitly by adding a new variable in the Variables tab.

Method 1 - Create a new variable in the Variables tab

New variables can be created using the Add button in the Variables tab.

The Add button will popup a small form to define the variable details. The following details can be defined.

Property
Description
Explanation

Label

Display name of the variable

Name

Technical name of the variable

This is the identifier of the variable used in the underlying bubblescript.

Type

Data type

To help the system understand what type of data can be stored in this variable. Choices are string, boolean, number, datetime, date.

Description

To explain the purpose of the variable

Method 2 - Create a variable while assigning

As a flow designer you can also store information in variables yourself as a result of an Ask node. For instance, the Ask Open allows you to ask an open question to a user. The answer is then stored in a variable you define in the Assign to field. Then in a later Flow node you can use this custom variable using the methods described above.

When the variable is created while assigning in a Flow node as displayed above, the variable will not have any of the other variable properties field, like label, description and type. To add this later you can go to the Variables tab and click on the Edit button.

Native string interpolation

Older skills are configured using native string interpolation using the elixir syntax. This still works for backwards compatibility reasons. Please migrate your flows to the new method whenever possible.

Data captured in variables can also be used in your flows using the native elixir string interpolation syntax:

#{variable}

In the following example the name field is captured using the Ask Name node and then the next step is a node type say which embeds the name in the text: "Nice to meet you #{name}".

Embedding user variables

Fields that are stored in the user object can be embedded by using the user object reference syntax. For instance embedding the name of the user in a text:

#{user.first_name}

Name of the bot as given in the .

The main language of the bot as configured in the .

The description of the bot as given in the .

bot identity settings page
bot identity settings page
bot identy settings
page
Identity
Variables in Flows
Using variables by clipboard
Using variables by short key /
Click Add
Fill in the form
Defining by assigning a variable
Edit the Variable details