A simple python-based open source implementation of dialogflow-gateway HTTP API for Dialogflow.
Originally developed to work with Dialogflow Web UI.
- Python>=3.7
pip install -r requirements.txt
- Setup the credentials in
main.py
- Run the server:
python main.py
- Expose it to Internet. (Example:
ngrok http 8000
)
- Optional:
gcloud app create
(Only do this unless there's no default service) gcloud app deploy app.yaml
(Set theservice
paramter inapp.yaml
to deploy in addition to the default service)
You can now use the deployed server as the API_URL
for the Web UI.
- To retrieve agent details:
/get_dialogflow_agent
(Request-Response Format) - To get Dialogflow response for a query:
/detect_intent
(Request-Response Format)