# Integration with Dialogflow

**URL:** <https://community.hubspot.com/t/integration-with-dialogflow/39114>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [June 17, 2021, 4:23pm UTC](https://community.hubspot.com/t/integration-with-dialogflow/39114 "2021-06-17T16:23:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CVeritier](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cveritier/32/9373_2.png) [@CVeritier](https://community.hubspot.com/u/CVeritier)\
**Post date:** [June 17, 2021, 4:23pm UTC](https://community.hubspot.com/t/integration-with-dialogflow/39114/1 "2021-06-17T16:23:58Z")

</div>

Hi!

I work for a company that create chatbots using Dialogflow platform.

A customer wants to implement one of our chatbots in Hubspot, to have a better user experience and a better communication flow, but maintaining the live chat functionality provided by Hubspot.

I’ve been reading the documentation in the knowledge base and I cannot find any API to connect to an external chatbot.

Do you know if it is possible to implement this use case?

Thanks a lot for your help!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [June 17, 2021, 8:38pm UTC](https://community.hubspot.com/t/integration-with-dialogflow/39114/2 "2021-06-17T20:38:36Z")

</div>

@CVeritier

Not sure there is something that 100% aligns with your needs…Have you read this [this documentation](https://developers.hubspot.com/docs/api/conversation/chat-widget-sdk)?

@himanshurauthan , any experience here 😬

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [June 18, 2021, 5:53am UTC](https://community.hubspot.com/t/integration-with-dialogflow/39114/3 "2021-06-18T05:53:48Z")

</div>

Hi, @dennisedson I’ll definitely try.

So @CVeritier,

If you want to execute functions when chatbot loads then here is the documentation for the same - [https://legacydocs.hubspot.com/docs/methods/conversations\_api/hsconversationsonready](https://legacydocs.hubspot.com/docs/methods/conversations_api/hsconversationsonready)

I feel the closest use case for you is to run a code snippet as chatbot action - [Choose your rule-based chatbot actions](https://knowledge.hubspot.com/conversations/a-guide-to-bot-actions#run-a-code-snippet-enterprise-only), you can run node.js code and might use the following Dialogflow node library - [Node.js client library &nbsp;|&nbsp; Dialogflow ES &nbsp;|&nbsp; Google Cloud Documentation](https://cloud.google.com/dialogflow/es/docs/reference/libraries/nodejs)

Hope this helps,

---

<div class="post-metadata">

**Author:** ![CVeritier](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cveritier/32/9373_2.png) [@CVeritier](https://community.hubspot.com/u/CVeritier)\
**Post date:** [June 21, 2021, 9:28am UTC](https://community.hubspot.com/t/integration-with-dialogflow/39114/4 "2021-06-21T09:28:53Z")

</div>

Thanks for your answer, actually it is not what we need. Finally, we’ll adopt a new platform for the chat to solve this problem and then use the Hubspot APIs to conect to CRM and obtain customers data and open tickets to report new issues.
