DialogFlow V2beta1
1. Set up project:
1.1. Install Node.js and npm (skip if you had it already):
1.2. Install required packages:
nmp install @google-cloud/dialogflow express
1.3. Create GCP service account and export it as a .JSON file:
- Detailed guidance can be found HERE.
1.4. Paste the content of your service account .JSON file into service-account.json file.
2. Usage Guidance:
2.1. Start Node.js server:
node DialogFlow.js
2.2. API Usage:
POST http://localhost:5000/dialogflow
With request body (example):
{
"question" : "Hello!"
}
3. Documentaion:
- Can be found HERE.