Hi, I'm trying to use the tool from playbook.
My tool is conected with a cloud function that returns a JSON list.
All conections are OK and tested.
My issue is that I get the answer from there, but when I try to use this in my converstational agents chat I get no value. How can I solve this?
First I tried to set this variable via playbook prompt, then I use in my function the fulfillment_response stuff, setting up the parameter json_resp, but still not working.
My example calling my function and didn't setting the variable properly:
At that time, I've already had the values:
But, as you can see in the first image, the session parameter don't work.
Thanks
Solved! Go to Solution.
Hi, this idea of call a variable doesn't work, so I tried to work with examples in the playbook tab, after some examples the playbook generate automaticly and that worked.
Hi @GabrielBaptista,
Welcome to Google Cloud Community!
It looks like you're successfully calling your cloud function, receiving the expected JSON, and the outputActionParameters within your Dialogflow CX response have the json_resp parameter correctly populated. However, you're unable to access this data using $session.params.json_resp within your conversation agent's response.
Here are potential ways that might help with your use case:
For more information about Conversational Agents (Dialogflow CX), please refer to the documentation.
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, thanks for your answer!
When I posted it I've already had the fulfillment_response setup:
I'm also having problems using DFCX/Conv agents parameters. It looks like we can't set the parameter's scope, so the playbook can't be made aware of, and use the parameters.
@MarvinLlamas do you know if is it a bug? because it's not only with me.
Hi, this idea of call a variable doesn't work, so I tried to work with examples in the playbook tab, after some examples the playbook generate automaticly and that worked.