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

Multliple data store sources

I am curious, if you have more than 1 source for datastore, which type is hit first.  Secondly, are you able to re arrange the order.  For example, if no determistic intent is triggered, I want the datastore to look in the FAQ document first then if unknown, go to website datastore

Screenshot 2024-06-20 at 1.08.50 PM.png

0 3 202
3 REPLIES 3

Hello,

Thank you for contacting Google Cloud Community!

Dialogflow CX doesn't allow prioritizing datastore sources when you have more than one. Dialogflow CX treats all configured datastore sources equally. It doesn't process them in a specific order.
When a user query comes in, Dialogflow CX searches all configured datastore sources simultaneously to find a match.
The first datastore entry that provides a relevant response based on the query is used. Dialogflow CX doesn't continue searching through other data sources once a match is found.

Regards,
Jai Ade

Hi Jaia,

Do you know if it is possible to use a datastore fed through a website that requires authentication to access it ?

Create a data store in DialogFlow CX supplied by a... - Google Cloud Community

Thanks in advance

Hello,

Dialogflow CX itself doesn't directly support including usernames and passwords when importing data from a website. However, there's a workaround using pre-built components and webhooks:

1. Use the Authentication Pre-built Component [1]
This component helps handle authentication with external services. It won't directly import data, but it can be used to obtain a security token needed to access the website.

2. Create a Security Answers Webhook [2]
This webhook will be triggered by the Authentication component and handle the actual data retrieval.

[1] https://cloud.google.com/dialogflow/cx/docs/concept/prebuilt-component/authentication
[2] https://cloud.google.com/dialogflow/cx/docs/concept/webhook

Regards,
Jai Ade