Skip to content

Instantly share code, notes, and snippets.

@DustinAlandzes
Created December 16, 2018 22:00
Show Gist options
  • Save DustinAlandzes/8a06e4169acb4fc46a311ddc0612175d to your computer and use it in GitHub Desktop.
Save DustinAlandzes/8a06e4169acb4fc46a311ddc0612175d to your computer and use it in GitHub Desktop.
from flask import Flask
app = Flask(__name__)
@app.route('/api/intent', methods=['POST'])
def analysis():
'''
Use this to create a new intent. Accepts intent as a string
'''
return 'Hello, World!'
@app.route('/api/intent/train', methods=['POST'])
def analysis():
'''
Accepts intent string and training data in an array format.
'''
return 'Hello, World!'
@app.route('/api/analysis', methods=['GET'])
def analysis():
'''
Accepts message and returns interpreter data.
Use rasa_core.agent and rasa_core.interpreter for this purpose.
'''
return 'Hello, World!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment