> Index of all Nori docs pages for agents: https://docs.noriagentic.com/llms.txt · Ask a question: https://noriagentic.com/ask

# How to run Claude Code on a schedule from Slack

Create an **On a schedule** automation in Nori, set **Run with** to Claude Code, and deliver it to a **Slack thread** in your channel. At each scheduled time Nori starts Claude Code on a fresh cloud machine with your repositories, posts the run in a new thread, and anyone can reply in that thread to keep working with the same agent.

## Prerequisites

- A Nori organization with Claude Code connected under **Integrations → Token providers** (a Claude subscription or an Anthropic API key). See [providers and models](https://docs.noriagentic.com/sessions/guides/providers-and-models/).
- The [GitHub App](https://docs.noriagentic.com/sessions/guides/github/) installed, and the repositories the job needs added under **Settings → Environment**.
- The [Nori Slack app](https://docs.noriagentic.com/sessions/guides/slack/) installed, and the bot invited to the channel, for example `/invite @Jiro` in `#eng-updates`.
- The channel ID: in Slack, open the channel’s details; the ID (it starts with `C`) is at the bottom of the **About** tab.
- Admin rights, or an admin to approve. A member’s automation waits for admin approval before it runs.

## Steps

1. Open **Automations** in the dashboard sidebar and choose **New automation**.
2. Fill in **Name**, for example `Weekday CI report`.
3. Under **Starts when**, choose **On a schedule**. Pick **Daily**, **Weekly**, or **Custom** under **Schedule** and set the time. With **Custom**, enter a five-field cron expression such as `0 9 * * 1-5`. Set **Timezone** to an IANA zone such as `America/New_York`.
4. Write the task in **Instructions** (see the example below).
5. Under **Run with**, choose Claude Code and, if you want, an exact model. Or pick a [custom agent](https://docs.noriagentic.com/sessions/guides/custom-agents/) that uses Claude Code.
6. Under **Deliver to**, choose **Slack thread** (**Chat thread**, then **Post in** → Slack, when Discord is also connected) and paste the ID into **Slack Channel ID**. Leave **Channel post** on **Standard header**, or choose **Agent’s reply** to make the agent’s reply the channel post.
7. Choose **Create** (admins) or **Submit for approval** (members).

### Or ask from Slack

Mention the bot in the channel and describe the schedule. The agent creates the automation with `nori-sessions triggers create`, and failure notices go to the channel the request came from:

```text
@Jiro create an automation that runs Claude Code every weekday at 09:00
America/New_York in this channel: summarize yesterday's failed CI runs in
the api repository.
```

## Example

The same automation from the CLI:

```bash
nori-sessions triggers create \
  --name "Weekday CI report" \
  --type cron \
  --cron-schedule "0 9 * * 1-5" \
  --timezone America/New_York \
  --agent-provider claude \
  --slack-channel-id C0123456789 \
  --prompt "In the api repository, list yesterday's failed CI runs on main.
Group them by likely root cause and link each run. Do not change code or
rerun jobs. If CI data is unavailable, report the error and stop."
```

The run’s thread opens with a header naming the automation, schedule, and agent; the agent’s reply follows. Reply in the thread to ask for a fix, and Claude Code continues in the same session.

## Verify it works

1. Open the automation and choose **Run now** (CLI: `nori-sessions triggers test --id <id>`). A thread appears in the channel within a minute or two, or the run waits in the [queue](https://docs.noriagentic.com/sessions/guides/machines-and-capacity/#the-queue-page) if every machine is busy.
2. Check that the thread startup card names Claude Code.
3. Under the automation’s **Recent activity**, confirm **Succeeded** and read **Last response**.
4. If nothing appears, check **Review requests** on the Automations page: a member’s automation is not active until an admin approves it.

For every option, including retries, time limits, and failure notices, see [automations](https://docs.noriagentic.com/sessions/guides/triggers/).
