Dialogflow API support for Python
Project description
PyDialogflow for HTTPS server
© 2018 SiLeader.
features
- PyAlexa (pyalexa-lambda) like syntax
- simple system
usage
use Flask
from flask import Flask, request, jsonify
import dialow
app = Flask(__name__)
# Alexa like syntax
@app.route("/dialogflow/endpoint", methods=["POST"])
def dialogflow_endpoint():
req = dialow.Request(request.json)
if request.type == "IntentRequest":
res = dialow.Response()
res.output_speech(text="Dialogflow Test")
return jsonify(res.response)
License
Apache License 2.0
See LICENSE
for Alexa
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydialogflow-1.0.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for pydialogflow-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ba71662016103e7ee3f6f38917c785209ef6703bff50d824bcf68a7e4fff16 |
|
MD5 | 4b15dcad9b609d0ad2fe227b6a574736 |
|
BLAKE2b-256 | f6ac8e2cf22f7945c9502902a34853f725f43855f32d639f2240e03458bc07a5 |