Skip to content
Diagram: a business question passes through a context graph of definitions and owners, producing one answer with a cited source.

BlogIndustry News

Context Graph: What AWS Context Means for Your AI Agents

AWS Context is now GA with free graph creation. Here's why agents need a shared map of your business definitions, and how to build one even off AWS.

On December 1 at re:Invent, AWS made its context graph service, AWS Context, generally available, and made building and storing the graphs free across its main database and analytics services. It sounds like plumbing. It's really AWS admitting the most common reason AI agents fail on business data: they don't know what your company means by its own words.

Ask an agent how many orders shipped last week and it can write perfect SQL against the wrong table. A context graph fixes that by mapping your terms, rules and data sources into one reviewed reference that every agent shares. Here's what launched, how it works, and how to get the same benefit even if your data never touches AWS.

TL;DR#

  • AWS Context is GA, with free context graph creation and storage for Aurora, RDS, DynamoDB, Athena, Redshift and S3 Tables. Snowflake and Databricks catalog support is in preview.
  • Early numbers are strong: BBVA's loan-risk agent went from 54% to 89% accuracy, and up to 97% after expert corrections.
  • You don't need AWS to start. A small, reviewed semantic layer covering your 20 most-asked business questions gets you most of the value.

What AWS Context actually launched#

AWS Context connects to your data where it already lives and builds a map of business terms, rules, policies and how tables relate. Teams can review that graph before any agent uses it. When an agent or an expert fixes a mistake, the fix goes back into the shared graph, so every other agent gets it right next time. AWS's own example: a supply chain analyst confirms two part numbers from two factories are the same part, and the purchasing and finance agents both pick that up.

Two details matter for anyone in a regulated business. Agents inherit existing IAM permissions, so they only see what the person they work for can see. And every result traces back to its source, which gives auditors a record of how an answer was reached.

Amazon says it has run an internal version for over a year, spanning more than 9 million nodes and over a million dashboards and datasets, and it helped agents find the right dashboard 40% more often. Customers in preview reported similar jumps: 3M says accuracy on its top questions doubled, with each answer traced to a certified source.

Why AI agents get your numbers wrong#

Here's the problem in one example. Finance counts an order once it's invoiced. Operations counts it when it leaves the warehouse. An agent with access to both tables will happily give you one of those numbers, and it won't tell you which definition it used.

Most teams patch this today with markdown files, prompts and agent skills written by hand for each agent. Those files rarely cover everything and don't carry what one agent learned over to the next. Add a second agent and you now have two copies of "active customer" that will drift apart.

The errors also compound. In his keynote, Matt Garman pointed out that a 99.9% success rate per step leaves you with roughly a one-in-three chance of success across a thousand steps. Ambiguous definitions are one of the cheapest ways to lose those decimal points.

A lot of what gets called "hallucination" in business data work is really a definitions problem. The model did what you asked. It just didn't know what you meant.

How a context graph works, and where it falls short#

The flow is simple. The agent asks the graph before it asks the database:

User question: "How many orders shipped last week?"
      |
      v
Agent --> Context graph
            "shipped" = warehouse.dispatched_at (owner: Ops)
            valid join: orders.id = shipments.order_id
            certified source: ops_reporting.shipments
      |
      v
SQL on the right table --> Answer + source citation
      ^
      |
Expert correction --> written back to the graph for all agents

Context graph vs semantic layer vs prompt files#

ApproachWhat it holdsShared across agentsLearns from corrections
Prompt or markdown filesHand-written notes per agentNoOnly if someone edits them
Semantic layer (dbt, Cube)Metric definitions and valid joinsYes, for analyticsManual
Context graphTerms, rules, lineage, owners, sourcesYesYes, by design

The trade-offs are real. An auto-built graph can map things confidently and wrongly, so the review step isn't optional. Permission inheritance is only as clean as your IAM setup, and plenty of companies have roles nobody has audited in years. Free graph storage doesn't make the agents free: you still pay for every model call and query. And the more of your business logic lives inside one vendor's graph, the harder it is to move.

What this means if you're not all-in on AWS#

Most of the scaling businesses we talk to don't run Redshift. Their data lives in Shopify, Stripe, Zoho, QuickBooks and a few spreadsheets nobody admits to. AWS Context won't read most of that today.

The idea still transfers, and that's the useful takeaway from this launch. Your business definitions are an asset, and agents need them as structured data rather than as tribal knowledge in someone's head. If your core data already sits in Aurora, RDS or Redshift, trying AWS Context costs you very little beyond setup time. If you're on Snowflake or Databricks, the preview connectors are worth watching.

If you're mostly SaaS tools, you can build a lightweight AI semantic layer yourself: a definitions table, an ID mapping table and a small service that agents query before they touch real data. Exposed through an MCP server, the same definitions work with whichever model or agent framework you pick next year. That portability matters more than which graph engine you use.

How to build a context graph for your business: 7 steps#

  1. List the 20 questions people actually ask. Pull them from Slack, reports and support tickets. Agents will get asked the same ones.
  2. Write down every team's definition. Where finance and ops disagree, you've found your first bug.
  3. Pick one owner and one certified source per term. No owner means no answer the agent can trust.
  4. Map identifiers across systems. Shopify variant IDs, ERP part numbers and warehouse SKUs that refer to the same item belong in one mapping table.
  5. Store it as data, not prose. A database table, YAML in a repo, or AWS Context if your data fits.
  6. Make agents cite their source. If an answer can't point to a certified definition, the agent should ask instead of guessing.
  7. Log corrections and measure. Keep a fixed test set of questions, score accuracy before and after, and review corrections weekly.

Start with one workflow, like order reporting. A small graph that's correct beats a big one full of guesses.

How MagicMakers Lab approaches this#

Most of our AI integration and automation work starts with exactly this step: agreeing what the data means before any agent touches it. When we consolidated three disconnected systems into one platform for Business Hub, the hardest part wasn't the code. It was reconciling how each system defined the same records. We now build that definitions layer first, expose it through MCP so agents can query it safely, and add human approval where a wrong answer would cost money.

Key takeaways#

  • AWS Context makes context graphs free to build and store on supported AWS data services, and it's generally available now.
  • Agents fail on business data mostly because of ambiguous definitions, and those errors compound across multi-step tasks.
  • Reviewed definitions, owners and certified sources matter more than the graph technology itself.
  • If your data lives in SaaS tools, a small semantic layer exposed through MCP gives you the same benefit without lock-in.
  • Measure accuracy on a fixed question set before and after, so you know the layer is actually helping.

FAQ#

What is a context graph in AI?#

A context graph is a structured map of how a business works that AI agents query before acting. It links business terms, rules, data sources, owners and the relationships between tables, so an agent knows which definition of "active customer" or "shipped order" to use. Good ones also record corrections, so every agent benefits when one mistake gets fixed.

What is the difference between a context graph and a knowledge graph?#

A knowledge graph stores general facts and relationships between entities. A context graph is narrower and more operational: it's built from one company's data, definitions, permissions and decision history, specifically so agents can act correctly inside that business. In practice, a context graph often uses knowledge graph techniques, but adds ownership, certified sources and traceability for each answer.

Is AWS Context free?#

AWS says creating and storing context graphs is free across supported AWS database and analytics services, including Aurora, RDS, DynamoDB, Athena, Redshift and S3 Tables. That doesn't make your agents free. You still pay for the model calls, queries and compute your agents use, and connectors for Snowflake and Databricks are still in preview.

Do I need a semantic layer before deploying AI agents?#

If your agents answer questions from business data or take actions based on it, yes, at least a small one. Without shared definitions, two agents can return two different numbers for the same question, and neither will flag it. Start with the terms your team argues about most, assign owners, and make agents cite the definition they used.

If your agents keep giving confident but wrong answers, the fix is usually in your definitions, not your model. We can look at your current setup and show you where a context layer would pay off first. Book a free audit.

Sources#