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

Datastore response share cloud storage link

I have created a chatbot using dialogflow cx and I'm using the datastore for answering the questions.

I have 2 type of datastores, one is created using web indexing while other is imported from google cloud storage bucket.

I have also added maximum link 1 option in datastore response in agent responses.

I expect that it should only share the link when it gets the answer from web indexed data, but it is sharing the link of google cloud storage bucket as well when it finds answer from second datastore.

Is there anyway to fix it?

Solved Solved
0 1 119
1 ACCEPTED SOLUTION

Hi @babuharsh,

Welcome to Google Cloud Community!

It looks like you're facing an issue with your Dialogflow CX agent, which utilizes two datastores—one web-indexed and one from Google Cloud Storage. You expected the "Maximum number of links in agent response = 1" setting to apply solely to the web-indexed results, but it's applying to all datastore matches instead.

Here are the potential ways that might help with your use case:

  • Create Separate Flows: To effectively manage different types of queries in your Dialogflow CX agent, you should design two distinct flows. First, Flow A, will handle questions related to the web-indexed content. Second, Flow B, will be responsible for questions concerning the GCS-imported documents. This approach ensures that your agent can accurately address queries based on the specific source of information.
  • Create Specific Intents: Within each Flow, you should create Intents that capture the specific questions you identified. For Flow A, focus on creating Intents with training phrases related to web-indexed information, utilizing your domain-specific keywords. Similarly, for Flow B, develop Intents with training phrases tailored to questions concerning your GCS-imported documents, again using your domain-specific keywords.
  • Link Datastores to Flows: To ensure efficient data management, connect Flow A exclusively to the web-indexed datastore and link Flow B solely to the GCS-imported datastore.
  • Configure your Agent: Make sure your Default Start Flow includes Intents that can route the user to Flow A or Flow B based on the user's initial query. This can be achieved by carefully crafting training phrases and potentially using Entity Recognition to identify the topic of the question.

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.

 

View solution in original post

1 REPLY 1

Hi @babuharsh,

Welcome to Google Cloud Community!

It looks like you're facing an issue with your Dialogflow CX agent, which utilizes two datastores—one web-indexed and one from Google Cloud Storage. You expected the "Maximum number of links in agent response = 1" setting to apply solely to the web-indexed results, but it's applying to all datastore matches instead.

Here are the potential ways that might help with your use case:

  • Create Separate Flows: To effectively manage different types of queries in your Dialogflow CX agent, you should design two distinct flows. First, Flow A, will handle questions related to the web-indexed content. Second, Flow B, will be responsible for questions concerning the GCS-imported documents. This approach ensures that your agent can accurately address queries based on the specific source of information.
  • Create Specific Intents: Within each Flow, you should create Intents that capture the specific questions you identified. For Flow A, focus on creating Intents with training phrases related to web-indexed information, utilizing your domain-specific keywords. Similarly, for Flow B, develop Intents with training phrases tailored to questions concerning your GCS-imported documents, again using your domain-specific keywords.
  • Link Datastores to Flows: To ensure efficient data management, connect Flow A exclusively to the web-indexed datastore and link Flow B solely to the GCS-imported datastore.
  • Configure your Agent: Make sure your Default Start Flow includes Intents that can route the user to Flow A or Flow B based on the user's initial query. This can be achieved by carefully crafting training phrases and potentially using Entity Recognition to identify the topic of the question.

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.