Coder Social home page Coder Social logo

just-ai / jaicf-template Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 1.0 84 KB

JAICF bot template ready for Heroku deployment

Home Page: https://framework.just-ai.com

Kotlin 100.00%
kotlin kotlin-server ktor-server conversation conversational-bots dialogflow heroku heroku-server

jaicf-template's Introduction

JAICF Bot template

Here is a ready to use JAICF bot template that can be run locally or deployed to Heroku server and connected to Google Assistant.

How to use

You can use this template locally on your PC or deploy it on Heroku server.

Run locally

To run this project locally just create a new project from source codes in IntelliJ IDEA and run Server.kt. This will start the server on port 8080.

Obtain global URL

You can then propagate your local instance to the Internet using ngrok. And then run ngrok http 8080 in the terminal to obtain public URL.

Copy this URL then and use it as a fulfillment URL in your Dialogflow agent (see below).

Deploy to Heroku

Just click on the button below to deploy this template on Heroku server.

Deploy

  1. After deployment open the app and copy the URL of the app to clipboard.
  2. Then go to Dialogflow, create a new agent and setup a fulfillment URL.
  3. Enable fulfillment for every intent in you agent.
  4. Click on Google Assistant link on the left side bar to create a new Google Assistant Action connected to your Dialogflow agent.
  5. That's it! You now can start the app and see how you server responds with some responses.

How to upload code changes to Heroku

Please make the next steps to upload your changes on Heroku.

Install git and Heroku CLI. Run a terminal (or console) on your machine and type

heroku login
heroku git:clone -a <your Heroku application name>
cd <your Heroku application name>
git remote add origin https://github.com/just-ai/jaicf-template
git pull origin master

You have to do these steps only once.

Once you are ready to upload your changes to Heroku, just type

git add .
git commit -am "some comments"
git push

Heroku will build and deploy your changes automatically.

Community

You're welcome to join a Slack community to share your ideas or ask questions regarding the JAICF usage.

jaicf-template's People

Contributors

denire avatar morfeusys avatar nikvoloshin avatar veptechno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

dhivyathamu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.