The button triggers an automation command executed rule with the ask question action in it.
The ask question shows with buttons which have values, you also set automation command name in the ask question. That question tiggers a second rule via its autoantibodies command then depending on the flow you either create multiple rules responding to that command name constrained by the command value (button value) or if aplicable use the command value in a single rule as the defining factor.
Is if states were, ordered, preparing, ready, collected you could pass those straight into the update state action in second rule as the new state.
If using states please be sure to use a new custom state and NOT status or other default state as this will likely mess up your flow if your not 100% on what your doing.
Watch my show change message tutorial for a good example of ask question resulting rules;