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

# Context

> Attach knowledge base articles an automation reads on every run.

Context gives an automation reference material it should follow every time, without pasting it into the instructions. Next to **Context**, click **Add articles**, search your [knowledge base](https://docs.decimal.app/knowledge-base/overview.md), and pick up to three articles.

Each run, the agent gets the attached articles alongside the event and reads the ones that bear on it before acting.

## When to use context

| Use context for | Keep it in the instructions |
| - | - |
| An escalation policy or severity definitions | The job itself: what to look for and what to do |
| A triage rotation or list of account owners | The channel, team, or tag to use |
| Your security disclosure process | The condition for acting, and what to do otherwise |
| What each of your tags means | The format of what it writes |

Context keeps the reference material where your team already maintains it. Update the article, and every automation that uses it follows the new version on its next run. Only the latest published version is used, so draft edits don't reach automations until they're published.

## Context or the Search knowledge base tool?

| | Context | [**Search knowledge base**](https://docs.decimal.app/automations/tools.md#other-integrations) |
| - | - | - |
| What the agent sees | The same articles, every run | Whatever it finds for this event |
| Best for | Policies and lists it must always follow | Looking up answers that depend on the ticket |
| Limit | Up to 3 articles | Searches your whole knowledge base |
| Effort | Any, including **Extra low** | **Low** or higher |

## Example

An SLA automation that assigns at-risk tickets to whoever is on triage:

* **Context:** your "Support triage rotation" article
* **Instructions:** "If the ticket has no assignee, assign it to whoever is on triage this week, as listed in the attached rotation article."

When the rotation changes, update the article. The automation doesn't need to change.


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