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

<CodeGroup>
  ```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")
  ```
</CodeGroup>

## Fields

<ResponseField name="token" type="object">
  The Slack webhook token
</ResponseField>

<ResponseField name="team_id" type="object">
  The Slack team id
</ResponseField>

<ResponseField name="api_app_id" type="object">
  The Slack app id
</ResponseField>

<ResponseField name="event" type="object">
  The Slack event object

  <Expandable title="action values">
    <ResponseField name="user" type="string">
      The user id that invoked the event.
    </ResponseField>

    <ResponseField name="type" type="string">
      The event type.
    </ResponseField>

    <ResponseField name="ts" type="string">
      The timestamp of the event.
    </ResponseField>

    <ResponseField name="text" type="string">
      The text content of the message.
    </ResponseField>

    <ResponseField name="channel" type="string">
      The Slack channel id.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="type" type="string">
  The Slack type.
</ResponseField>

<ResponseField name="$blocks.config.values" type="object">
  Internal Blocks config values.

  <Expandable title="$blocks.config.values properties">
    <ResponseField name="additional_instructions_prompt" type="string">
      The prompt for additional instructions.
    </ResponseField>
  </Expandable>
</ResponseField>
