Home / DialogFlow ES / Exposing the Dialogflow (API.AI) Client Access Token on your client side script
DialogFlow ES

Exposing the Dialogflow (API.AI) Client Access Token on your client side script

The Dialogflow Client Access Token was a part of the v1 API which has now been deprecated. You cannot use the client access token for the Dialogflow integration anymore.

<— End of article —>


This website contains affiliate links. See the disclosure page for more details. 
"The magic key I needed as a non-programmer"

The custom payload generator was the magic key I needed (as a non-programmer) to build a good demo with rich responses in DialogFlow Messenger. I've only used it for 30 minutes and am thrilled. I've spent hours trying to figure out some of the intricacies of DialogFlow on my own. Over and over, I kept coming back to Aravind's tutorials available on-line. I trust the other functionalities I learn to use in the app will save me additional time and heartburn.

- Kathleen R
Cofounder, gathrHealth
"Much clearer than the official documentation to be honest"

Thanks a lot for the advice (of buying and following your videos)! They helped a lot indeed. Everything is very clear when you explain, much clearer than the official documentation to be honest 🙂

Neuraz T
Review for Learn Dialogflow CX
"I will strongly recommend this course because even I can learn how to design chatbot (no programming background)"

I think Aravind really did a great job to introduce dialogflow to people like me, without programming background. He organizes his course in very clear manner since I have been a college professor for 20 years. It is very easy for me to recognize how great Aravind’s course is! Very use-friend and very easy to follow. He doesn’t have any strong accent when he gives the lectures. It is so easy for me to understand. Really appreciate it.

Yes, I will strongly recommend this course because even I can learn how to design chatbot (no programming background) after studying Avarind’s course, you definitely can!

Ann Cai
Review for Learn Dialogflow ES

Similar Posts

  • A great article, thanks. Having just started using Dialog flow and having a couple of conversations with the team, my feeling is that w shouldn’t be calling it directly from the client (which was the initial approach we’ve taken). It just doesn’t feel secure/robust.

  • Great point! Do you see any value in, for instance, obfuscating the JavaScript containing the token, while also using a domain lock function to prevent the obfuscated code from running elsewhere ? I know it’s inherently unsafe, but feels like a good compromise to me.

    • Hi Gabriel,

      My understanding, based on reading a comment thread on the old API.AI forum, is that these techniques don’t work either. Unfortunately, I am not able to locate that comment thread. However, if you can create a web page which demonstrates how the domain lock function works (plus a tutorial explaining how you accomplished it), I am happy to update my post with a link to your tutorial.

    • Hi Gabriel,

      Please provide a link to your website so I can verify what you have said in your last comment re: JavaScript obfuscation, and I will be happy to add it. There is insufficient detail in your comment (a tutorial would have helped a lot) for it to actually benefit the person reading this article.