@on("slack.mention")
def automation(input):
    pass

The following is an example payload which is passed in as an argument to your automation’s entrypoint:


{
    "token": "U8smw6EdyKRARkdHfKVt3qdP",
    "team_id": "T086XLXR6VB",
    "api_app_id": "A08CF7F7SJ1",
    "event": {
        "user": "U087PAPSV2L",
        "type": "app_mention",
        "ts": "1749020713.534759",
        "text": "<@U08D6SFHEV6> /act-dev create an issue on github for orchestrator, and/or client, but there's an issue where if I don't have an workspace integration and I install an automation, say I update it, if I then install the workspace integration (say slack) I can't enable it until I update it and then enable in",
        "channel": "C08PDQ8NYAU"
    },
    "type": "event_callback",
    "$blocks.config.values": {
        "additional_instructions_prompt": ""
    }
}

Fields

token
object

The Slack webhook token

team_id
object

The Slack team id

api_app_id
object

The Slack app id

event
object

The Slack event object

type
string

The Slack type.

$blocks.config.values
object

Internal Blocks config values.