Skip to main content
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.
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.

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.
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. 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