Skip to content
Guides · Building AI agents that know the work

What is a context graph?

A context graph is a structured model that links an organization’s people, processes, systems, documents, rules, and decisions, so that an AI system can retrieve not only facts but how they relate and why decisions are made.

For AI agents it supplies the operating context a new employee would otherwise learn over months: how the work is done, which rule applies, and who decides.

By the Linc AI team · Updated

Why AI agents need a context graph

A language model knows a great deal about the world and nothing about how one particular company works. Systems of record store what happened: the approved invoice, the closed case. They rarely store why: the exception that was granted, the rule that was applied, the person who had to sign off.

That reasoning lives in people’s heads, inboxes, and chat threads. An agent without it follows the documented path and breaks on the first exception.

What a context graph contains

  • Processes and steps, in a hierarchy.
  • Roles and people who perform, approve, and own them.
  • Systems and data that each step reads and writes.
  • Documents and policies that govern the work.
  • Business rules and decisions, stated explicitly.
  • Exceptions and precedents: what happened when the normal path did not apply.
  • Evidence: the recording, interview, or document each item came from.

The relationships carry as much value as the items. “This step is performed by this role, in this system, under this rule, with this exception, according to this source” is a statement an agent can act on and a reviewer can check.

Context graph vs knowledge graph vs RAG

  • A knowledge graph models entities and facts: customers, products, suppliers, and how they connect.
  • A context graph adds process and decision context: how work is done, which rules apply, and why.
  • Retrieval-augmented generation (RAG) retrieves passages of text that look relevant. It does not, by itself, know how those passages relate. A context graph gives retrieval that structure.

How a context graph is built

  1. Capture how work happens, through recordings, interviews, documents, and event logs.
  2. Extract the steps, roles, systems, rules, and exceptions.
  3. Link each item to related items and to its source.
  4. Review with the people who do the work, and resolve open questions.
  5. Maintain it as the work changes, so agents are not operating on last year’s process.

What a context graph enables

  • Agent instructions grounded in the real process, not the idealized one.
  • Agents that know when to stop and ask a person.
  • Evaluation cases drawn from real situations, including exceptions.
  • Consistent behavior across agents that share the same context.
  • Impact analysis when a system, policy, or team changes.

How Linc builds context

Linc builds this context from captured work. In Library, each step stays connected to its roles, systems, rules, exceptions, and the recording, interview, or document it came from. Designer carries that into agent instructions, test scenarios, and expected outcomes.

A process map explains the sequence. The context alongside it explains the decision, the exception, and the evidence a reviewer needs. The result gives agents more than a sequence to repeat: it explains the rules and when to ask a person.

Frequently asked questions

For questions about Linc itself, see the Linc FAQ.

Is a context graph the same as a knowledge graph?

They overlap. A knowledge graph models entities and facts. A context graph also models how work is done and how decisions are made, so it includes processes, rules, exceptions, and the evidence for each.

Does a context graph require a graph database?

Not necessarily. What matters is that the relationships and sources are explicit, reviewed, and kept current. The storage technology is an implementation choice.

How is a context graph different from a process map?

A process map shows the sequence of steps. A context graph also holds the rule behind each decision, the exceptions, the people and systems involved, and the source of each statement.

How does a context graph stay current?

By being rebuilt from fresh evidence when the work changes, and by feeding real exceptions from production back in. Version history and review states make it clear which version is the agreed reference.

Start with one process.

Bring a workflow your team wants to improve. We’ll show you how Linc can help.

Book a demo