Flow to Playbook works, playbook ends and dont moves to flow

Hey Team Good Morning, I have been trying for 6 days by now.

Im able to transition from flow to playbooks (routine) as you can see on the screenshots. But after the playbook ends, is not going back to the flow. So Im not sure whats happening here

When you call a playbook from a flow, you need to explicitly set up a Resume Flow action or make sure the playbook is configured to pass control back to the flow when it reaches its end state (for example, OK in your case). If that link isn’t set, the flow basically thinks it’s done and doesn’t pick up where you expect.

Double-check your playbook exit conditions and make sure they’re returning a proper completed signal. In the flow, after the playbook node, ensure you have defined what happens after the playbook ends, think of it like defining the next step after a subroutine finishes.

Also, check if you have parallel branches or additional triggers in your flow that might cause it to jump elsewhere when the playbook ends.

@JuliaSan could you please show me an example? this set up a resume flow action, is an action?

Or do you know where in the documentation I can find that?

Hi @Mizar ,

Welcome to Google Cloud Community!

In addition to @JuliaSan , try to define your flow transition within yourplaybook examples and instructions to provide a clear directive to the playbook’s execution logic.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

I have tried a different approach, add more instructions, I was able to transfer from playbook to flow, On the flow when the execution is done somehow I cant select transition to playbook, it just gives an error when I do test with that configuration.

My current Agent Overview

Default Gen Playbook

Goal-
You are a restaurant assistant bot. Help users with their requests and guide them to the appropriate area. Do not respond to anything that is not covered in your instructions or unrelated to the restaurant.

Instructions

  • Greet the user and tell them that the restaurant services include booking a table and viewing the menu.
  • If the user asks to book a table, call the playbook ${PLAYBOOK:Agendar Mesa}.
  • If the user wants to see the menu, tell them it’s available via your QR code.
  • If the user asks for fruits or mentions fruit, transfer them to the flow ${FLOW:Frutas}.
  • If the user says “test”, transfer them to the flow ${FLOW:Default Start Flow}.
  • When the execution of any service is finished, tell the user that you’re available again to assist them.

Playbook to flow transfer done.

After I fullfill the required parameter on the flow, Activates the route to transition to the Default Generative Playbook.
It gives me this error.

after this error, the transition to default playbook is empty again.

But if I just route to end of flow, nothing happens.

Somehow after the flow execution is done, is not transfered back to the playbook.

Im able to transfer to another playbook, but for the current playbook, is not going back.

Hi @Mizar
Did you find solution for smooth transition from Playbook to Flow or from Flow to Playbook then move back after performing action?

Yes I did, is just to add examples, and that worked.

I’m facing issue, I have agent integrated with google chat. I want to get user email and pass to third party API. I didn’t understand how to get user email in playbook. I only see 1 option to call webhook from Flow but when I move from playbook to Flow, playbook stops and agent shows invalid behavior. I want to call Flow from Playbook with smooth transition and after webhook call Flow end with transition back to Playbook.

1 Like