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

# Feature Workflows

> Safe workflows for adding Replied product features.

Use these workflows before changing product behavior.

## Add a category action

1. Find existing category actions.
2. Preserve `org_id` filtering.
3. Confirm linked messages still display.
4. Add validation for name and color.
5. Update category docs.

## Add a message action

1. Find existing message actions.
2. Preserve sender fields, timeline, category, and archive state.
3. Confirm role checks.
4. Keep email side effects explicit.
5. Update guide docs.

## Add an integration

1. Confirm intake or email provider type.
2. Reuse existing API key or OAuth patterns.
3. Add test setup docs.
4. Keep secrets out of logs and docs.
5. Add troubleshooting guidance.

## Edit dangerous files safely

| File         | Rule                                         |
| ------------ | -------------------------------------------- |
| `docs.json`  | Validate JSON and every nav path.            |
| `AGENTS.md`  | Keep repo rules direct and current.          |
| Auth files   | Read existing auth patterns first.           |
| RLS policies | Confirm `org_id` isolation before and after. |
