Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Provide multiple inputs to be used by different agents in the same playbook

Hi:

I am trying to implement a playbook that uses an agent to summarize a conversation and then  use that summary to update a provided care plan. 

So the instructions are:

- summarize the conversation between the user and care manager using ${AGENT:Conversation summarizer}
- Use the summary from the above agent to update the care plan summary section only of the given care plan
- Output the updated care plan in the same format as the intput care plan
 
The user input I provide is as follows:
Conversation: 'Care Manager: Hey there! We all know the basics on what our heart does, but ' "have you ever wondered what's actually going on in that fist sized muscle we " 'User: To me it makes perfect sense.\n' 'Care Manager: Let me know if you have any questions or concerns ' 'after your appointment this afternoon!\n' 'User: Will do.. thank you\n'
 
Previous Care Plan: Care Plan Summary: The most important things for me to work on are... Maintaining a low fat diet rich in vegetables and high in essential vitamins and minerals in order to achieve a healthy cholesterol level daily Reducing my sodium intake and remaining compliant with medications in order to achieve a healthy blood pressure daily Following my physician's orders and attending all scheduled appointments Remaining physically active and compliant with prescribed medication regimen daily Take all medications as prescribed by your doctor. Do not adjust your medications without talking to your healthcare provider. Report any side effects of your medications to your healthcare provider. Keep track of your medication refills and make sure you don't run out. Medications may be prescribed to manage specific symptoms, such as pain, nausea, or anxiety.
 
But then the agent is not able to separate the conversation and the care plan. Keeps asking me to input the conversation separately. Attached is the conversation I had with the agent. How do I provide multiple inputs to be acted upon by different instructions?
 
cannot_parse_input.png
0 3 137
3 REPLIES 3

MJane
Former Googler

Hi yamskonline ,

Welcome to Google Cloud Community!

The playbook is likely designed to handle specific tasks. When you provide both the conversation and the care plan, the agent gets confused because it's expecting a single input to work with.

Here are key considerations that might help you with the issue you encountered : 

  • Separate Inputs - Provide the conversation and the care plan as a separate input. Create two playbook steps, then define parameters to store the conversation and care plan.
  • Agent Capabilities - Ensure the "Conversation Summarizer" agent is designed to handle the format of your conversation input.
  • Care Plan Format - The care plan update agent needs to understand the structure of your care plan to modify the summary section correctly.
  • Default Playbook - If you are using default playbook as the starting point for conversation , it  doesn't get a summary of earlier conversation turns and can't define or receive input parameters. 

For more information about Playbook concepts you can read through this documentation.

I hope the above information is helpful.

Thanks @MJane. I will try these options out.

To provide multiple inputs for different instructions in a playbook, format each input as a separate variable, like Conversation and PreviousCarePlan, so the agent can distinguish and process each accordingly without confusion.