notice
This is documentation for Rasa Action Server Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).
Running a Rasa SDK Action Server
There are two ways to run the action server, depending on whether you
are using an environment with
rasa
installed or not:
If rasa
is installed, you can run the action server using a rasa
command:
Alternatively you can make your assistant listen on a specific address using the SANIC_HOST
environment
variable:
If rasa
is not installed, you can run the action server directly as a python module:
Running the action server directly as a python module allows for SANIC_HOST
too:
New in 2.6
Support for the SANIC_HOST environment variable was added.
Using the command above, rasa_sdk
will expect to find your actions
in a file called actions.py
or in a package directory called actions
.
You can specify a different actions module or package with the
--actions
flag.
The full list of options for running the action server with either command is:
Changed in 2.3.0
The --log-file
argument was added.