Skip to content

chatfirst/adapter_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Adapter for Chatfirst Platform

This project contains simple Flask application that can be used as adapter for Chatfirst Platform

Step 1: Setup and deploy

  • Use gunicorn to start the app locally
pip install -r requirements.txt
gunicorn -w 3 demoapp
  • The application is ready to be deployed to Heroku
heroku git:remote -a <your_heroku_app_name>
git push heroku master

Step 2: Use adapter calls in scenario

  • Use action parameter in transition tags
<transition input="*" next="Start" action="https://<your_heroku_app_name>.herokuapp.com/">Some text</transition>
  • Be sure that endpoint returns ActionResponse as json otherwise the platform rolls back to previous state showing error message

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages