Giter Site home page Giter Site logo

envirocar-rasa-bot's Introduction

enviroCar Rasa Bot

A bot for enviroCar android application part of Google Summer of Code 2022 project: voice command.

๐Ÿ‘‡ Prerequisites

Before installation, please make sure you have already installed the following tool:

pip install pipenv

We will use pipenv to easily manage and setup a working environment.

๐Ÿ› ๏ธ Installation Steps

Once you have cloned the project follow these steps to install:

  • Initialize a virtual environment and install dependencies via use pipenv
cd envirocar-rasa-bot
pipenv install

๐Ÿง‘โ€๐Ÿ’ป Training and Testing

  • Train bot
rasa train
  • Test bot on terminal
rasa shell
  • start rasa server and test locally
rasa run --enable-api --port 5005
  • start rasa server to use the custom channels
rasa run --credentials credentials.yml --enable-api --port 5005
  • start actions server
rasa run actions -p 5055

Once the server is up and running, test the bot directly via postman
Here's a blog to explore the rasa apis with postman

But here are some of the common apis to use:

  1. Testing the bot
    Send a POST request to a particular channel http://localhost:5005/webhooks/<channel_name>/webhook with the body. This project provides 2 channels.

    a. rest channel

    This Channel is given by the rasa itself, and we cannot add extra functionalities to it. E.g. We cannot send extra data like metadata in the request.

    b. envirocar channel

    This Channel is a custom channel created to use the extra functionalities and send extra data like metadata or some credentials in the request.

    Learn more about the Custom Channels from here
{
    "message": <your message>
}
  1. Check rasa version A GET request to http://localhost:5005/version without the body.

You could also explore the apis with postman via video.

envirocar-rasa-bot's People

Contributors

cdhiraj40 avatar devayushdubey avatar sebadro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

envirocar-rasa-bot's Issues

Enhance documentation

Description

The documentation within the README.md explains to set up everything and start the Rasa servers. However, I miss some example requests, for triggering the stories. Especially, the extra metadata, which is required for calling the Action server is hard to guess. It would be great if the documentation provided some examples for it and explain the model request and response model schema briefly.

This issue was transferred from older repository to here.

cc: @SebaDro

Setting up CI/CD for testing the assistant

Description

Even though developing a contextual assistant is different from developing traditional software, we should still follow software development best practices. Setting up a Continuous Integration (CI) and Continuous Deployment (CD) pipeline will ensure that every commit/PR is not introducing new problems or negatively impacting the performance of our assistant.

Solution

We can use GitHub Actions to run CI checks on every PR or commit. This action will train, test, and publish a summary.

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.