Skip to content

Flask-DialogFlow is a Flask extension that helps you to build DialogFlow fulfillment webhooks.

License

Notifications You must be signed in to change notification settings

istrategylabs/flask-dialogflow

 
 

Repository files navigation

Flask-DialogFlow

Flask-DialogFlow is a Flask extension that helps you to build DialogFlow fulfillment webhooks.

Installation

pip install flask-dialogflow

Flask-DialogFLow has the following dependencies:

  • Flask version 0.10 or greater

Minimal example

from flask import Flask
from flask_dialogflow import DialogFlow, Response, TextMessage

app = Flask(__name__)
dialogflow = DialogFlow(app, '/webhook')

@dialogflow.action('hello')
def square(number):
    answer = TextMessage(speech="Hi there!")
    response = Response()
    response.append(answer)
    return response

if __name__ == '__main__':
    app.run(port=PORT)

About

Flask-DialogFlow is a Flask extension that helps you to build DialogFlow fulfillment webhooks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%