Custom Actions

Rasa Custom Actions Documentation

You are viewing documentation for our open source project which is maintained by the community. If you want to get started building assistants with Rasa please check out our latest documentation here.

For details on how to implement a custom action, see the SDK documentation. Any custom action that you want to use in your stories should be added into the actions section of your domain.

When the dialogue engine predicts a custom action to be executed, it will call the action server, with the following information:

{
    "next_action":"string",
    "sender_id":"string",
    "tracker":{
        "conversation_id":"default",
        "slots":{},
        "latest_message":{},
        "latest_event_time":1537645578.314389,
        "followup_action":"string",
        "paused":false,
        "events":[],
        "latest_input_channel":"rest",
        "active_loop":{},
        "latest_action":{}
    },
    "domain":{
        "config":{},
        "session_config":{},
        "intents":[],
        "entities":[],
        "slots":{},
        "responses":{},
        "actions":[],
        "forms":{},
        "e2e_actions":[]
    },
    "version":"version"
}

Your action server should respond with a list of events and responses:

{
    "events":[{}],
    "responses":[{}]
}

We collect and process your personal information for the following purposes: Visitor Statistics, Browsing Behavior. Learn more...