Data Store Introduction

This tutorial will show you how to use Data Store to create new Tables and corresponding Keys and Values.

Assumptions



At the very basic level, Data Store is just key/value storage which you can use to store frequently used terms or pre-defined messages in your conversation flow.

  • Note: When a new project is created, Data Store automatically generated and filled initially with config table with no key/value. Like below:

Data Store sections

  • Tables
  • Key/values

Tables

Table is just a namespace for your different key/values. You can differentiate multiple key/values based upon their table names.

From above, config, message, foodMenu, foodMenuPrices are the diffrenent Tables, which itself contains many key/values.

Create a new Table

  • Click on icon

  • Add unique table name and click on Add button

    When adding name, Table name should:
    • Be of unique name.
    • Only contain alphabets, numerics or underscores.
    • Not contain any white spaces or special characters, except underscores.
    • Only starts with an underscore or a alphabetic character.


    New Table with appear in Data Store screen, again you can Edit or Delete any table.

    config is the default Table which you can not neither edit nor delete


Key/Values

Keys are the one which holds the corresponding your defined values.

From above, config Table has SkillName, RestaurantName and RestaurantAddress as key, which holds the corresponding values.

Create a Key/Value

  • Click on Add a Key value, button

    A new Key/Value row will be added for the selected Table, here message Table. (as shown below)

  • Click on Key to edit

    When adding name, Key name should:
    • Be of unique name.
    • Only contain alphabets, numerics or underscores.
    • Not contain any white spaces or special characters, except underscores.
    • Only starts with an underscore or a alphabetic character.

  • Click on Save, to save Data Store