Aimylogic contains a collection of built-in variables that can be used by your bots. We named them system variables.

$queryText
This variable contains the text of the last user's request.

Please note that some channels like Amazon Alexa don't provide the raw text of user's query
$userId
An unique user's ID string. This ID is unique per bot's channel. Thus you cannot identify the same user across multiple channels.

$channelType
The channel's type string. Like alexa, telegram, facebook, google, chatwidget and etc.

$rawRequest
This variable contains the raw request data. It depends from the current channel of the bot. Please refer to the API documentation of a particular channel if you plan to use this variable.

$lastSeen
This variable contains an amount of seconds past from the previous request of this user.
Was this article helpful?
Thank you!