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

Control integration settings via API for a Dialogflow Agent

Is there a way to control the integration settings via API for a dialogflow agent? 

For example, let's say I have created a new Dialogflow agent, and I want to toggle ON the Dialogflow Messenger functionality (using either an Unauthenticated API or Authenticated API setup) and limiting it to a specific domain. 

The only steps I can seem to find are to manually toggle it on via the console (https://cloud.google.com/dialogflow/cx/docs/concept/integration/dialogflow-messenger). I can't seem to find any documentation that references allowing me to customize the integration settings via the Dialogflow APIs either after my agent exists or when I am provisioning it. 

Here is a sample path to my agent where I can do it via the console: 

https://dialogflow.cloud.google.com/v2/projects/$PROJECT_NAME/locations/global/agents/$AGENT_ID/(cx/...

Is it possible to make a change like this through the Dialogflow API?

Solved Solved
0 2 247
1 ACCEPTED SOLUTION

Hi @nmcwilli,

Welcome to Google Cloud Community!

At the moment, there isn't a direct way to manage Dialogflow Messenger integration settings through the Dialogflow API. The best way to configure and enable this integration is via the console interface, where you can choose options like unauthenticated vs. authenticated API access and domain restrictions. While the API offers a wide range of customization for your agent, this particular integration feature isn't available for programmatic control right now. So, you'll need to use the console to set it up and make those specific choices. You can find all the steps you need in this document

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

2 REPLIES 2

Hi @nmcwilli,

Welcome to Google Cloud Community!

At the moment, there isn't a direct way to manage Dialogflow Messenger integration settings through the Dialogflow API. The best way to configure and enable this integration is via the console interface, where you can choose options like unauthenticated vs. authenticated API access and domain restrictions. While the API offers a wide range of customization for your agent, this particular integration feature isn't available for programmatic control right now. So, you'll need to use the console to set it up and make those specific choices. You can find all the steps you need in this document

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.

I figured as much! Ok thanks for letting me know.