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

# Scheduled automation

> Generate content daily, weekly or monthly from repository and Linear activity in a lookback window

Schedules generate content at a fixed cadence from activity over a lookback window, which suits regular output such as weekly progress posts, monthly changelog roundups or a daily social image during a launch. You manage them under **Automation > Schedules** in the dashboard or with `notra schedules` in the [CLI](https://www.usenotra.com/docs/devtools/cli.md).

You can also manage them through the `/v1/schedules` API.

## How schedules work

**1. Schedule configuration**

Choose daily, weekly or monthly, plus the time of day in UTC.

**2. Automatic trigger**

At the scheduled time Notra starts a run for the schedule.

**3. Activity analysis**

The run collects pull requests, commits and releases from the selected repositories inside the lookback window, and when Linear is connected it also collects completed Linear work.

**4. Content generation**

Notra writes the content in the selected brand identity, or skips the run if there is nothing worth writing about.

**5. Review**

The result appears under **Content** as a draft, or as a published post when auto-publish is on.

## Schedule frequencies

> [tab] Daily
>
> Runs every day at a set time.
>
> Configure:
>
> * Hour (0-23, UTC)
> * Minute (0-59)
>
> Use it for teams that ship every day, daily social posts during a launch or end-of-day changelog entries.

> [tab] Weekly
>
> Runs once a week on a set day and time.
>
> Configure:
>
> * Day of week (0-6, where 0 is Sunday)
> * Hour (0-23, UTC)
> * Minute (0-59)
>
> Use it for Monday changelog roundups, Friday LinkedIn updates or a weekly blog post about what shipped.
>
> ```json Weekly schedule theme={"system"}
> {
>   "frequency": "weekly",
>   "dayOfWeek": 1,
>   "hour": 9,
>   "minute": 0
> }
> ```

> [tab] Monthly
>
> Runs once a month on a set day and time.
>
> Configure:
>
> * Day of month (1-31)
> * Hour (0-23, UTC)
> * Minute (0-59)
>
> Use it for monthly product update blog posts, end-of-month recaps or monthly changelog newsletters.
>
> > [!NOTE]
> >
> > The schedule runs only on months that have the chosen day. Pick a day between 1 and 28 if you need a run every month.

## Lookback windows

Each schedule analyzes activity over one of five windows:

**current\_day** `string`

From midnight UTC today until the run

**yesterday** `string`

The previous calendar day (midnight to midnight UTC)

**last\_7\_days** `string` (default: true)

The past 7 days (default)

**last\_14\_days** `string`

The past 14 days

**last\_30\_days** `string`

The past 30 days

> [!NOTE]
>
> Match the window to the cadence: `yesterday` or `current_day` for daily schedules, `last_7_days` for weekly, `last_30_days` for monthly.

## Supported output types

> [card] Changelog entry
>
> A short summary of what shipped and why it matters, with auto-publish support.

> [card] Blog post
>
> A long-form article that explains the feature in depth, with auto-publish support.

> [card] LinkedIn post
>
> A professional update to share with your network, which Notra saves as a draft.

> [card] Tweet
>
> A short announcement for X, which Notra saves as a draft.

> [card] Image
>
> A brand-matched social image generated from repository activity, which Notra saves as a draft.

## Sources

A schedule needs at least one GitHub repository, which you pick in the **Sources** step of the dialog. When a Linear integration is connected and enabled, every schedule run includes its completed work next to the selected repositories, and Linear shows up in the sources column of the schedule list.

## Create a schedule

**1. Open Automation > Schedules**

Click **New schedule**.

**2. Name your schedule**

Use a descriptive name such as "Weekly LinkedIn update", up to 120 characters.

**3. Select sources**

Choose one or more connected GitHub repositories.

**4. Set the cadence**

Choose daily, weekly (pick a day) or monthly (pick a day of month), plus the time. Times use UTC, and the summary card also shows the next run in your local timezone.

**5. Choose the lookback window**

Choose how far back Notra analyzes activity.

**6. Choose the content format**

Pick a changelog entry, blog post, LinkedIn post, tweet or image.

**7. Pick a brand identity and auto-publish**

Use the default brand identity or pin one. Auto-publish is available for changelogs and blog posts.

**8. Save**

New schedules start enabled, and Notra rejects a schedule that duplicates an existing one ("Schedule already exists").

### Through the API

The same schedule through the public API (scope `schedules.write`):

```bash curl theme={"system"}
curl -X POST https://api.usenotra.com/v1/schedules \
  -H "Authorization: Bearer $NOTRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Weekly LinkedIn update",
    "sourceType": "cron",
    "sourceConfig": {
      "cron": { "frequency": "weekly", "dayOfWeek": 1, "hour": 9, "minute": 0 }
    },
    "targets": { "repositoryIds": ["repo_123"] },
    "outputType": "linkedin_post",
    "outputConfig": { "brandVoiceId": "brand_abc" },
    "lookbackWindow": "last_7_days",
    "enabled": true,
    "autoPublish": false
  }'
```

```typescript fetch theme={"system"}
const response = await fetch("https://api.usenotra.com/v1/schedules", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.NOTRA_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    name: "Weekly LinkedIn update",
    sourceType: "cron",
    sourceConfig: {
      cron: { frequency: "weekly", dayOfWeek: 1, hour: 9, minute: 0 },
    },
    targets: { repositoryIds: ["repo_123"] },
    outputType: "linkedin_post",
    outputConfig: { brandVoiceId: "brand_abc" },
    lookbackWindow: "last_7_days",
    enabled: true,
    autoPublish: false,
  }),
});
const { schedule } = await response.json();
```

`targets.repositoryIds` are GitHub integration IDs and `targets.linearIntegrationIds` are Linear integration IDs, both from `GET /v1/integrations`. Set at least one of them; a schedule can read from GitHub, Linear or both. If you leave out `linearIntegrationIds`, runs read every enabled Linear integration, so send `linearIntegrationIds: []` for a GitHub-only schedule. `dayOfWeek` is required for weekly schedules and `dayOfMonth` for monthly ones, while `outputType` is one of `changelog`, `blog_post`, `linkedin_post`, `twitter_post` or `image`. `lookbackWindow` defaults to `last_7_days` and `autoPublish` to `false`. You list, update and delete schedules with `GET /v1/schedules?repositoryIds=repo_123`, `PATCH /v1/schedules/{scheduleId}` and `DELETE /v1/schedules/{scheduleId}`, and a duplicate configuration returns `409`.

`PATCH` only changes the fields you send, so `{ "enabled": false }` pauses a schedule and keeps everything else. `targets` and `outputConfig` merge field by field, `sourceConfig.cron` is replaced as a whole, and `null` clears an `outputConfig` field such as `instructions`.

## Content generation context

Each run builds its prompt from:

* **Time range**: the lookback window, computed in UTC at run time
* **Repositories**: merged pull requests, commits and releases across all selected repositories
* **Linear**: completed issues from every enabled Linear integration
* **Brand identity**: tone, audience, company details and custom instructions

## Cron expressions

Notra derives a cron expression from your configuration and evaluates it in UTC:

```bash Daily theme={"system"}
# Daily at 09:00 UTC
0 9 * * *
```

```bash Weekly theme={"system"}
# Every Monday at 09:00 UTC
0 9 * * 1
```

```bash Monthly theme={"system"}
# 1st of every month at 09:00 UTC
0 9 1 * *
```

## Run a schedule now

Open the row menu on the Schedules page and choose **Run now**, which uses the current time and the configured lookback window. A weekly schedule run on a Tuesday analyzes the 7 days before that Tuesday, not the days before the scheduled Monday. **Run now** needs an enabled schedule and an active subscription.

## Managing schedules

The Schedules page splits schedules into **Active** and **Paused** tabs. From the row menu you can:

* **Edit**: change the name, sources, cadence, lookback window, format, brand identity or auto-publish, with timing changes applying from the next run.
* **Pause** or **Enable**: turn the schedule off or on without deleting it.
* **Run now**: start a run immediately.
* **Delete**: remove the schedule.

If a schedule's repository integration was removed, you cannot re-enable the schedule until you edit it and pick another repository.

## Monitoring

* **Content** shows every generated post, and Notra groups posts from a schedule into one collection per run.
* **Settings > Notifications** can email you when Notra creates scheduled content, when generation fails and when Notra skips a run because there was nothing worth writing about.
* **Then notify** in the automation editor announces new content from that automation once a run succeeds. Slack posts to the notification channel picked under **Integrations > Slack**, and email goes to the workspace owners even when the Notifications setting is off.
* If the run hits GitHub's API rate limit, Notra waits 30 minutes and retries up to three attempts before marking the run as failed.
* If your plan quota for the format is used up and no AI credits are available, the run stops and workspace owners receive an email.

## Common use cases

> [card] Weekly product updates
>
> A LinkedIn post every Monday summarizing the previous week.

> [card] Monthly changelogs
>
> A changelog roundup on the 1st of each month, auto-published.

> [card] Daily launch content
>
> A daily tweet or image during a launch week from `yesterday`'s activity.

> [card] Monthly blog post
>
> A long-form recap on the last 30 days for customers.

## Best practices

> [accordion] Match frequency to activity
>
> Pick a cadence that matches how often you ship. Teams that ship daily can use daily or weekly schedules, while teams with monthly releases should schedule monthly.

> [accordion] Align lookback with frequency
>
> * Daily schedule: `current_day` or `yesterday`
> * Weekly schedule: `last_7_days`
> * Monthly schedule: `last_30_days`
>
> A window much longer than the cadence repeats the same activity in consecutive posts.

> [accordion] Think in UTC
>
> Schedule times are UTC, and the summary card in the dialog shows the next run in your local timezone so you can check it.

> [accordion] One format per schedule
>
> Create separate schedules for separate outputs, for example a weekly changelog for customers and a weekly LinkedIn post for your network.

> [accordion] Review generated content
>
> Treat scheduled content as drafts and keep auto-publish off until you trust the output for that format.

## Troubleshooting

> [accordion] Schedule not running
>
> Check that:
>
> * The schedule is in the Active tab, not Paused
> * Your subscription is active and the format's quota (or AI credits) is not used up
> * The repository integration still exists and is enabled
>
> Use **Run now** to confirm the schedule can produce content at all.

> [accordion] Run skipped or no content
>
> Check that:
>
> * The repositories have activity inside the lookback window
> * The repositories are still connected and accessible
> * Linear is enabled if you expect issues to be included
>
> Notra records runs with nothing meaningful to say as skipped, and you can enable the Skipped notification to get an email about them.

> [accordion] Content quality issues
>
> Check that:
>
> * The lookback window fits your activity level
> * The brand identity has a tone, audience and custom instructions
> * You are analyzing the right repositories
>
> Adjust the window or the brand identity's custom instructions and run the schedule again.

## Next steps

> [card] [Event-based automation](https://www.usenotra.com/docs/automation/event-based.md)
>
> Trigger content generation from GitHub releases and pushes

> [card] [Brand voice](https://www.usenotra.com/docs/concepts/brand-voice.md)
>
> Customize tone and style for scheduled content


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.