Applies to
Data Storage Utility Function
With the Data Storage utility, you can store and retrieve data against a user (i.e. someone interacting with Bridge via chat), a workflow run, or globally as required.
If you are looking to store simple Key Value pairs, then you would be better to use the Key Management functions. Data Storage is mainly for storing JSON Objects.
This enables use cases such as remembering users preferences or details, or tracking details across multiple users as required to make your chat bots more personal.
Store Data
You need to specify three values when storing:
- Where to store the data against, valid options are 'user', 'request', or 'global'.
- What key to store the data under.
- A reference to the data to be stored.
Retrieve Data
You need to specify two values when retrieving:
- Where the data is stored, valid options are 'user', 'request', or 'global'.
- What key the data is stored under.
Check Data
Check if data exists, can redirect different ways through a junction if it does or doesn't exist.
You need to specify two values when checking:
- Where the data is stored, valid options are 'user', 'request', or 'global'.
- What key the data is stored under.
Delete Data
Delete data previously stored.
You need to specify two values when deleting:
- Where the data is stored, valid options are 'user', 'request', or 'global'.
- What key the data is stored under.