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

Create a data store in DialogFlow CX supplied by a website with basic authentication

Hello

I am trying to create a Data Store in DialogFlow CX fed with a website authenticated with username and password but I can't import any data.

When I use an unsecured website, the import works fine but in this case the website requires basic authentication and I can't find a way to supply the credentials to the system.

Thanks, best regards

2 2 308
2 REPLIES 2

I have the same problem...

Hello,

Thank you for contacting Google Cloud Community!

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