A flow is made of at least one step (called
start), but can also contain as many steps as necessary. You should think of steps as individual, simple bits of logic, linked inside the same conversation topic (which is the flow).
To go from one step to the next, you can simply use the keyword
goto step) followed by the name of the step.
To finish a flow (and close the conversation), add
start:say "hi"goto step otherstep // note: in the following examples, we will use the shorthand notation `goto otherstep`otherstep:say "I'm in otherstep"goto end
Similarly to navigating between steps of the same flow, you can go to the beginning of any other flow by using the
goto flow keyword. This will trigger the
start step of the target flow and close the current flow, so coming back to the first flow will actually go back to the beginning of that flow.
somestep:goto flow anotherflow