# In Slack

Use /nairi slash commands to bind an agent to a channel, switch modes, and inspect running tasks.



Slack uses native slash commands. Type `/nairi` in any channel where the bot is installed and Slack will surface the subcommands inline.

All `/nairi` responses are **ephemeral**: only the user who ran the command sees them. Nothing is posted to the channel for other members.

## Available commands [#available-commands]

| Command                      | What it does                                                                                               |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `/nairi help`                | Print the full command reference.                                                                          |
| `/nairi agents`              | List every agent in your org. Use this to find the `agent_id` you want.                                    |
| `/nairi agent`               | Show which agent is currently the default for this channel (if any).                                       |
| `/nairi agent=<agent-id>`    | Set the default agent for this channel. Binds the channel so future `@Nairi` mentions route to this agent. |
| `/nairi mode=<ask\|execute>` | Set the default execution mode for this channel. See [Modes](#modes) below.                                |
| `/nairi ls`                  | List active tasks in this channel only.                                                                    |
| `/nairi lsa`                 | List active tasks across every channel in this workspace.                                                  |

## Channel binding [#channel-binding]

Slash commands set per-channel defaults. The most common flow is:

1. `/nairi agents` to see the IDs.
2. `/nairi agent=ag_…` to bind the channel to one of them.
3. `@Nairi <prompt>` to start using it.

A channel can be bound to one agent at a time. To switch, just rerun `/nairi agent=<new-id>`.

You can also override the bound agent for a single message by tagging it inline: `@Nairi [agent=ag_…] <prompt>`.

## Modes [#modes]

* **`ask`**: the agent confirms before running irreversible or destructive actions (default for new channels).
* **`execute`**: the agent runs without asking.

Set per channel with `/nairi mode=ask` or `/nairi mode=execute`.

## Inspecting tasks [#inspecting-tasks]

* `/nairi ls` shows tasks created in the current channel.
* `/nairi lsa` shows tasks across the whole workspace.

Both list queued, active, and recently idle tasks with the agent, the thread link, and a status. Tasks are scoped to the workspace, so a user in another Slack workspace won't see anything here.

## Related [#related]

* [Connecting Nairi to Slack](/help/integrations/slack)
* [Configure in Discord](/help/configuring-the-agent/discord)
* [Communicating with agents in Slack & Discord](/help/communicating-with-agents/slack-and-discord)

***

*Can't find what you're looking for? Email [support@nairi.ai](mailto:support@nairi.ai).*
