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

# Slack Bot

Use this template for agents that respond to Slack events or provide always-on workspace automation.

## Use Case

* Team assistant bots.
* Alert triage.
* Scheduled updates.
* Internal workflow automation.

## Runtime Mode

Slack bots are usually daemon-style agents because they need to stay available for events.

```yaml theme={"theme":{"light":"min-light","dark":"min-dark"}}
runtime:
  lifecycle: "daemon"
```

## Required Configuration

You will typically need:

* Slack app credentials.
* Bot token or OAuth connection.
* Event routing configuration.
* A production daemon runtime.

## Development Flow

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
charm init slack-agent --template slack-bot
cd slack-agent
charm validate .
```

## Publishing Checklist

* Slack credentials are not hardcoded.
* Events are idempotent.
* The bot handles missing permissions gracefully.
* Daemon lifecycle is tested in staging before production.
