Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cannot transition from a playbook to a flow

I’m trying to set up a flow that transitions from a playbook back to a flow. I’m not sure if this is the best approach, but since taking a pizza order can be complex (e.g., ‘pepperoni… no, never mind, mushroom’), I opted to handle the ordering logic within a routine playbook. (Should I be using a task instead?) After capturing the order details, I want the playbook to pass this data back into the flow. However, the transition from the playbook back to the flow isn’t working as expected. Should I avoid using playbooks altogether, or am I implementing this incorrectly?

This is my instructions in the playbook : 

- Ask for Order:
- Prompt: "What can I get for you today?"
- Save response to: $session.params.order_details
- Transition to: Ask for Extras
- Ask for Extras:
- Prompt: "Is there anything else?"
- If response is "no":
- Transition to: Confirm Order
- If response is "yes":
- Prompt: "What else would you like?"
- Save response to: $session.params.additional_order
- Update: $session.params.order_details = "$session.params.order_details and $session.params.additional_order"
- Transition to: Confirm Order
- Confirm Order:
- Prompt: "I have your order as: $session.params.order_details. Is that correct?"
- If confirmed:
- Transition explicitly to: ${FLOW:ConfirmOrder}
- End Playbook
- If not confirmed:
- Prompt: "Let's start over."
- Reset: $session.params.order_details = ""
- Return to: Ask for Order
 
 
 
 
0 2 259
2 REPLIES 2