-
python3 -m venv ./venv - Create a virtual environment
-
source ./venv/bin/activate - Activate the virtual environment
-
python3 -m pip install -r requirements.txt - Install dependencies
-
rasa train - # Train a model
-
rasa run actions - # Run the action server - http://0.0.0.0:5055
-
rasa shell - # Talk to the chatbot on the command line
-
/stop - # Stop the conversation - on the command line
POST http://localhost:5055/webhook
Example payload:
{
"next_action": "action_name",
"tracker": {
"sender_id": "user_id",
"slots": {
"slot_name": "slot_value"
},
"latest_message": {
"text": "latest_message_from_user"
}
}
}