A quick and dirty react app to test training phrases and intents with Google Dialogflow.
This project was bootstrapped with Create React App.
- Run
yarn install
- Create the
/src/config/config.json
file - Paste the following content into the config.json file
{
"dfEditIntentURL": "",
"dfTrainingURL": "",
"dfWebdemoURL": "",
"googleSheetURL": ""
}
dfEditIntentURL
: Simply log into dialogflow and edit an existing intent. The URL will look something like the following:https://dialogflow.cloud.google.com/#/agent/{AGENTID}/editIntent/
. Remove the id of the intent at the end of the URLdfTrainingURL
: Simply log into dialogflow and open the training. Copy and paste the URL.dfWebdemoUrl
: Open the dialogflow web demo (Login Dialogflow > Integrations > Webdemo), send a request and check for the URL in the Network Tab of your browser. Copy the URL and paste it in here. I guess this should be replaced with an actual cloud console url?- Create a public URL for your Google Sheet, as described here: https://github.com/jsoma/tabletop#1-publishing-your-google-sheet
- Fill the corresponding information in
config.json
- Run
yarn start
for development / testing - Run
yarn build
and deploy :)
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.