Note: In this case, from the moment theis saved until the@Slotis retrained, both@Agentwill work: the old one will continue to receive and process requests, the new one will respond with an error to requests. After retraining the@Incoming Request Webhook, the old@Agentwill be deleted and stop responding, and the new one will begin to receive and process requests@Incoming Request Webhook
IMPORTANT: To parse is_urgent / chat_id fields, onlyis allowed. The use of@Expressionis not allowed.@Expression with Control Structure
When parsing the body of a request, the “variables” specified in the Request key field are nots, but are calls to the body, headers, query objects — parts of the@Context Variable— and their properties. Read more: Incoming request parameters and their parsing into context variables@Incoming Request
Important:
* the locations of chat_id and is_urgent may be the same (example: https://platform_domain/api/incoming_request/31104::lhmscvYm4Ms4qkJTFP6I22HyGVW_03HE-SXtcd0tLk4?chat_id=1b7637033b3fc4c15a95bfad048ceb8924 4f6dea&is_urgent=true)
* the locations of chat_id and is_urgent may differ, for example, is_urgent can be passed in the request parameters, and the path to the “chat_id” key (in the request body) can be specified by the user in the parsing settings
Important: If the size of thebody exceeds@Incoming Request, then it is replaced with an empty body {}.@Limit on the size of the received body in the Incoming Request
Important: body, headers, query objects are not saved in the, but are available for parsing when this@Chat Contextis running.@Incoming Request Slot
Body, headers and query can be parsed entirely intos.@Context Variable
Ins in the Context key field, you can set names that match the names of parts of the request, for example, parse the entire body object into the body variable. @Context Variable
Example: {{ body.content.par1 }} — access to the par1 variable nested in content and body
Example: {{ body.name }} and {{ body.Name }} — calls to different keys (name and Name) in the request body.
Example: {{ body.content.par1 }}
Example: {{ body.array.0.par1 }} — accessing the first element of the array
Example: {{ data["keys"] }}