...
English |
---|
There are built-in variables on the TWIN platform that can be used in various scenarios: Unfortunately, it is not possible to use your own dot variables: {your.variable}this This construction will not work. This is the only limitation in variables, since "." points to a system variable. {system.variable}System variables used on the platform.
{detector.emotions}Determination of the emotional coloring of a person's answer. There are 3 types:
{detector.gender}Determination of gender by voice. Only available in calls. For this variable to work, it is required to check "Determination of gender characteristic" in the call task. Possible values To determine the gender, the system needs at least 1 second of the client's clear voice, otherwise the system will not recognize anything.
Variable values of which do not change and which cannot be changed during the dialogue{companyId} is a string, company ID which the bot belongs to. {botId} is a string, bot ID. {dialogId} is a string, current dialog ID. {dialog} is an object, when inserting into a line, is automatically transformed into the dialog text. {referer} is a string, URL where the user came from (used for chats) Client information (Twin end user, dialogue participant)information can be changed during the dialogue using the client identification endpoint (it is available both in chats and in the bot service). {clientId} is a string, client ID in Twin system. {clientPhone} is a string, client phone number. {clientEmail} is a string, client email address. {clientName} is a string, client name. {clientNickname} is a string, client nickname. {clientExternalId} is a string, user ID in the Twin client system, must be unique within the company. {clientMetadata} is an array, any data about the client. Data that can be changed only when switching from a call to a chat, or vice versa(So far, this functionality is not available in full, because CIS has not been launched. At the moment, you can use it, for example, to determine in which messenger the dialogue is being conducted): {communicationType} is a string, client communication type. Valid values: TEXT, VOICE. Data that changes automatically with each addressing to the bot{percept} is a string that stores a phrase said by the user and which the bot is currently responding to. Variables will be updated in this article as they appear on our platform. |
...