<aside> ❗ This node is deprecated, use the Rules node

</aside>

Control the flow based on the topic. Use the topic to restrict the working area of your bot’s parsers based on the user intentions.

The first matched topic skips the rest of the matching. To get a else-like behaviour, use a * at the end of the list to capture all messages that don’t match any topic.

Chat topic is stored in the chat context “topic”, use the Context node to change it or the {topic=my_topic} directive in RiveScript.

The chat topic can also be changed in a Function node

var chat = msg.chat();
chat.set('topic', 'my_topic');
return msg;

The chat context could have more than one topic (in that case is an array of string).