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

Changing AI generated Text

Hello,

when the grounding for an answer from the Data store is very low, the Bot always sends a text message and a custom payload:

Yannick_SG_0-1700541850031.png

He always says, in different variations, that the user should check out a link.

For one,  is the custom payload not visible for the user, so it's confusing to read that you should check out a link, but then no link is visible.

Also I want the Bot to just say, that he doesn't know the answer. In the agent settings, I have the following activated:

Yannick_SG_1-1700542077441.png

Yannick_SG_2-1700542098251.png

And this is the custom payload for one of the answers:

{
  "richContent": [
    [
      {
        "type": "match_citations",
        "citations": [
          {
            "title": "Wie viel kostet das Breezy Gerät?",
            "actionLink": "",
            "subtitle": "Das Gerät kostet €1.649,00. Die Lieferung ist kostenlos in Deutschland und Österreich!\n\n<b><a href=\"https://neuro-shop.net/products/breezy\" target=\"_blank\">Jetzt bestellen!</a></b>"
          },
          {
            "actionLink": "https://storage.cloud.google.com/neowakedach/support/enaera/unstrukturiert/enaera info.pdf#page=3",
            "subtitle": "Was immer im menschlichen Körper geschieht, benötigt Energie, die der Körper in seinen Organen bzw. deren Zellen erzeugt.",
            "title": "enaera info"
          }
        ]
      }
    ]
  ]
}

The second actionLink leads to my storage, which I didn't made public, so maybe that is the reason, why the custom payload is not visible?

Solved Solved
0 7 549
1 ACCEPTED SOLUTION

Will do, yes. How I solved the issue for now, I send every Data Store - generated answer to a Cloud function, which checks if it contains the word "link" and if yes, produces a fallback question. Just a workaround, but works well so far.

View solution in original post

7 REPLIES 7