Set User Cache

Description

The setUserCache() function allows you to persistently store information from a user who is interacting with a bot inside the widget.

Params

This function will receive a mandatory parameter, which must be an object whose keys and values must be both of type "string".

The object passed as a parameter to the setUserCache() function, can have the number of keys considered necessary, as long as these keys and their respective values ​​are of the "string" type.

Example of use

/**
* @param {setUserCache} [params]
* @returns {Promise<void>}
**/

widgetInstance.setUserCache(
    {
        "<someStringKey>": "<someStringValue>",
    }
);

Last updated