Goal: To have a dynamic playbook that interacts with the tool based on the incoming session parameters.
The goal is that when a user enters a playbook from a flow the country and language session parameters are based into the playbook. ie. if a user is interacting from English/USA the params en and us are passed into the session parameters or say from Japan, the value would be ja (Japanese) /jp (Japan).
Once these values are in the playbook, I have a datastore tool that is connected to our support website that has documents for all languages and countries (ie. https://support.xyz.com/sp/en/us/how_to_download_product_A or https://support.xyz.com/sp/ja/jp/how_to_download_product_A)
Can the playbook have instructions to pull region based documents from the datastore tool based what the session parameters are.
Below is my attempt of instructions to do this but no luck. Is this a possibility with playbooks or no?
Instructions:
Solved! Go to Solution.
Hi @Ian_Stack,
Welcome to Google Cloud Community!
Yes, this is possible with Playbooks and its integration with Datastore tools.
The recommended way to implement this is to make the Datastore Tool itself responsible for the regional filtering, based on parameters you pass to it from the Playbook. This is more reliable and efficient than trying to instruct the Playbook's LLM to construct dynamic URLs or filter logic within its text-based instructions.
Here's how you may approach this:
In summary, your initial instructions were trying to get the Playbook LLM to do the job that the Datastore Tool's configuration is designed for. By shifting the filtering logic to the Tool configuration and simply passing the necessary session parameters to it, you achieve a maintainable solution.
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