Dialogflow Tips for Non Programmers
Better Dialogflow ES Bots
Slot filling
Context Lifespan
Conversation Design
Bot frameworks
Machine Learning

Client side JavaScript apps (Angular, React, Ionic etc) and Dialogflow REST API v2

I got a question from a reader:

Can I use a client side JavaScript app built using Ionic with Dialogflow’s v2 REST API?

It could have also been Angular, or React, or one of the other bajillion other JavaScript frameworks. 🙂

The answer: No

The workaround

You need to use the concept of Dialogflow REST API middleware

1 The middleware code runs on a server

2 You need to use a server side programming language such as NodeJS

3 You will save the service account JSON file to the server folder where your code is located (or some other folder you can access from the code)

4 You will set up a ‘relay’ between your JS app and your Dialogflow agent

5 You will communicate with your Dialogflow agent by using the REST API

Dialogflow Tips for Non-Programmers

Avoid these 4 Dialogflow ES features

No code power tools to speed up the Dialogflow bot building process

Should non-programmers start with Dialogflow ES or Dialogflow CX?

Airtable vs Google Sheets: which is a better database for Dialogflow?