To organize your conversation definitions, you can group the rules using the
- flow: identify rules: - Welcome - What's your name? - flow: ticket rules: - How can I help you?
Jumping between flows
You can jump between flows using
flow_name.rule_name notation in the
- flow: identify rules: - Welcome! - message: Your name? name: name type: String - message: Thanks! next: question.help - I don't know who you are - flow: question rules: - message: How can I help you? name: help
Welcome! Your name? Anderson Thanks How can I help you?
This notation is only required if you want to jump to another flow, but you can use just the rule name to jump into the current flow.
- flow: identify rules: - message: One next: two - This message will be skipped - message: Two name: two exit: true - flow: another rules: - Skipped too
bot> One bot> Two