FlowRunner. Simulator
(flow_runner v6.15.1)
Copy Markdown
A simulator for interacting with the Flow Runner.
This is used for testing purposes and ca be used to build a simulator that the user can experiment with to test the service they are building.
Summary
Functions
Generate the list of options available for a dynamic quick reply block.
Generate the list of options available for a static quick reply block.
Keep track of the inputs received for the simulator, updating the last_user_input if it's not nil.
Keep track of the blocks generated as output and keep them aligned with the original input that was received which triggered this block.
Types
Functions
@spec generate_choices_for_dynamic_quick_replies(t(), [quick_reply_choice()]) :: [ FlowRunner.Simulator.Output.t() ]
Generate the list of options available for a dynamic quick reply block.
IMPORTANT: We use the button name as the values here.
@spec generate_choices_for_static_quick_replies(t(), [quick_reply_choice()]) :: [ FlowRunner.Simulator.Output.t() ]
Generate the list of options available for a static quick reply block.
IMPORTANT: We use the button labels as the values here.
Keep track of the inputs received for the simulator, updating the last_user_input if it's not nil.
@spec track_output(t(), FlowRunner.Spec.Block.t() | nil) :: t()
Keep track of the blocks generated as output and keep them aligned with the original input that was received which triggered this block.
Multiple blocks may be output