Flask webhook for DialogFlow
- Install Flask, ngrok and Anaconda
- Create an Anaconda environment
conda create --name web
- Activate Anaconda environment
conda activate web
- Install project dependencies
yes y | (conda install matplotlib && conda install numpy && conda install pandas && conda install statsmodels && pip install pmdarima && pip install cloudinary && pip install blynklib)
- Setup Flask project
export FLASK_APP=webhook.py
flask run
- Run ngrok server
./ngrok http 5000
- Copy the forwarding https address from ngrok to DialogFlow's Fulfillment Webhook url