In a Conversational Agents playbook that is called from a flow with input parameters including age and location, I want to create examples that show how the agent should incorporate these input parameters into its generated responses.
For example, rather than asking the user again for their location, can I give a mnaual response in the example that references the input parameter location that has been passed to the playbook.
I've read through the documentation page:
https://cloud.google.com/dialogflow/cx/docs/concept/playbook/example
I've configured an input parameter called location, with JSON as follows
Solved! Go to Solution.
Hi @Joe_McFadden,
Welcome to Google Cloud Community!
The $city_location and @city_location syntaxes are not the correct way to reference input parameters within Dialogflow CX playbook examples. Dialogflow CX playbooks don't directly support variable substitution within responses using those symbols. Instead, you need to demonstrate the desired behavior using example conversations. Here's a breakdown of how you can use input parameters like location in your playbook responses:
Important Considerations:
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.
Hi @mauriciobarrev - it works for me, but only after having my project whitelisted for the input parameters feature, which is a private preview feature at present.
I started the request process by contacting Google Cloud Support. I should say that it took some time (over a week) and being passed to other Google teams before I was given access to the preview feature. Once the whitelist is enabled then the above method does work.
try to use postman to check the server resopnce
Hi @Joe_McFadden,
Welcome to Google Cloud Community!
The $city_location and @city_location syntaxes are not the correct way to reference input parameters within Dialogflow CX playbook examples. Dialogflow CX playbooks don't directly support variable substitution within responses using those symbols. Instead, you need to demonstrate the desired behavior using example conversations. Here's a breakdown of how you can use input parameters like location in your playbook responses:
Important Considerations:
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.
Thank you @dawnberdan your answer was very clear and comprehensive. I have this working though I will continue to add more diverse examples to improve the response from the LLM
Hey @Joe_McFadden. Could you resolve finally your problem with this method? For me wasn't helpful 😕
Hi @mauriciobarrev - it works for me, but only after having my project whitelisted for the input parameters feature, which is a private preview feature at present.
I started the request process by contacting Google Cloud Support. I should say that it took some time (over a week) and being passed to other Google teams before I was given access to the preview feature. Once the whitelist is enabled then the above method does work.