Action group: Integrations
The action returns a message.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Chatbot connection context | Chatbot connection context | Robin.Chatbot | Chatbot context | Yes |
Topic | Topic | Robin.String | Yes | |
Required variables | A string with the comma separated names of the required variables that must be contained in the message. | Robin.String | Yes | |
Timeout | Time to wait for message in milliseconds. Default value: 8000 | Robin.Numeric | No | |
Results | ||||
Result | Dictionary with values of required variables | Robin.Dictionary |
Example of a robot scheme for working with the Chatbots subgroup: _work_with_chatbot.robin-source
Receive a message from the chatbot (mandatory variable TIN), count the number of records in the message, if the records are greater than 0, then generate a random integer and send the result to the chatbot.
Use the actions "Open context", " Get message", "Get the number of elements in a dictionary", "Greater than", "If", "Get random number", "Number in String", "Join", "Send message".
The program robot completed successfully. The message was received from the chatbot and a response in the form of a randomly generated number was sent.