# Getting Error while connecting Dialogflow cx to Rocket.chat gold account

**URL:** <https://forums.rocket.chat/t/getting-error-while-connecting-dialogflow-cx-to-rocket-chat-gold-account/13560>\
**Category:** Rocket.Chat Apps\
**Created:** [March 11, 2022, 8:27pm UTC](https://forums.rocket.chat/t/getting-error-while-connecting-dialogflow-cx-to-rocket-chat-gold-account/13560 "2022-03-11T20:27:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayesh.desai](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@jayesh.desai](https://forums.rocket.chat/u/jayesh.desai)\
**Post date:** [March 11, 2022, 8:27pm UTC](https://forums.rocket.chat/t/getting-error-while-connecting-dialogflow-cx-to-rocket-chat-gold-account/13560/1 "2022-03-11T20:27:40Z")

</div>

Hello @dudanogueira and others,  
ok, so I have connected Dialogflow es chatbot to rocket.chat and it is working fine but when I try to connect Dialogflow cx agent using the service account credentials it is giving me an error like this "IAM permission ‘dialogflow.sessions.detectIntent’ on ‘projects/xxxxxxxxxxx/agent’ denied.“PERMISSION\_DENIED” so is it possible to connect dialogflow cx bot to rocket.chat?

and also right now I am using  
[https://dialogflow.cloud.google.com/cx/projects/xxxxxx/locations/us-central1/agents/xxxxx\_projectID\_xxxxxx/](https://dialogflow.cloud.google.com/cx/projects/xxxxxx/locations/us-central1/agents/xxxxx_projectID_xxxxxx/)  
Project Id which is at the last of the URL in the rocket.chat dialogflow app(key has all the permissions(dialogflow admin and client))

maybe I think I am not using project ID correctly, dialogflow es has seperate project ID for each agent but about dialogflow cx there is one project id and multiple agents in the projects

Note - dialogflow es is working fine with rocket.chat

---

<div class="post-metadata">

**Author:** ![vinicius.marino](https://avatars.discourse-cdn.com/v4/letter/v/f1d935/32.png) [@vinicius.marino](https://forums.rocket.chat/u/vinicius.marino)\
**Post date:** [March 22, 2022, 1:49pm UTC](https://forums.rocket.chat/t/getting-error-while-connecting-dialogflow-cx-to-rocket-chat-gold-account/13560/2 "2022-03-22T13:49:12Z")

</div>

Hey, @jayesh.desai

Did you follow this doc to configure? It shows the bot configuration and permissions needed: [https://docs.rocket.chat/guides/app-guides/omnichannel-apps/dialogflow-app/dialogflow-app-configuration](https://docs.rocket.chat/guides/app-guides/omnichannel-apps/dialogflow-app/dialogflow-app-configuration)

It might help you. 🙂
