Objects

Objects

Objects are “persistent” variables, which means they are saved throughout the whole session between the user and the bot, as opposed to the variables normally used in the Dialog Manager (which lose their “state” or “value” when going from one dialog flow to another).

Furthermore, objects can hold more information than a regular variable, because you can assign multiple values to an object. Let’s clear this up with an example: 

Imagine you that you are building a flow in which you would like to retrieve and store information about a user, such as the user’s name, address and email. Later on in the interaction you’d like to ask the user for permission to store his contact details, and if the user agrees, send the details to your database. 

For this purpose you can create an object named (e.g.) 'Person'. In the 'Person'-object we can add 'Keys' and 'Value pairs'. We can add 'Keys' such as 'Name', 'Address' and 'Email'.

Optionally, each 'Key' can be given a default 'Value'. After saving your object, you can use it in one of your dialog flows, by adding a 'Set Object' block.

Furthermore, in the Dialog Manager you can access or display values from objects by inserting the object name and key, such as:

[ObjectName][Key]

Following this example, in case a persons's address is requested: [Person][Address] will show his or her address.

    • Related Articles

    • About entities

      On this page entities can be created, exported and managed. What is an Entity? An entity is a collection of similar objects. By training entities your bot can detect specific objects a user asks in the conversation. This enables bots to understand ...
    • Global Functions

      Global functions are available across all your bots in your account, but managed from 1 single point. This enables you to create re-usable components that can be re-uses across your bots. See the global functions as templates, that are maintained as ...
    • v2.0.1

      The list below shows the features that were introduced, changed or removed with the release of v2.0.1. In this version, no bugs worth mentioning were resolved, but UX improvements were made. Features:  Ability to integrate chatbots with Twilio for ...
    • v2.0.3

      The list below shows the features that were introduced, changed or removed with the release of v2.0.3. In this version, no bugs worth mentioning were resolved, nor UX improvements were made. Features: Ability to upload utterances in batch for intent ...
    • Dialog Manager - The Basics

      The Dialog Manager is the part of the Blits platform where you shape the conversations of your bot. It is designed to matches business model process (BPMN) and reads like a Visio chart. It gives you an overview of the conversational steps as well as ...