Using Docker
Make sure you have changed in file endpoints.yml
row 14 from url: "http://localhost:5055/webhook"
to be url: "http://actions:5055/webhook
docker compose build
docker compose up
without showing terminal logs
docker compose up -d
wait for 5 - 10 seconds to make sure the program already running properly
docker compose down
host: localhost:5002
POST /webhooks/rest/webhook
{
message: string
}
[
{
"recipient_id": "default",
"text": string
}
]
setting up in endpoints.yml
then uncoment this row
action_endpoint:
url: "http://localhost:5055/webhook"
for running, need two terminal which are run
--debug
means for developoing purposes
rasa shell --debug
rasa run actions
for interactive mode
rasa interactive
if you are running on the docker, please change manually the host in
endpoints.yml
add your classes on actions/actions.py
, then create custom action class. Each class name must start with Action*
Don't forget to add your action item name to
domain.yml