Hi,
I am trying to configure a playbook that determines the users' necessities and, if there is any existing flow that applies, route them to a traditional conversational flow in Dialogflow CX.
The problem is that, for each interaction in the conversational flow, the message is sent in a payload with more output params. Can I replicate the same behavour in the playbook? Which is the best way? I am trying to join the payload with a conditional action (attached image) but nothing changes.
Hi @Chatbit,
Welcome to the Google Cloud Community!
It looks like you are trying to attach a custom payload to every message sent from a playbook in a conversational agent platform, replicating how Dialogflow CX flows work. You're using a conditional action to achieve this, but it's not behaving as expected.
Here are the potential ways that might help with your use case:
Additionally, you can refer to this documentation for more details on how Google Cloud's Virtual Agent Custom Payload enables rich, interactive responses with text, images, videos, and buttons, enhancing user engagement and facilitating actions like escalations and session management.
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, Marvin,
First of all, thank you for your answer.
I have checked the next steps:
- The JSON looks correct, i have tried with a more simple JSON like {"example": "text"} and it is still not working.
- The condition is TRUE and it worked with other conditional actions I have created.
- I am mainly experimenting with the "Toggle simulator" in "Conversational agents" and it shows the payloads in the conversational flows, so I am supposing that if the playbook was sending a payload, it would show it too.
I have observed that if I create one more conditional action, it doesn't work. I suppose it could be because the payload attaching action is failing and causing a cascading error but it looks correct:
Trigger: Before the LLM decides its next action.
Custom expression: TRUE
Action: Provide a response to the end user
Custom payload: {"example": "text"}
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |