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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get member presence

> Get a Slack member's current active or away presence.

`slack.getMemberPresence` reads Slack's current aggregate presence for a member.

## Example

```ts automations/get-member-presence.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"

export default automation("Get member presence", () => {
  onDashboardRun({ title: "Get member presence" })

  slack.getMemberPresence({ userId: "U01234567" })
})
```

## Inputs

| Input    | Type     | Required | Description                                        |
| -------- | -------- | -------- | -------------------------------------------------- |
| `userId` | `string` | No       | Member to inspect; omit for the authenticated bot. |

## Output

Returns `presence` as `active` or `away`. Requests for the authenticated bot may also include connection, activity, and automatic or manual away details. Requires `users:read`.
