DEV Community

Cover image for AWS Context: Building AI Agents That Understand Your Business
Muhammad Umair Ashraf
Muhammad Umair Ashraf

Posted on

AWS Context: Building AI Agents That Understand Your Business

Imagine asking an AI agent:

"How much revenue did we generate last quarter?"

The agent connects to your data warehouse, executes a SQL query, and returns an answer within seconds.

But is that answer correct?

Finance might calculate revenue after refunds, while Sales reports gross sales. Marketing might measure campaign-attributed revenue.

All three teams use the same term: Revenue, but each team may define it differently.

This is a common challenge in enterprise AI. Connecting an AI agent to data does not automatically mean the agent understands the business.

This is where AWS Context becomes interesting.

AWS Context provides a shared, governed context layer that helps AI agents understand business definitions, organizational knowledge, and relationships across enterprise data.

Let's explore how it works and why it matters for Data Engineering.

1. What Is AWS Context?

AWS Context helps organizations create a shared understanding of their business data for AI agents.

It connects supported enterprise data sources, metadata, and knowledge to build an Agent Context represented through a context graph.

Instead of every AI agent independently interpreting database schemas and business terminology, agents can access reusable organizational context.

This context can describe:

  • Business definitions and terminology.
  • Relationships between business entities.
  • Data assets and their meaning.
  • Organizational processes and rules.
  • Source information and relationships.
  • Context relevant to an agent's authorized access.

An important distinction: AWS Context is not intended to replace your data lake, warehouse, or operational databases. It provides a context layer that helps agents understand and use information from supported sources.

2. Why Do AI Agents Need Business Context?

Consider an e-commerce organization with several departments.

The Sales team defines an active customer based on recent purchases.

The Marketing team considers campaign engagement.

The Finance team uses approved financial reporting criteria.

Now imagine three AI agents answering questions about active customers.

Even if all three agents access the same database, their answers may differ because they interpret the business differently.

This is not necessarily a model problem. It is a business-context problem.

AI agents need to understand what business terms mean, how datasets relate, and which definitions should be applied.

Without that understanding, even a technically correct SQL query can produce a misleading business answer.

3. How AWS Context Works

The workflow can be understood through five stages.

Step 1: Connect data sources

Connect supported enterprise data sources, catalogs, databases, and knowledge repositories.

Step 2: Build Agent Context

AWS Context processes available metadata and documents to identify relevant entities, concepts, and relationships.

Step 3: Establish business meaning

Business definitions, ontologies, and domain knowledge help explain what the data represents.

Step 4: Govern the context

Curation policies control how inferred or proposed changes are applied, reviewed, or discarded.

Step 5: Make context available to AI agents

Compatible agents can use AWS Context APIs and Model Context Protocol (MCP) tools to search and retrieve relevant context.

4. AWS Context Architecture for Data Engineering

Consider a modern enterprise data platform.

It stores raw data in Amazon S3, manages metadata through AWS Glue Data Catalog, and uses Amazon Redshift for analytics.

Different AI agents need access to business knowledge across these systems.

A conceptual architecture could look like this:

          ENTERPRISE DATA SOURCES
     +-------------------------------+
     |                               |
     | Amazon S3     Amazon Redshift |
     | AWS Glue      Amazon Aurora   |
     | Amazon RDS    Amazon DynamoDB |
     | Business Documents & Rules    |
     |                               |
     +---------------+---------------+
                     |
                     v
                AWS CONTEXT
     +-------------------------------+
     |                               |
     |       Source Connections      |
     |               |               |
     |               v               |
     |         Context Graph         |
     |               |               |
     |    Business Definitions       |
     |    Entities & Relationships   |
     |    Organizational Knowledge   |
     |               |               |
     |               v               |
     |      Curation & Governance    |
     |                               |
     +---------------+---------------+
                     |
                     v
              MCP / AWS APIs
                     |
          +----------+----------+
          |          |          |
          v          v          v
       Finance     Sales    Operations
        Agent      Agent      Agent
          |          |          |
          +----------+----------+
                     |
                     v
          Consistent Business Insights
Enter fullscreen mode Exit fullscreen mode

This is a conceptual architecture rather than a mandatory deployment template. Actual integrations depend on supported AWS Context sources and agent configurations.

The key idea is that multiple agents can use a shared business knowledge layer.

5. Understanding the Context Graph

A traditional data catalog helps engineers discover tables, columns, schemas, and metadata.

A context graph adds another dimension by representing how business entities and concepts relate to one another.

Imagine an e-commerce data platform containing:

  • Customers
  • Orders
  • Products
  • Payments
  • Inventory
  • Refunds

A context graph could represent these relationships:

             CUSTOMER
                 |
                 | places
                 v
               ORDER
              /     \
             v       v
          PRODUCT  PAYMENT
             |
             v
          INVENTORY

             ORDER
               |
               v
             REFUND
Enter fullscreen mode Exit fullscreen mode

Now consider this business question:

"Which customers generated the highest net revenue last month?"

The agent needs to understand the relationship between customers, orders, payments, and refunds.

It also needs the organization's approved definition of net revenue.

The context graph helps the agent discover these relationships and use the relevant business knowledge when investigating the question.

6. Business Definitions and Ontologies

One of the most important parts of enterprise AI is establishing a shared business vocabulary.

For example:

Business concept Meaning
Customer An individual or organization purchasing products
Order A request from a customer to purchase products
Net Revenue Revenue calculated using approved financial rules
Active Customer A customer meeting the organization's activity criteria
Refund Money returned against an eligible transaction

An ontology formally describes concepts, entity types, attributes, relationships, and applicable rules within a business domain.

AWS Context includes built-in system ontologies for Enterprise, Business Process, and Data. Organizations can also define domain-specific ontologies.

This helps connect business terminology with the data assets that represent it.

Note that ontology capabilities are identified as preview features in AWS documentation. Verify current availability before using them as a production dependency.

7. Real-World Data Engineering Use Case

Let's build a scenario around a retail analytics platform.

The organization collects order data from multiple applications and stores it in Amazon S3.

AWS Glue Data Catalog manages metadata, and Amazon Redshift supports analytical reporting.

The organization wants an AI agent to answer:

"Which product categories experienced the highest revenue decline, and did inventory availability contribute to the decline?"

To investigate this question, the agent needs to understand several areas:

  1. Sales transactions.
  2. Product categories.
  3. Inventory availability.
  4. Regional definitions.
  5. Revenue calculation rules.
  6. Business reporting periods.

Without shared context, the agent might find relevant tables but misunderstand their relationships.

With AWS Context, the agent can retrieve relevant business definitions and relationships, identify appropriate data sources, and query supported systems.

It can then present findings grounded in available data.

For example, it might identify that a product category experienced declining completed orders during a period when inventory availability also decreased.

However, the agent should distinguish correlation from proven causation. Context improves interpretation; it does not automatically prove why a business outcome occurred.

8. Connecting AI Agents Through MCP

AWS Context also supports agent interoperability through APIs and Model Context Protocol (MCP) tools.

MCP provides a standardized way for compatible AI applications to discover and use external tools and context.

A simplified interaction looks like this:

       User Business Question
                  |
                  v
               AI Agent
                  |
                  v
            MCP / AWS APIs
                  |
                  v
           Search Agent Context
                  |
                  v
       Retrieve Business Definitions
                  |
                  v
        Discover Data Relationships
                  |
                  v
        Query Supported Data Sources
                  |
                  v
          Grounded Business Answer
Enter fullscreen mode Exit fullscreen mode

This approach can be useful when organizations operate multiple agents using different frameworks.

For example, compatible agents built with Amazon Bedrock AgentCore, Strands Agents, or other MCP-compatible frameworks can consume shared business context.

The exact integration depends on the agent framework and supported AWS Context interfaces.

9. Governance: Making Context Trustworthy

Enterprise AI requires more than accurate answers.

It also needs access control, traceability, and controlled knowledge updates.

AWS Context provides governance capabilities designed to help organizations manage these requirements.

Identity-aware access

Context requests are scoped to the permissions of the requesting identity. Agents should only receive information they are authorized to access.

Curation policies

Organizations can control whether proposed context changes are automatically applied, sent for expert review, or discarded.

Source traceability

Source references help users understand where information originated and validate the context used in an answer.

Expert corrections

Subject-matter experts can correct inferred information. Proposed knowledge improvements can be processed through configured curation policies.

A simplified improvement workflow:

       AI Agent Uses Context
                |
                v
          Generates Answer
                |
                v
          Expert Review
                |
                v
        Correction Submitted
                |
                v
         Curation Policy
                |
          +-----+-----+
          |     |     |
          v     v     v
        Apply  Review Discard
          |
          v
       Updated Context
          |
          v
      Shared With Agents
Enter fullscreen mode Exit fullscreen mode

The important principle is that AI-generated knowledge should not automatically become trusted organizational truth.

Human oversight remains essential.

10. AWS Context With the Data Engineering Ecosystem

AWS Context complements existing AWS data services.

AWS service Purpose
Amazon S3 Stores data lake assets and documents
AWS Glue Data Catalog Manages data catalog metadata
Amazon Redshift Supports data warehousing and analytics
Amazon Aurora Provides relational operational data
Amazon DynamoDB Stores application and operational data
Amazon Athena Supports analytical SQL queries
Amazon Bedrock AgentCore Provides infrastructure for building and operating agents
AWS Context Connects business meaning, relationships, and governed context

AWS has also announced preview support for selected third-party catalog sources, including Snowflake and Databricks.

Check the latest documentation for supported integrations and regional availability.

This is particularly interesting for organizations working with hybrid and multi-cloud data platforms.

11. How to Get Started

You do not need to model your entire organization immediately.

Start with one business domain, such as Sales.

Identify the important business concepts, approved KPI definitions, source datasets, relationships, and access requirements.

Connect supported sources to AWS Context and build the relevant Agent Context.

Review the discovered relationships with business experts.

Configure curation policies and permissions.

Connect a compatible AI agent and test it using real business questions.

For example:

"What was our net revenue last month?"

"Which customer segments generated the highest sales?"

"Which products experienced declining demand?"

"How did refunds affect reported revenue?"

Compare the agent's answers against approved reports and business definitions.

Expand to additional domains after validating the results.

AWS announced AWS Context as generally available on December 1, 2026. Some capabilities, including ontologies and selected integrations, are identified as preview features. Always verify current service availability, pricing, quotas, and regional support before production deployment.

12. Final Thoughts

Enterprise AI is moving beyond simple question-and-answer applications.

Organizations want agents that can investigate business problems, connect information across departments, follow operational rules, and explain their findings.

But agents cannot consistently perform these tasks if every application has a different understanding of the business.

AWS Context introduces an important architectural approach: business knowledge should be shared, governed, and reusable across AI agents.

For Data Engineering teams, this creates an opportunity to move beyond managing schemas and pipelines toward managing the meaning and relationships behind enterprise data.

The future of enterprise AI will not depend only on how much data agents can access. It will also depend on how well they understand what that data means.

References

AWS #AWSContext #DataEngineering #AIAgents #GenerativeAI #KnowledgeGraph #AmazonBedrock #MCP

Top comments (0)