Action group: Integrations
The action sends a message to the topic.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Chatbot connection context | Chatbot connection context | Robin.Chatbot | Chatbot context | Yes |
Topic | Topic | Robin.String | Yes | |
Message | Json Message | Robin.String | Yes | |
Timeout | Time in milliseconds to wait for sending message. Default value: 3000 | Robin.Numeric | No |
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.