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

How to disable custom payload that restates Q/A on data store response with dialogflow

Screenshot (67).png

 When I ask a question that gives a data store response, the bot outputs a custom payload that restates the question being asked, and repeats the answer. In the picture, I only want it to give the first response, not the second one (I don't want the one that starts with How do I...). I've put the link maximum to 0 and the only custom payload response I have are chips.

Solved Solved
2 4 795
1 ACCEPTED SOLUTION

Hello,
I might misunderstand your question and situation but have you tried to remove the "Data store response" where you set the link maximum entirely?
When I remove that one from my project I don't get any links to my data store source.

EricaP_1-1720187815279.png

 

 

View solution in original post

4 REPLIES 4

Hello,
I might misunderstand your question and situation but have you tried to remove the "Data store response" where you set the link maximum entirely?
When I remove that one from my project I don't get any links to my data store source.

EricaP_1-1720187815279.png

 

 

This works, thank you.

Where do you find that option?

Hi @cloudeq,

Welcome to Google Cloud Community!

It seems you're experiencing a problem with your bot providing redundant and unnecessary responses after retrieving information from a data store.

Here are the potential causes of repetitive responses in Dialogflow CX:

  • Similar User Inputs Triggering Multiple Intents or Responses: Your bot may have multiple intents or responses configured to handle similar user inputs. For example, one intent might be designed to fetch data, while another might be designed to rephrase the question and provide the answer. This overlap can lead to repetitive responses.
  • Fallback Intent: If your bot doesn't find a perfect match for the user's input, it might fall back to a generic intent that simply repeats the question and the data store response. This fallback intent can result in repetitive output if the user's query is not specific or clear.
  • Unintentional Repetitions in Customized Code: Custom code within your Dialogflow CX bot may unintentionally produce repetitive output. Review your code to ensure that it's not generating duplicate responses.
  • Concatenate Functions in Dialogflow CX Code: Check if you're using concatenate functions in your Dialogflow CX code. Sometimes, these functions can inadvertently cause repetitive output.

To disable the custom payload that restates the question and answer on a data store response in Dialogflow, you typically need to adjust the fulfillment or response logic in your Dialogflow agent.

Here’s how you can approach it:

  1. Access the Dialogflow console:
  2. Review your Intents
    • Navigate to the Intents section, look for the intent associated with the data store response you want to modify.
  3. Edit your Response: 
    • Within the intent, review the responses action.
    • Identify where the custom payload or response that restates the question and answer is configured.
  4. Remove or modify responses:
    • Disable or delete the specific response that restates the question and answer.
    • You can also modify the response to only provide the necessary information without repeating the question.
  5. Save Changes:
    • After making changes, save the Intent.
  6. Check Fulfillment:
    • When using fulfillment (Webhook) to generate a response, make sure that your code or logic does not unintentionally include additional responses.

For guidance on using the Dialogflow service, you can check the documentation on General agent design best practices.

I hope the above information is helpful.