In the Dialog service, a variable is part of the profile that you create to store information that users provide during sessions.
The following code shows an example profile profile that saves a username.
<variables> <var_folder name="username"> <var name="username" type="TEXT" description="The user name."></var> </var_folder> </variables>
In your script, you set this variable by calling:
PUT /v1/dialogs/{dialog_id}/profile
with:
{ "client_id": 4435, "name_values": [ { "name": "username", "value": "Bruce Wayne" } ] }
Remember to replace {dialog_id} and {client_id} .
We have an API API that allows you to check the API: Dialog API .
You can also read about it in the tutorial .
source share