How to use Chat Context in your Agent

icon picker
Context Variables

⁠
@Context Variable
⁠
s — variables stored in the
@Chat
⁠
and available for reading and modification by the system according to the logic embedded in the
@Script
⁠
or
@Platform
⁠
.
A
@Context Variable
⁠
can be part of the text sent by the
@Agent
⁠
(for example, in the
@Text
⁠
or
@Attachment
⁠
@Slot
⁠
s) or to an external system via an
@External Request
⁠
. The entire set of
@Context Variable
⁠
s is called the
@Chat Context
⁠
.

Types of variables

⁠
@System Context Variables
⁠
are variables created by
@Platform
⁠
in the
@Chat
⁠
for service purposes and to ensure the operation of the
@Script
⁠
.
@System Context Variables
⁠
are not editable by the user, but are available for viewing and use in the
@Script
⁠
. More details: .
⁠
@Channel Variables
⁠
— metadata from the
@End Channel
⁠
⁠
@Context Variable
⁠
, which the
@End Channel
⁠
transmits to the
@Agent
⁠
during the
@Conversation
⁠
process. Usually, these are data about the
@Bot User
⁠
and internal identifiers of
@Dialog
⁠
s and
@Chat
⁠
s of the final software. More details:
⁠
@User Context Variables
⁠
— created and modified by the user on certain sections of the
@Script
⁠
, are always available for editing in the
@Script
⁠
. Read more:

Context Inheritance

A
@Context Variable
⁠
created in an
@Dialog
⁠
is available in all subsequent
@Dialog
⁠
s of this
@Chat
⁠
, until such a
@Context Variable
⁠
is deleted by the system logic (relevant for
@System Context Variables
⁠
).
The
@Dialog
⁠
receives a
@Context Variable
⁠
in the form in which such a
@Context Variable
⁠
was last recorded in previous
@Dialog
⁠
s of this
@Chat
⁠
.

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.