nesterapp / rasa-admin

An open-source alternative for Rasa-X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rasa Admin web-app (humble Rasa-X replacement)

A simple Rasa backoffice web-app for tracking your Rasa bot conversations with users.. And more.

screenshot

Features

  • Watch Bot<->users conversations
  • Send a message to user ( as Bot )

Built with

  • Frontend: React JS
  • API Backend: FastAPI, Pydantic, asyncpg

Prerequisites

Your Rasa should have an active PostgreSQL tracker store, or, if you wish to install one, see this guide. Use the same DB connection details for the next step.

Tested only with PostgreSQL.

Installation steps summary

  1. Install and run the backend API service (python).
  2. Install and run the ReactJS app.

All calls to tracker store database and to your Rasa server are handled by the backend api.

1. Install and run a local backend API service

Install API

cd api
pyenv virtualenv 3.11.3 rasa-admin-api
pyenv activate rasa-admin-api
pyenv local rasa-admin-api
pip install -e .

Configure

Copy .env.sample to .env,
then edit to provide PostgreSQL and RASA server details.

cd api
cp .env.sample .env
vim .env

Run API

If you have just tool installed:

just run

Or, if not:

uvicorn src.main:app --reload --port 5000

2. Install and run local ReactJS app

cd frontend
yarn install
yarn start

Open your browser http://localhost:3000

Upcoming

  • Human hand-off — ability to pause and resume bot-user conversation during hand-off.
  • Auto refresh

Feel free to suggest features or submit PRs!

License

MIT License

Nester (c) 2024

About

An open-source alternative for Rasa-X


Languages

Language:Python 36.3%Language:JavaScript 33.2%Language:CSS 16.4%Language:HTML 9.0%Language:Dockerfile 2.8%Language:Just 2.2%