Skip to content

enviroCar/envirocar-rasa-bot

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published