Conversational AI
  • Introduction
  • Getting started
    • Getting started
    • Adding content to your bot
    • Capture information with entities
    • Capture information with input validation
    • Reusing intents with context
    • Flow navigation with variables
    • Adding new users to your account
  • Understanding users
    • Natural Language Processing (NLP)
      • NLP threshold
      • NLP Import & Export
      • Train your bot with actual user messages
      • NLP Dashboard & NLP Improve
      • Synonym entities
      • System entities
      • Supported languages
      • Intent templates
    • Expression generator
    • Context
    • Multi-language bots
  • Bot answers
    • Bot dialogs
      • Message components
      • Go To
      • Input Validation
      • Action
      • Translations
    • Conversations
    • Analytics
      • User flow
    • Publishing your bot
    • Events
    • Reuse flows
    • Settings
      • Variables
  • Integrations
    • API integration
      • Advanced API integrations
    • Chat message structure for API's
    • Retrieving data from Airtable (GET)
    • Sending data to Airtable (POST)
    • Human handover & live chat
      • #Interact
      • RingCentral Engage Digital
      • Genesys Cloud
      • Help Scout
      • Zendesk Chat
      • Intercom
      • Sparkcentral (beta)
      • Offloading Webhook
  • Channels
    • Channels
    • Facebook Messenger
      • Facebook Admin Removal
      • Facebook Webview Whitelisting
    • WhatsApp Business API
    • Google Assistant
    • Webhook Channel API
    • Chat widget
    • Phone & voice
    • Workplace from Facebook
    • Sinch Conversation API (beta)
  • Tips & Best practices
    • How to NLP
    • Creating diverse expressions
    • Why is my bot not responding the way I want it to?
    • What makes a good chatbot?
    • How to recognize a returning bot user
    • Gathering user feedback
    • Using time in your chatbot
Powered by GitBook
On this page
  • Sensitive variables - GDPR
  • Incrementing variable counter

Was this helpful?

  1. Bot answers
  2. Settings

Variables

PreviousSettingsNextAPI integration

Last updated 4 years ago

Was this helpful?

Variables are used in Chatlayer.ai to store any information the bot knows about a customer. This can be the language or channel they're using, but also information coming from external data sources through for example an API. All variables are stored on what is called the session of a user.

Sensitive variables - GDPR

In Chatlayer.ai you can make sure that variables are not stored. This is typically useful when the conversation between a bot and user contains sensitive information, such as a bank account number. Sensitive data often should not or can not be stored with an external provider like Chatlayer.ai, in order to comply with GDPR or other data & security policies.

To make sure variables are not stored in the database you can click on Variables in the Settings tab. Here you can add a variable to the list of variables by clicking on + Variable.

If you put the Sensitive toggle to true, the content of your variable will never be stored in the database. Instead only a placeholder with the variable name is stored.

Incrementing variable counter

If you want to incrementally increase the value of a variable, you can use the following steps:

  • Define a variable, for example variableName, and give it a numeric value such as 0

  • At the point in the flow where you want to increment the value of variableName, enter variableName as the variable and {variableName|increment} as the value.

This method will increase the value of counter by 1 each time for example a specific bot dialog is passed or button is clicked.