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

Trying to connect DialogFlow CX with agents created in dialogflow cx directly and not in the Agent B

Hey,

i am experiencing an issue when attempting to connect my Dialogflow CX agent with Soul Machines. The problem is that only Dialogflow CX agents created via the Agent Builder in Google Cloud are recognized and available for integration with Soul Machines. However, agents created directly on dialogflow.cloud.google.com
 do not appear as available options for connection.

niklasred_0-1742469384930.png

"SoulMachine Test" is the one created with the Agent Builder and "webhook test" is created in Dialogflow CX directly.

Now the issue when i try to connect the Knowledge Base via a Service Account Credentials i only see the "Soul Machine Test"

niklasred_1-1742469504339.png

Are there some settings you need to do before it is available to choose?

Thank you!

 



0 1 218
1 REPLY 1

Hi @niklasred,

Welcome to Google Cloud Community!

The issue appears to be caused by agents created directly in Dialogflow CX via dialogflow.cloud.google.com not being recognized by Soul Machines, whereas agents created through the Agent Builder in Google Cloud are recognized.

Here are some things to check and try in order to resolve the issue:

1. Agent Configuration in Dialogflow CX:

  • Ensure that both agents are set up in the same project: Sometimes agents created in different projects (even within the same account) might not show up if Soul Machines is only configured to recognize agents in a specific project.

  • Verify the agent version: Ensure that the version of the agent you're trying to connect directly is published or available for integration. Soul Machines might not show un-published or draft versions.

2. Service Account Permissions:

  • Service Account Permissions: Double-check that the service account you’re using for connecting the Knowledge Base has the necessary permissions. For example, it should have the Dialogflow API Client role and be able to access the right resources (agents, knowledge bases, etc.).
  • IAM Roles and Permissions: Verify that the IAM roles assigned to the service account have full permissions for both the Dialogflow CX agent and any other resources you're trying to connect to Soul Machines. The roles typically needed are roles/dialogflow.admin or roles/dialogflow.developer.

3. Agent Ownership:

  • Ownership and Visibility: Make sure the agent created on Dialogflow (via the web interface) is owned by the same Google Cloud project, and that Soul Machines can access that specific project. This might be an issue with cross-project visibility, where only certain projects are accessible through Soul Machines.

4. API Enablement:

  • Enable APIs: Ensure that the Dialogflow CX API is enabled in your Google Cloud project. Sometimes, even if agents are visible in Dialogflow, they won't be recognized by external integrations if the necessary APIs aren’t enabled.
  • Check for any errors in the API logs: If possible, look at the logs for the API calls to see if there’s an issue when Soul Machines is trying to access the agent from Dialogflow CX.

5. Debugging the Integration Process:

  • Try creating a new Dialogflow CX agent using the Google Cloud Console's Agent Builder and see if it appears in Soul Machines.

  • If it works, there may be a specific setting on the agent in Dialogflow CX that is preventing it from appearing when created through the cloud UI.

In addition, You can check this documentation to see if there are any specific steps required to connect an agent created directly via the Dialogflow CX console, as it could be expecting a specific agent version or configuration.

If none of the above solutions work. Contact Google Cloud Support for clarification and when reaching out, include detailed information and relevant screenshots of the errors you’ve encountered. This will assist them in diagnosing and resolving your issue more efficiently.

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.