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

Was this helpful?

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

Storage

Optimizing Data Handling with Storage Variables

PreviousSlotsNextText Snippets

Last updated 1 year ago

Was this helpful?

Storage variables are integral to the functionality of conversational AI, serving as repositories for storing and retrieving data throughout interactions. These variables can encapsulate a wide array of information, ranging from slot values obtained from user input to complex data derived through system processing or user utterances. Utilizing JavaScript, storage variables can manage simple text, platform information, or any other form of derived values.

Due to the transient nature of slot or intent variables, which can be readily overwritten during a conversation, it's critical to secure this information by saving it into uniquely named storage variables. For example, if a bot inquires and receives a 'Yes' response within the first State block, the intent.name at that moment is 'Yes'. Yet, a subsequent question may prompt a 'No' response, thereby overwriting the intent.name to 'No'. Without saving these responses in storage, the initial affirmative response would be irretrievably lost.

Best Practice

The most effective method to preserve the integrity of user responses is to save them into clearly named storage variables, such as responseToQuestion1 or responseToQuestion2. By assigning distinctive names, these variables can be referenced independently, eliminating any ambiguity in subsequent processing.

Examples of Storage Variable Use:

  • User Information: Retaining the caller's telephone number.

  • Direct User Input: Storing the exact text of a user's utterance, like 'I want to speak to an agent', or a recognized slot value (e.g., {{slots.HouseNumber=26}}).

  • Processed User Input: Transforming a date like 'May 1st' into a standardized format within a storage variable, such as 'May-01'.

  • Platform Settings: Differentiating between platform variables like 'ChatV2' versus 'Phone2'.

These variables allow the bot to complete tasks more efficiently and guide users through tailored call flows.

Group
Prefix
Key
Type
Description

Storage

storage.

storage.<variableName>

string

References previously set dynamic values.

Adjusting Variable Lifetime

To modify the longevity of a storage variable, navigate to the Variables tab and select the appropriate variable. You will then have the option to set the variable's lifetime to suit the needs of your interaction.

  • If you select the Sessions option, the value of the variable will be maintained throughout the current conversation but will be reset when a new conversation starts.

  • If you select the Custom option, the duration for which the value is stored can be indefinite or set for a duration of X number of hours, days, or weeks.

⚙️