How to use custom actions?


I struggle to find out with rasa as the homepage is really not good for beginners. The rasa hompegae in version 1 I think without the rasa action servers was WAY more better as it has examples how to use everything. Now you have nothing and the homepage just tells you about the commands like rasa train and init… (roughly). But this makes it very intransparent, although because up to now nothing worked (via a arasa webchat or via a shell like the example below).

Is it only possible to use custom action via an action server? Also for command line shell?

How would I test this example on shell?

As I get:

2021-03-16 15:02:20 ERROR rasa.core.actions.action - Failed to run custom action ‘action_tell_id’. Couldn’t connect to the server at ‘http://localhost:5055/webhook’. Is the server running? Error: Cannot connect to host localhost:5055 ssl:default [Connect call failed (‘’, 5055)]

2021-03-16 15:02:20 ERROR rasa.core.processor - Encountered an exception while running action ‘action_tell_id’.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

it seems I have to start another console as an action server for shell?


If you want to use custom actions, you need to run rasa run actions in a separate shell.

Do I need to start always this rasa action server for custom actions? Also when using like a connector lie facebook or webchat?

yes man

Answer to this question is uncomment the action_endpoint section in endpoints.yml file and also check which port is used if is not 5055 then run following command for actions server
rasa run actions -p portnumber