Description
Manage the storage of data associated with a user within your bot.The user cache stores unique information about each person who interacts with your conversational experience and can be used within your skills to:
- Associate operational data, such as an order number, to a
user. - Allow the bot to know user properties before the conversation begins.
- Store information needed to query internal or external services from specific skills.
- Defining reactions or executing a skill before the user initiates the conversation (coming soon).
Get User Cache
Endpoint
Path Parameters
User’s phone number (without the
+ sign).Response Example
The response may include any data previously stored in the user’s cache.Set user cache
Endpoint
Path Parameters
User’s phone number (without the
+ sign).Request Body
Object with the data that will be merged with the user’s current cache.
Identifier of the bot associated with the user.
Request Example
Response Example
Common Errors
400- Could not get or update the user’s status.401- Invalid or missing credentials.404- User or bot not found.200- Logic error when obtaining the cache (when status is “failed”).