> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blocks.team/llms.txt
> Use this file to discover all available pages before exploring further.

# slack.mention

```python theme={null}
@on("slack.mention")
def agent(input):
    pass
```

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

```json json theme={null}

{
    "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 agent, 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": ""
    }
}
```

```python agent.py theme={null}
def agent(input):
    token = input.get("token")
    team_id = input.get("team_id")
    api_app_id = input.get("api_app_id")
    event = input.get("event")
    slack_type = input.get("type")
    blocks_config_values = input.get("$blocks.config.values")
```

## 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

**action values**

**user** `string`

The user id that invoked the event.

**type** `string`

The event type.

**ts** `string`

The timestamp of the event.

**text** `string`

The text content of the message.

**channel** `string`

The Slack channel id.

**type** `string`

The Slack type.

**\$blocks.config.values** `object`

Internal Blocks config values.

**\$blocks.config.values properties**

**additional\_instructions\_prompt** `string`

The prompt for additional instructions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.