Anamap Learning : Core
Why Data Context Matters for AI
Table of Contents
- Overview
- What we mean by “data context”
- How context helps the Data Intelligence Agent
- Concrete examples
- Checklist: What to add first
- Best practices
Overview
AI assistants are only as useful as the information they can reason about. For analytics and implementation guidance this means the agent needs structured, accurate context about what you track and how you name things. Adding Attributes, Events, and Views in Anamap gives the Data Intelligence Agent the vocabulary and structure it needs to make precise recommendations, generate queries, and spot gaps in your implementation.
What we mean by “data context”
Data context is the structured metadata about your tracking implementation:
- Attributes: named fields (e.g., user_tier, product_category, price) and their types
- Events: actions or occurrences you record (e.g., purchase, sign_up, view_item)
- Views: logical groupings of pages or screens where events occur
Together these describe what data exists, where it comes from, and how it should be interpreted.
How context helps the Data Intelligence Agent
- Better understanding of domain: When the assistant knows that
user_tieris a string with valuesfree|pro|enterprise, it can answer "How many pro users converted last month?" without guessing column names. - Fewer ambiguous recommendations: Without context the agent may suggest broad, incorrect fixes. With context it can recommend exact attribute names, show example filter logic, or highlight missing events.
- More targeted queries: The assistant can generate accurate analytics queries (GA4, Amplitude, SQL) using real attribute and event names, saving time and reducing iteration.
- Improved troubleshooting: When a tracking gap exists, the agent can point to the exact view or event where instrumentation is missing.
Concrete examples
- Example 1 - Attribute clarity
- Without context: "Filter by plan" is ambiguous.
- With context: knowing the Attribute
user_tierexists with valuesfree, pro, enterpriseallows the agent to build exact filters and suggest cohort definitions.
- Example 2 - Missing event detection
- With Views and Events registered, the agent can detect that
checkout_startedexists onCart Viewbutcheckout_completedhas no matching event and recommend adding it.
- With Views and Events registered, the agent can detect that
- Example 3 - Better mapping suggestions
- If you have a
product_skuattribute andview_itemevent defined, the assistant can recommend attachingpriceandcategoryto Views where product analytics are needed.
- If you have a
Checklist: What to add first
- Add Attributes for your core user identifiers (e.g., customer_id, user_email).
- Add Events for conversion actions (e.g., purchase, signup, add_to_cart).
- Add Views for major page types (e.g., product page, cart page, checkout page).
- Document common attribute values (enums) for categorical fields.
Best practices
- Use clear, consistent naming conventions (snake_case or camelCase). Keep names short and descriptive.
- Prefer explicit types (Text, Integer, Decimal, Boolean) and add validation where possible.
- Group related Attributes in Views so the agent can reason about where events happen.
- Keep your attribute descriptions concise. Explain the meaning and typical values.
If you’d like, use this page as a checklist when you open the "Improve your data context" menu. The agent will immediately benefit from any Attributes, Events, or Views you add.