Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

[Conversational agents] Attach payload to every message from playbook

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.

Example condition with payload.PNG

 

0 1 51
1 REPLY 1

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:

  • Invalid JSON: Ensure that your JSON payload is properly formatted and free of errors. Use a JSON validator to identify and fix any syntax issues.
  • Incorrect Conditions: Verify that your conditional logic is properly structured. If the condition is never satisfied, the action will remain untriggered.
  • Unexpected Behavior: Examine your complete JSON response from the agent to gain insight into what you’re dealing with. This will reveal whether your payload exists, its structure, and any unexpected elements within your data.
  • Payload in the Client: Ensure that your client application or the system handling the agent's responses accurately interprets and processes the payload.

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.