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

# Slack: Find Message

Search for messages in Slack using the search.messages API (requires user token). Supports Slack search modifiers like in:#channel, from:@user, has:link. Ideal for: message lookup, audit trails, content search, finding specific alerts.

![Slack: Find Message logo](https://ai-icon.b3.fun/logo/slack)
Catalog action Integrations slack

Search for messages in Slack using the search.messages API (requires user token). Supports Slack search modifiers like in:#channel, from:@user, has:link. Ideal for: message lookup, audit trails, content search, finding specific alerts.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `slack-find-message` |
| Category | Integrations |
| Connector | `slack` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `slack`, `messaging`, `notification`, `read`, `chat` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | `string` | Yes | Search query \(supports Slack search modifiers like in:#channel, from:@user\) |
| `sort` | `string` | No | Sort by: timestamp or score \(default: timestamp\) |
| `sort_dir` | `string` | No | Sort direction: asc or desc \(default: desc\) |
| `count` | `number` | No | Number of results per page \(default: 20, max: 100\) |
| `page` | `number` | No | Page number \(default: 1\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | Yes | - |
| `data` | `object` | No | - |

## Examples

**Workflow node**

```json
{
  "type": "slack-find-message",
  "payload": {
    "query": "status:open"
  },
  "children": [],
  "connector": {
    "type": "slack",
    "id": "conn_slack"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/slack-find-message/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "query": "status:open"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.