Rasa

3.6.21 · active · verified Thu Apr 16

Rasa is an active open-source machine learning framework (version 3.6.21) designed to automate text and voice-based conversations. It provides tools for Natural Language Understanding (NLU) and dialogue management, enabling developers to create contextual chatbots and voice assistants that can integrate with various platforms like Slack and Facebook. The project maintains a regular release cadence with frequent updates.

Common errors

Warnings

Install

Imports

Quickstart

The standard way to get started with Rasa is through its command-line interface. This quickstart initializes a new project, trains a basic model, and then allows interactive conversation with the bot in the shell. Custom actions require running a separate action server.

import os

# Ensure you are in an empty directory for this quickstart
# In a real project, replace 'tutorial' with your desired template or omit for default
# os.system('rasa init --template tutorial') 
# os.system('rasa train')
# os.system('rasa shell')

print("To start a new Rasa project, open your terminal and run:")
print("1. rasa init --template tutorial")
print("2. cd <your-project-name>")
print("3. rasa train")
print("4. rasa shell")
print("For custom actions, run 'rasa run actions' in a separate terminal after step 3.")

view raw JSON →