Skip to main content

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

GitHub

Project details


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 details)

Uploaded Source

Built Distribution

pydialogflow-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file pydialogflow-1.0.0.tar.gz.

File metadata

  • Download URL: pydialogflow-1.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

File hashes

Hashes for pydialogflow-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ecbdb6a83d8916261bed92ada90d5dd159d7ff71ae586ae635f3681fce47e33b
MD5 69610140ff605a400f558cb4554f3bd0
BLAKE2b-256 9dbde0401255fb9673763b1b71aa42d3bbeee98c95917f973186eedaab52b4cb

See more details on using hashes here.

File details

Details for the file pydialogflow-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pydialogflow-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

File hashes

Hashes for pydialogflow-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ba71662016103e7ee3f6f38917c785209ef6703bff50d824bcf68a7e4fff16
MD5 4b15dcad9b609d0ad2fe227b6a574736
BLAKE2b-256 f6ac8e2cf22f7945c9502902a34853f725f43855f32d639f2240e03458bc07a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page