Actions
When a Rasa assistant calls a custom action, it sends a request to the action server. Rasa only knows about whatever events and responses come back in the request response; it's up to the action server to call the correct code based on the action name that Rasa provides.
To better understand what happens when Rasa calls a custom action, consider the following example:
You have deployed a weather bot to both Facebook and Slack. The user
can ask for the weather with the intent ask_weather
. There is a slot location
which will be filled if the user has specified a location.
The action action_tell_weather
will use an API to get the weather forecast ,
using a default location if the user doesn't specify one.
The action will set the temperature
to the maximum temperature of the weather forecast.
The message returned will differ according to the channel they are using.