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

# Global Context

> Create reusable context documents that inject shared instructions across multiple agents.

Global Context lets you define a reusable block of information once and attach it to any number of agents. Instead of repeating the same company details, product guidelines, or compliance rules in every agent's instructions, you write them once as a context document and reference it from each agent's configuration.

## How Global Context works

A Global Context document is a named text block stored in your workspace. When you attach a context document to an agent, its contents are injected into the agent's system prompt at inference time. Every agent that shares the same context document automatically receives any updates you make to that document, without requiring per-agent edits.

## Create a context document

1. Select **Knowledge** in the Studio sidebar, then open **Global Contexts** to see the list of context documents in your workspace.

2. Select **Create Context**. A panel opens on the right side of the screen.

3. Enter a **Name**: a short, descriptive identifier that makes the document easy to find and reuse across agents. Examples: `company_info`, `product_catalog`, `support_guidelines`.

4. Enter the **Value**: the text to inject into agent prompts. Example:

   ```
   Lyzr AI was founded in 2021. Our mission is to make AI-powered automation accessible to all businesses.
   ```

5. Select **Create** to save the context document.

<img src="https://mintcdn.com/lyzrinc/KL0td225zOmlZ1fc/assets/images/studio/new-globalcontext.png?fit=max&auto=format&n=KL0td225zOmlZ1fc&q=85&s=80fc598e809f3899e33c0631a6b19e18" alt="Screenshot of the Global Contexts page in Lyzr Studio showing an existing context document card and the Create Context panel open on the right with Name and Value fields." width="2934" height="1644" data-path="assets/images/studio/new-globalcontext.png" />

## Attach a context document to an agent

1. Open the agent in the Studio Builder, or create a new agent.
2. Scroll to the **Features** section and select **View All**, or select the **+** icon next to **Features** to open the feature picker. You can also search for "Context" in the search bar.
3. Toggle on **Context** under Core Features.
4. Select the context document from the dropdown. The context is injected into the agent's system prompt from the next inference onwards.

<img src="https://mintcdn.com/lyzrinc/KL0td225zOmlZ1fc/assets/images/studio/new-contextadding.png?fit=max&auto=format&n=KL0td225zOmlZ1fc&q=85&s=88f435ab82ddf314b0240bfc50334df5" alt="Screenshot of the agent feature picker in Agent Studio showing Core Features including Data Query, Memory, Voice Agent, and Context, with Memory toggled on and Context available to enable." width="1200" height="1634" data-path="assets/images/studio/new-contextadding.png" />

You can attach the same context document to multiple agents. Editing the document once propagates the change to all agents that reference it.

## When to use Global Context

Global Context is most useful when the same information must stay consistent across agents in your workspace. Common use cases include:

* Org-wide brand voice and tone guidelines that all customer-facing agents must follow
* Product descriptions referenced by both support and sales agents
* Compliance rules or legal disclaimers that apply across the entire workspace

## Next steps

* [Build an agent in Studio](../agents/studio)
* [Memory and session context](../../get-started/concepts/memory-context)
