LogoLogo
  • 👋START HERE
    • Welcome!
  • â„šī¸General
    • Release Notes
      • Full Feature Base Template
      • Services
      • Rule-based Automation
        • May 2025
        • February 2025
        • January 2025
        • December 2024
        • November 2024
        • October 2024
        • September 2024
        • August 2024
        • July 2024
        • June 2024
        • May 2024
        • April 2024
        • March 2024
        • February 2024
        • January 2024
        • 2023
        • 2022
        • 2021
        • Dialog Design Update
    • Glossary of Terms
    • Authentication Methods
      • SSO (Single Sign-On)
      • Built-In User Management
    • Acceptable Use Policy
  • âš™ī¸Rule-based Automation
    • Overview
      • Account Settings
        • Profile
        • Team
        • Roles and Permissions
          • User Management
          • Project Permissions
      • Basic Concepts
        • Project Management
        • Version Management
        • Multi-Lingual Bots
          • Supported Languages
        • Managing User Interactions
          • Unexpected User Input
          • No User Input
    • Dialog Interface
      • Blocks
        • Conversation Logic
          • Start Conversation
          • Global
          • State
          • Intermediate Response
          • To Previous State
          • End Conversation
        • Subdialog
          • Reusable Subdialogs
        • Phone
          • Continue Listening
          • Call Control
        • Technical Logic
          • Service
          • Condition
          • Storage
        • Other
          • Note
      • Speech Assets
        • Intents
          • Utterances
          • Descriptions
        • Slots
          • Custom Slots
            • List Slots
            • Machine Learning Slots
            • Regex Slots
            • LLM Slots
          • Prebuilt Slots
            • DTMF Slot
        • Text Snippets
        • Dictionary
      • Variables
        • Intents
        • Slots
        • Storage
        • Text Snippets
        • Environments
        • Platform
        • Context
      • Services
        • Service Integration Guide
        • Service Development
        • Service Branches and Error Handling
        • Public Services
          • Date and Birthdate Recognition
          • Spelling Post-Processing for Phone
          • IBAN Validation
          • License Plate Validation
          • Address Search
          • Street Names per Postal Code
          • Email Service
          • SMS Service
          • API Adapter
          • Salesforce-Flow Connector
          • Opening Hours
          • Speech-to-Text Hints
          • Fuzzy Match Names
          • Delay Service
      • Debugger
        • Phone 2
        • WhatsApp
        • Textchat 2
    • Environments Interface
      • Service Keys
    • Deployments Interface
      • Creating a Release
      • Editing a Release
    • Text-to-Speech
      • Azure
      • ElevenLabs
      • OpenAI via Azure (Preview)
      • SSML
        • Audio
        • Break
        • Emphasis
        • Prosody
        • Say-as
        • Substitute
        • Paragraph and Sentence
        • Voice
    • Autocomplete
    • Parloa APIs
      • CallData Service and API
      • Conversation History API
      • Textchat V2 API
    • Phone Integrations
      • Genesys Cloud
        • Setting up the SIP Trunk
        • Sending/Receiving UUI Data
        • Creating a Script to Display UUI
      • SIP
      • Tenios
        • Setting Up an Inbound Connection
        • Setting Up an Outbound Connection
        • Transferring a Call
      • Twilio
      • Public IPs and Port Information
    • AI Integration Overview
      • Dual Intent Recognizer (DIR)
      • Dual Tone Multifrequency (DTMF) Intent
    • Analytics and Debugging
      • Understanding Conversations and Transactions
      • Managing Caller ID Data
      • Hangup Events and Triggered Analytics
      • Analytics Transactions: Data Structure and Insights
      • Dialog Analytics
      • Audit Logs
      • Parloa-hosted Analytics
    • Data Privacy
      • Anonymizing Personally Identifiable Information
    • NLU Training
      • NLU Training Best Practices
    • How To
      • Create a Scalable and Maintainable Bot Architecture
      • Implement OnError Loop Handling
      • Resolve the 'Service Unavailable' Error
    • Reference
      • Parloa Keyboard Shortcuts
      • Frequently Asked Questions (FAQ)
      • JavaScript Cheat Sheet
        • Using Regular Expressions (Regex)
  • 🧠Knowledge Skill
    • Introduction
    • Knowledge Collections
    • Knowledge Sources
    • Knowledge Skill Setup
      • Step 1 – Create a Knowledge Skill Agent
      • Step 2 – Configure a Knowledge Skill Agent
      • Step 3 – Configure a Knowledge Skill Agent
Powered by GitBook
On this page
  • Key Points on Variable Use
  • Cautionary Notes
  • Variables Interface Overview
  • Variable Groups and Prefixes
  • Accessing Variables

Was this helpful?

Export as PDF
  1. Rule-based Automation
  2. Dialog Interface

Variables

Utilizing Variables to Tailor Conversations Across Diverse Environments

PreviousDictionaryNextIntents

Last updated 1 year ago

Was this helpful?

Variables serve as labeled containers that hold data vital to the flow and logic of bot interactions. They dynamically capture and utilize information throughout a conversation, enabling personalized and contextually relevant dialogues.

Key Points on Variable Use

  • Data Sources: Variables can store a wide range of data, including user inputs, platform-specific information, or system-generated values, facilitating a rich and personalized interaction.

  • Types of Variables:

    • Storage Variables: Capture user input-related data, such as a customer's name (customerName).

    • Platform Variables: Hold platform-related data, like the version of the platform in use (PhoneV2).

    • System Variables: Contain system-retrieved data, such as the caller's number (callerNumber).

Cautionary Notes

  • User Data Retention: Variables marked as 'User' may retain data indefinitely. It's vital to consider data retention policies and privacy regulations.

  • Personal Information (PI): Avoid storing personal information in variables to comply with data protection laws and safeguard user privacy.

Variables Interface Overview

The Definitions tab is where users can define and manage storage variables. Storage variables are used to retain and reference user input or system-generated data throughout the lifespan of a dialog session.

Name

The Name field serves as a descriptor of the variable's content. It's important to choose names that are intuitive, in order to quickly understand what data is being stored.

Lifetime

The Lifetime field specifies the duration that the data will be saved within the system. The available options are:

  • Session – Data stored with the 'Session' lifetime remains active only until the current interaction concludes. Once the session ends, the data is deleted.

  • Custom – Here, you can define the duration for which the variable data is stored. The default value is set to indefinite, which means the value will be retained indefinitely. If you do not wish to save this value permanently:

    1. Click on the Custom dropdown menu.

    2. Select either: in hours, in days, or in weeks.

    3. For example, if you select in days, entering the value 30 will command the system to delete the data after 30 days:

Name in API

Reflects how the variable is identified when interfaced through an API call. This may be the same as the variable name but can also differ if an API-specific naming convention is required.

Best Practices

  • Consistent Naming – Ensure variable names are intuitive and reflect their purpose.

  • API Naming – If the variable will be used in API interactions, ensure the 'Name in API' adheres to any external system's naming requirements.

Caution – Variables with 'session' lifetime are volatile and will be cleared after the session ends. Ensure that any data needed beyond the session is appropriately transferred or stored elsewhere.

The Intent Assignments tab enables the definition and assignment of storage variables based on detected user intent, which can inform routing decisions and categorization of user requests.

  • Triggering Intent – Lists the user's need as understood by the bot.

  • Storage Variable – Assigns values based on the triggered intent, guiding the bot's subsequent actions.

For example, linking an Order intent with phrases like 'I'd like to make a purchase' can automate and streamline order processing.

Best Practices

  • Intent-Specific Variables – Assign variables to intents in a way that the names and values are relevant to the intent's purpose.

  • Clear Assignment – Ensure that each intent has a clearly defined storage variable to avoid confusion and potential errors in the dialog flow.

Caution

Incorrect assignment of variables to intents can lead to inappropriate responses or actions from the bot. It's essential to verify that the intent and variable match correctly to ensure accurate data handling and user interaction.

Variable Groups and Prefixes

Variables are organized into groups, each with a specific prefix to indicate its source and type:

Group
Prefix
Key
Type
Description

Intent

intent.

string, object

Provides access to information regarding the received intent.

Slots

slots.

slots.<slotName>

string

Storage

storage.

storage.<variableName>

string

References previously set, dynamic values.

Text Snippet

text.

text.<textsnippetName>

string

References text snippets.

Environment

env.

env.<variableName>

string

References previously defined environment variables.

Platform

platform.

string

Provides access to information regarding the platform the skill is used on.

Context

context.

string, boolean, number, date

Provides access to a list of contextual conversation parameters.

Accessing Variables

For a List of intent keys, see .

Provides access to a of the last received intent.

For a List of platform keys, see .

For a List of context keys, see .

Variables are referenced with double curly brackets using the expression syntax to differentiate and access their values within the conversation flow.

You can access the different types of variables using the autocomplete features. For more information, read our documentation.

âš™ī¸
handlebars
Autocomplete
Intent
slot
Platform
Context
Variables