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

# Reminders

> Automatically nudge pending approvers, ticket assignees, and assignees of tickets at risk of breaching an SLA on a schedule until they act or reminders run out.

Reminders automatically nudge people who have not acted on work assigned to them. Ravenna handles the follow-ups and delivers each reminder privately to the recipient. There are three types:

* **Approval reminders** nudge approvers who have not yet responded to a pending [approval round](https://docs.ravenna.ai/documentation/tickets/approvals/rounds.md).
* **Assignment reminders** nudge the current assignee of a ticket that has been sitting in an open state.
* **SLA reminders** nudge the current assignee of a ticket that is at risk of breaching an [SLA](https://docs.ravenna.ai/documentation/measure/slas.md).

All three are configured per workspace in **Settings** → **Workspace** → **Automation**. Each workspace owns its own policies, so IT and HR can run on different cadences.

Admins can also read and update reminder policies through Copilot or an MCP client using the `list_reminder_policies` and `configure_reminder_policy` [tools](https://docs.ravenna.ai/documentation/automate/mcp/tools.md#reminders).

> [card] [Approval reminders](https://docs.ravenna.ai/documentation/tickets/reminders.md#approval-reminders)
>
> Nudge approvers who have not yet responded to a pending approval round.

> [card] [Assignment reminders](https://docs.ravenna.ai/documentation/tickets/reminders.md#assignment-reminders)
>
> Nudge the current assignee of a ticket that has been sitting in an open state.

> [card] [SLA reminders](https://docs.ravenna.ai/documentation/tickets/reminders.md#sla-reminders)
>
> Nudge the assignee of a ticket that is at risk of breaching an SLA.

## Mental model

Approval, assignment, and SLA reminders are workspace-level automation policies that schedule recurring, private nudges to the users responsible for pending work on a ticket. All three use the shared `Reminder` infrastructure, the same scheduling primitive keyed by a URN. Each successful fire records a `REMINDER_SENT` ticket event and dispatches on three private channels; a `REMINDER_EXPIRED` ticket event is dispatched when the cap is hit.

Each policy is configured once per workspace. There is no per-ticket, per-channel, per-form, per-round, or per-assignee override.

* **Approval reminders** are keyed by `(ticketId, roundId)`. Scheduled when a round opens, cancelled when the round closes (approve, decline, reset).
* **Assignment reminders** are keyed by `ticketId`. Scheduled when a ticket is assigned, cancelled when the ticket is unassigned, reassigned, archived, or moves to `Done` or `Closed`.
* **SLA reminders** are keyed by `(ticketId, targetId)`. Scheduled when an SLA alert fires on a target, cancelled when that target reaches a terminal state (`MET`, `BREACHED`, `CANCELLED`, `SUPERSEDED`), the policy is disabled, or the ticket is archived, merged, or moves to `Done` or `Closed`.

***

## Configuration

Each workspace has at most one policy of each type (`APPROVAL`, `ASSIGNMENT`, `SLA`). All three expose the same fields:

| Field | Type | Default | Notes |
| - | - | - | - |
| `enabled` | boolean | `false` | Master switch. `false` means no reminders are scheduled or dispatched even if other fields are set |
| `intervalHours` | number > 0 | `24` | Hours between the work starting (or the last reminder) and the next reminder. Fractional values encode sub-hour units |
| `maxReminders` | integer ≥ 1 or `null` | `3` | Maximum reminders per chain. Chain granularity depends on `useRecipientSchedule` (see below). `null` means unlimited |
| `scheduleId` | string or `null` | `null` | Optional [business schedule](https://docs.ravenna.ai/documentation/platform/workspaces/settings.md#business-schedules) ID used to defer delivery to working windows. Must belong to the same workspace. Ignored when `useRecipientSchedule` is `true` |
| `useRecipientSchedule` | boolean | `false` | When `true`, delivery is deferred to each recipient's own **Working Hours** preference (`OrganizationMemberPreferences.businessScheduleId`) instead of a workspace schedule. On assignment and SLA policies this is the assignee. On approval policies this switches the chain model to per-approver (see below). Mutually exclusive with `scheduleId`; when both are provided the service clears `scheduleId` |
| `filterGroups` | filter-group array or `null` | `null` | Optional ticket condition filter, expressed as an OR of AND groups. Empty/null means "remind for every ticket". Evaluated against the ticket's hydrated context every time a reminder is about to fire |

The UI exposes the interval in seconds, minutes, hours, days, or weeks, but the value is normalized to hours on save (`seconds / 3600`, `minutes / 60`, `days * 24`, `weeks * 168`). The stored field is always `intervalHours` and always fractional-friendly.

`computeReminderFireAt(baseTime, intervalHours, schedule)` returns `baseTime + intervalHours` adjusted forward to the next working window of the policy's selected business schedule. If the policy has no schedule, the returned time is the raw wall-clock offset. The schedule is the one attached to the policy, not the workspace default. Upserting a policy with a `scheduleId` that does not belong to the same workspace is rejected.

When `useRecipientSchedule = true`, scheduling goes through `computePolicyFireAt(baseTime, policy, recipient)`, which reads the recipient's Working Hours from `UserAvailabilityService.getWorkingHours` and moves the fire time forward into that schedule's next working window. A recipient with no schedule picked gets the raw wall-clock offset. Different recipients on the same policy can therefore have different fire times, and per-approver chains load every pending approver's hours in one read.

***

## Approval reminder lifecycle

1. **Round opens.** When an approval round transitions to ACTIVE, an approval reminder is scheduled for the round.
2. **Policy check.** The workspace's approval reminder policy is loaded. If `enabled = false`, no reminder is scheduled.
3. **First reminder scheduled.** A reminder is enqueued with:
   * `uri`: `REMINDER_URN.approvalRound(ticketId, roundId)`, which guarantees idempotency per round.
   * `type`: `ReminderType.Approval`.
   * `fireAt`: `computeReminderFireAt(round.openedAt, intervalHours, policy.schedule)`.
   * `metadata`: `{ ticketId, roundId, workspaceId, organizationId, reminderCount: 0 }`.
4. **Reminder fires.** The handler runs:
   * Re-fetches pending approvers. Empty list → cancels the reminder URN and returns (round resolved between fire-at and execution).
   * Re-reads the policy. If `enabled = false` mid-cycle → cancels and returns.
   * Evaluates `policy.filterGroups` against the hydrated ticket context. On no match, the reminder is marked `skipped` and **no delivery is attempted**; on match, proceeds to delivery.
   * Creates a `REMINDER_SENT` ticket event authored by the workspace bot user with `source: SYSTEM`, referencing the ticket, the `roundId`, and the `reminderId`. This event is timeline-only and is not mapped into a notification group directly.
   * If the ticket is unpublished (draft), delivery is skipped for that fire. The event is still recorded.
   * Otherwise, resolves recipients (the round's currently pending approvers) and dispatches on three independent private channels in parallel: in-app notification, Slack DM, and email. Each channel is gated by the recipient's **Approvals** notification preference for that channel. A channel failure is logged and does not block the other channels. No public ticket message is posted and no `@` mention is generated.
   * Computes `nextCount`. A delivered fire increments it; a `skipped` fire leaves it unchanged. If `maxReminders !== null && nextCount >= maxReminders`, dispatches a `REMINDER_EXPIRED` ticket event with `reminderType: Approval`. Otherwise, if the chain has been running less than `REMINDER_CHAIN_MAX_AGE_DAYS` (30 days from `chainStartedAt`), schedules the next reminder. Past that ceiling the chain stops without dispatching `REMINDER_EXPIRED`.
5. **Round closes.** When the round becomes APPROVED, DECLINED, or RESET, the reminder is cancelled via the URN.

URN:

```text theme={"system"}
urn:ticket:{ticketId}:approval:{roundId}
```

Scheduling with the same URN replaces any existing reminder for that key, so re-opening or re-activating a round does not double-schedule.

### Approver Hours: per-approver chains

When `policy.useRecipientSchedule = true`, the approval handler swaps the single round-wide chain for one chain per pending approver. `scheduleApproverChains(context, policy, start)` reads the round's `PENDING` approvers and enqueues a reminder per approver with:

* `uri`: `urn:ticket:{ticketId}:approval:{roundId}:approver:{approverId}`. The approver URI is a prefix-extension of the round URI, which lets `cancelByUriPrefix` cancel every chain on a round in one call.
* `metadata.approverId`: set on per-approver chains, absent on the shared round chain. This is how the handler distinguishes the two.
* `fireAt`: `computeRecipientFireAt(start, policy, workingHours)` with that approver's Working Hours, loaded for every pending approver in one read. It falls through to the raw interval if the approver has no schedule.

At fire time, the handler:

* Cancels the chain if `metadata.approverId` is no longer in `PENDING` (they already responded or were removed). If cancelling that chain leaves zero live chains on the round, `dispatchReminderExpired` fires once for the round.
* Enforces `maxReminders` per approver. When a chain hits the cap, it only fires `REMINDER_EXPIRED` for the round if no other chain on that round is still live. Every other chain hitting its cap silently ends.
* On the `APPROVAL_ROUND_APPROVER_ADDED` event, `scheduleApprovalApproverReminder` starts a fresh chain for the new approver from the moment they joined. Existing chains are untouched, and idempotency is guarded by `hasPendingForUri`.
* A pre-existing shared round chain (from before the toggle flipped on) hands its schedule slot to per-approver chains on its next fire, via `scheduleApproverChains(...)`.

Cancellation:

* `cancelApprovalRoundReminder(roundId, ticketId, organizationId)` uses `cancelByUriPrefix` on the round URI, so it clears the shared chain and every per-approver chain in one call. Called on `APPROVAL_ROUND_COMPLETED`, on ticket resolution, and on round reset.
* `cancelApprovalApproverReminder(roundId, ticketId, approverId)` cancels a single approver's chain by exact URI. Used by the handler when it detects that approver is no longer pending.

Ticket-timeline effect: because each chain fires independently, a round using Approver Hours produces one `REMINDER_SENT` event per pending approver per interval, not a single shared event.

***

## Assignment reminder lifecycle

1. **Assignee set.** When a ticket gains an assignee, an assignment reminder is scheduled.
2. **Policy check.** The workspace's assignment reminder policy is loaded. If `enabled = false`, no reminder is scheduled.
3. **First reminder scheduled.** A reminder is enqueued with:
   * `uri`: `REMINDER_URN.assignment(ticketId)`, one in-flight reminder per ticket.
   * `type`: `ReminderType.Assignment`.
   * `fireAt`: `computeReminderFireAt(now, intervalHours, policy.schedule)`.
   * `metadata`: `{ ticketId, assigneeId, organizationId, workspaceId, reminderCount: 0 }`.
4. **Reminder fires.** The handler runs:
   * Reloads the ticket. If the ticket is missing or no longer assigned to `metadata.assigneeId`, is archived, or its status group is in `TERMINAL_STATUS_GROUPS` (`Done`, `Closed`) → cancels the URN and returns.
   * Re-reads the policy. If `enabled = false` mid-cycle → cancels and returns.
   * Evaluates `policy.filterGroups` against the hydrated ticket context. On no match, the reminder is marked `skipped` and **no delivery is attempted**; on match, proceeds to delivery.
   * Creates a `REMINDER_SENT` ticket event authored by the workspace bot user with `source: SYSTEM`, referencing the ticket, the `assigneeId`, and the `reminderId`. This event is timeline-only and is not mapped into a notification group directly.
   * If the ticket is unpublished (draft), delivery is skipped for that fire. The event is still recorded.
   * Otherwise, resolves the current assignee as the sole recipient and dispatches on three independent private channels in parallel: in-app notification, Slack DM, and email. Each channel is gated by the assignee's **Assignments** notification preference for that channel. A channel failure is logged and does not block the other channels. No public ticket message is posted and no `@` mention is generated.
   * Computes `nextCount`. A delivered fire increments it; a `skipped` fire leaves it unchanged. If `maxReminders !== null && nextCount >= maxReminders`, dispatches a `REMINDER_EXPIRED` ticket event with `reminderType: Assignment`. Otherwise, if the chain has been running less than `REMINDER_CHAIN_MAX_AGE_DAYS` (30 days from `chainStartedAt`), schedules the next reminder. Past that ceiling the chain stops without dispatching `REMINDER_EXPIRED`.
5. **Assignment changes or ticket closes.** The URN is cancelled. Reassigning to a new user schedules a fresh cycle keyed on the same URN, which supersedes any prior schedule.

URN:

```text theme={"system"}
urn:ticket:{ticketId}:assignment
```

One reminder per ticket. Reassignment replaces the schedule rather than running two cycles in parallel.

When `policy.useRecipientSchedule = true` on the assignment policy (**Assignee Hours** in the UI), the chain model does not change (there is still one chain per ticket), but the fire time is computed against the current assignee's Working Hours preference (`OrganizationMemberPreferences.businessScheduleId`) via `computePolicyFireAt`. Assignees with no preference selected fall through to the raw wall-clock interval; there is no policy-level fallback schedule.

***

## SLA reminder lifecycle

1. **SLA alert fires.** When an `SLA_ALERT` event is dispatched for a ticket's SLA target, an SLA reminder is scheduled for that target.
2. **Policy check.** The workspace's `SLA` reminder policy is loaded. If `enabled = false`, no reminder is scheduled. If a pending reminder already exists for the target's URN (the alert re-fired), no second chain is scheduled.
3. **First reminder scheduled.** A reminder is enqueued with:
   * `uri`: `REMINDER_URN.sla(ticketId, targetId)`, one chain per SLA target.
   * `type`: `ReminderType.SLA`.
   * `fireAt`: `computePolicyFireAt(now, policy, { organizationId, userId: assigneeId })`.
   * `metadata`: `{ ticketId, targetId, assigneeId, organizationId, workspaceId, reminderCount: 0, chainStartedAt }`.
4. **Reminder fires.** The handler runs:
   * Reloads the ticket. If it is missing, archived, merged, or its status group is `Done` or `Closed` → cancels every SLA chain on the ticket (prefix `urn:ticket:{ticketId}:sla`) and returns.
   * Reloads the SLA target. If it is missing or in a terminal state (`MET`, `BREACHED`, `CANCELLED`, `SUPERSEDED`) → cancels this target's chain and returns.
   * Re-reads the policy. If `enabled = false` → cancels every SLA chain on the ticket and returns.
   * Re-resolves the recipient as the ticket's current assignee. If the ticket is unassigned, the target is `PAUSED`, or `policy.filterGroups` does not match, the reminder is marked `skipped` and the chain reschedules without advancing the count.
   * Otherwise, delivers through `ReminderDeliveryService` on in-app, Slack DM, and email, gated by the assignee's **SLA alerts** preferences. The Slack DM and email include one link labeled `{metric} · {SLA name}` pointing to the SLA policy's settings page.
   * If `maxReminders !== null && nextCount >= maxReminders`, dispatches `REMINDER_EXPIRED` with `reminderType: SLA`. Otherwise, if the chain is younger than 30 days, schedules the next reminder addressed to the current assignee.

URN:

```text theme={"system"}
urn:ticket:{ticketId}:sla:{targetId}
```

Staggered targets on the same ticket run independent chains. Reassignment does not restart an SLA chain; the next fire goes to the new assignee and keeps the existing `reminderCount`.

***

## Notifications

Every reminder fire creates a `REMINDER_SENT` ticket event and then dispatches on three independent private channels: **in-app**, **Slack DM**, and **email**. There is no public ticket message.

Recipients:

* **Approval reminders** → the round's currently pending approvers (approvers whose status is `PENDING`), re-resolved at fire time. Approvers who have already approved or declined are not notified.
* **Assignment reminders** → the ticket's current assignee at fire time. If the assignee changed between the schedule and the fire, the handler cancels rather than notifying the new assignee (the reassignment starts its own cycle).
* **SLA reminders** → the ticket's current assignee at fire time. Unassigned tickets skip the fire but keep the chain.
* The bot user is never a recipient.

Preference gating:

* Each channel is gated independently by the recipient's effective preference for the relevant notification group. Approval reminders use `BaseNotificationGroup.Approvals`, assignment reminders use `BaseNotificationGroup.Assignments`, and SLA reminders use `BaseNotificationGroup.SLA`. The helper `reminderNotificationGroup(reminderType)` returns this mapping.
* Effective preferences are resolved via the standard `NotificationPreferenceStore.getEffectivePreferences` path, so organization defaults and user overrides both apply.
* Slack approval DMs cannot be disabled at the group level (Approvals is a forced-on Slack group). Assignment DMs, and all email deliveries, are user-controllable.
* `TICKET_EVENT_TO_NOTIFICATION_GROUP[REMINDER_SENT]` is `null`. The event does not go through the generic timeline-event-to-group mapping. Delivery is initiated directly by `ReminderDeliveryService.deliver` and its per-channel handlers, each of which reads the group derived from `reminderType`.

Delivery gates:

* **Ticket must be published.** If `ticket.published === false`, delivery is skipped for that fire. The `REMINDER_SENT` event is still recorded, so audit history stays consistent, but no channel is called.
* **Slack context must exist for the recipient.** If `getSlackAppForUser(recipient, ticket)` returns nothing, the Slack DM is skipped for that recipient. Other channels still run.
* Each channel runs inside `Promise.allSettled` under the delivery service, so a Slack failure does not block email and vice versa. Failures are logged with `[ReminderDeliveryService] <channel> reminder delivery failed`.

Message copy (fixed, no personalization beyond the ticket link/mirror):

* Approval Slack DM: `⏰ Reminder: your approval is still pending on this ticket.`
* Assignment Slack DM: `⏰ Reminder: this ticket is still assigned to you.`
* SLA Slack DM: `⏰ Reminder: this ticket is approaching its SLA and still needs attention: <link>.` The link label is `{metric} · {SLA name}` and points to the SLA policy.
* Email body value: `Your approval is still pending on this ticket.` / `This ticket is still assigned to you.` / `This ticket is approaching its SLA and still needs attention: <link>.` The email uses the standard ticket-updated template with `action: REMINDER_SENT` and title `Reminder`.

***

## REMINDER\_EXPIRED dispatch

When `maxReminders` is hit, the handler dispatches a `TicketEventAction.REMINDER_EXPIRED` event with:

* `ticketId`: the ticket
* `reminderType`: `Approval`, `Assignment`, or `SLA`
* `organizationId`
* `source`: `SYSTEM`

The **Reminder Expired** workflow trigger consumes this event. Filter by `Reminder Type` to target a specific reminder type. The round or ticket is **not** modified by the expiry. Any state change must come from a workflow or manual admin action.

***

## Constraints and gotchas

* Each workspace has at most one policy of each type. There is no per-channel, per-form, or per-ticket override.
* Approval reminders are per-round by default. A ticket with three sequential rounds gets three independent reminder cycles. When `useRecipientSchedule = true` on the approval policy, the round is further split into one chain per pending approver, and `maxReminders` is enforced per chain (per approver). `REMINDER_EXPIRED` fires once per round when the last chain on that round hits its cap.
* Assignment reminders are per-ticket-per-assignee. Reassigning a ticket cancels the existing cycle (via the URN) and starts a new one with `reminderCount: 0`.
* `useRecipientSchedule` is mutually exclusive with `scheduleId`; the service clears `scheduleId` when both are provided. Recipients (assignee for assignment; each pending approver for approval) whose `OrganizationMemberPreferences.businessScheduleId` is `null` fall through to the raw wall-clock interval, there is no workspace fallback schedule under Assignee Hours or Approver Hours.
* The `intervalHours` clock restarts after every reminder. It is measured from "work started or last reminder", not from ticket creation.
* The cap (`maxReminders`) counts dispatched reminders, not scheduled ones. If a reminder fires and is cancelled early (no pending approvers, terminal status, mismatched assignee, archived), or is `skipped` because the ticket did not match `filterGroups`, the count is not incremented.
* `filterGroups` is evaluated against the ticket's hydrated context (reference id `reminder`, section `input`) on every fire. A non-matching fire is recorded with status `skipped` instead of `fired`, no delivery is attempted, and the chain reschedules without advancing the count. Reminder records can be in one of four statuses: `pending`, `fired`, `skipped`, or `cancelled`.
* Reminder chains carry `chainStartedAt`, the wall-clock time the first reminder was scheduled. Once the chain age exceeds `REMINDER_CHAIN_MAX_AGE_DAYS` (30 days), the handler stops rescheduling and does **not** fire `REMINDER_EXPIRED`. This prevents a ticket that never matches its policy filters from rescheduling forever. Chains scheduled before this field existed have no cap.
* Reminder deliveries are private to the recipient. There is no public ticket message, no `@` mention on the ticket surface, and no email to the requester or other stakeholders. The only ticket-wide artifact is the `REMINDER_SENT` audit event on the timeline.
* Delivery only runs for published tickets. If a reminder fires against a draft ticket (`ticket.published === false`), the `REMINDER_SENT` event is still created but every channel is skipped.
* Each of the three channels (in-app, Slack DM, email) is independently gated by the recipient's effective notification preference (`Approvals` for approval reminders, `Assignments` for assignment reminders, `SLA alerts` for SLA reminders). Slack approvals cannot be disabled at the group level; assignment DMs and all emails can. A recipient who has disabled a channel simply does not receive that channel's copy. The reminder still fires and other channels still run.
* Channel calls run inside `Promise.allSettled`. A Slack outage or missing Slack context does not block email, and vice versa. Individual channel failures are logged and reported to the active tracing span.
* The bot user is never a reminder recipient.
* Tickets in any sub-status of the `Done` or `Closed` status groups stop assignment reminders. Tickets in `Waiting` do **not**, so move a ticket to `Done` if you want reminders to cease.
* Disabling a policy mid-cycle cancels future dispatches but does not delete already-scheduled reminders. The handler re-checks the policy at fire time and cancels the URN if disabled.


## Related topics

- [List reminder policies for the workspace](https://docs.ravenna.ai/api/reminder-policy/list-reminder-policies-for-the-workspace.md)
- [Create or update a reminder policy for the workspace](https://docs.ravenna.ai/api/reminder-policy/create-or-update-a-reminder-policy-for-the-workspace.md)
- [Available tools](https://docs.ravenna.ai/documentation/automate/mcp/tools.md)
- [Triggers & actions](https://docs.ravenna.ai/documentation/automate/workflows/triggers-actions.md)
- [Workspace settings](https://docs.ravenna.ai/documentation/platform/workspaces/settings.md)


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