TL;DR: Having data and tools is not the same as having context — and that is why AI agents are confidently wrong instead of asking for help. The context layer that fixes this has three parts: nouns (the domain model — what a campaign, an audience, a conversion is), numbers (the semantic model — the official formula for each metric, versioned and unambiguous) and verbs (the capability model — what the agent can do on its own and what requires approval, validated by the system, never by the text). The three are built in order, from the bottom up, and none replaces the others.
Every client who automates marketing with AI agents reaches the same point, sooner or later: they’ve bought every tool on the market, tracking is airtight at every stage of the journey, the dashboards are colorful — and still, nobody on the team can say with confidence how much value all of it brought to the business.
It’s not a lack of data. It’s the lack of a layer most companies have never built: the context that says what that data actually means.
This combination — having the information and still losing the game because you didn’t interpret it properly — has a parallel much older than AI. Croesus, the richest man of the ancient world, asked the oracle at Delphi whether he should attack Persia. The answer was: “if you cross the river, a great empire will be destroyed.” He crossed. The empire destroyed was his own.
The information was there. What was missing was asking what it meant.
Herodotus doesn’t blame the oracle for the ambiguity of the answer — he blames Croesus, for never asking what that sentence really meant. It’s the same mistake, at a smaller scale, that I see repeated every day inside automated marketing operations.
What lives in the analyst’s head — and never reaches the agent
For years, the marketing machine worked because there was always someone able to fill, on the spot, the gap no system covered. That person knew by heart that the ROAS in the report already excluded shipping. Knew that Black Friday campaigns followed their own naming convention, different from the rest of the year. Knew that the Lookalike audience excluded recent buyers. None of this was written down — it lived in their head, and for decades that was enough.

We know more than we can tell — Michael Polanyi
I call this tacit knowledge, borrowing Polanyi’s term: an intuitive know-how, built through practice, hard to put into words. Nobody drives well by following a conscious list of rules, and no good analyst resolves a doubt by opening a manual — they recognize patterns, get suspicious of numbers that are too round, and become wary at the right moment.
An AI agent has no such instinct. It reads data literally — which is both an advantage and a serious problem. Ask it what product X’s revenue was in the third quarter and it won’t know that the company’s fiscal year starts in February, nor that the reported revenue already nets out returns, let alone that two different tables store the same orders twice. Faced with the gap, it doesn’t stop to ask: it applies whatever formula it has at hand, skips a join that made all the difference, and returns the wrong answer with the same confidence as someone who is right.
In a system without context, silence used to be the most common failure. The AI agent traded silence for confidence — and that hurts more.
Turning intuition into explicit rules
Can you fix this by hiring more people or buying more tools? No — because the problem was never headcount or tooling. It’s about explicitly encoding what used to exist only as the intuition of people who had been doing the job for years. I call this encoding the context layer, and it breaks down into three pieces that work like the parts of speech of a language: nouns, numbers and verbs.
The nouns make up the domain model: the definition of what a campaign is, what an audience is, what a conversion is, and the rules that connect these pieces. A campaign belongs to a single channel. A customer is considered active if they bought in the last ninety days. A Lookalike audience excludes recent buyers. This model doesn’t run any query on its own — it gives the agent the vocabulary it needs to interpret a request and build the right plan before touching any number.
# domain_model_marketing.yaml (versioned in Git)
entities:
Campaign:
description: "Marketing initiative with a defined budget and period"
attributes:
- campaign_id
- name
- channel # meta_ads | google_ads | email | influencer
- start_date
- end_date
- total_budget
rules:
- "A campaign belongs to exactly one channel"
- "Black Friday campaigns use the 'BF_' prefix and follow the fiscal calendar (starting in February)"
Audience:
description: "Customer segment used for targeting"
rules:
- "A 1% Lookalike audience excludes customers who purchased in the last 30 days"
- "An active customer is one who purchased in the last 90 days"
Conversion:
description: "Purchase action attributed to a campaign"
rules:
- "A conversion belongs to one order and one campaign"
- "Email conversions are attributed by last-click within a 7-day window"
The numbers make up the semantic model: the deterministic, versioned definition of each metric, so that the official ROAS formula is always the same, always compiled by the same constrained SQL. The gain from having this kind of layer isn’t theoretical — a Text-to-SQL benchmark run by AtScale (not marketing-specific, but a good picture of the effect) showed an AI model’s accuracy jump from 20% to 92.5% as soon as it started querying data through a semantic layer instead of the raw schema.
# semantic_model_marketing.yaml (dbt MetricFlow / Cube)
metrics:
roas:
description: "Return on Ad Spend — attributed net revenue / media cost"
formula: "attributed_net_revenue / media_cost"
required_filters:
- "attributed_net_revenue = order_value - discounts - returns - shipping"
- "media_cost = paid media spend (excludes agency and tool fees)"
granularity: [day, week, month, fiscal_quarter]
dimensions: [channel, campaign, audience, region]
cac:
description: "Customer Acquisition Cost"
formula: "total_media_cost / new_customers_acquired"
rules:
- "New customer = first paid order in the period"
email_conversion_rate:
description: "Email conversion rate — attributed conversions / delivered emails"
formula: "email_conversions / emails_delivered"
rules:
- "Last-click attribution, 7-day window"
The verbs make up the capability model: what the agent can execute, under which conditions, and how reversible it is. Querying ROAS is a free read. Pausing a campaign already requires checking the spend limit and getting approval. This is the safety rule that separates a useful agent from a dangerous one — the text can suggest an action, but permission can never depend on the text. It has to be validated, deterministically, by the system, before anything runs.
# capability_model_marketing.yaml
capabilities:
query_roas:
type: read
preconditions: []
reversible: true
pause_campaign:
type: write
preconditions:
- "daily_budget_spent < approved_daily_limit"
- "campaign.status == 'active'"
approval_required: "marketing_manager"
reversible: true
adjust_budget:
type: write
preconditions:
- "new_budget <= 120% of current_budget"
- "new_budget <= channel_monthly_cap"
approval_required: "marketing_manager"
reversible: true
issue_media_refund:
type: write
preconditions:
- "amount <= 5000 BRL"
- "campaign.status == 'closed'"
- "invoice_validated == true"
approval_required: "finance"
reversible: false

A document suggests. Only the system authorizes.
The price of never asking
Before consulting the oracle, Croesus had already heard Solon warn that no one should be called happy before they die — and ignored the warning. Later, he dreamed of his son’s death by an iron spearpoint, tried to protect the young man by keeping him away from any risk, and it was precisely that attempt at protection that created the conditions for the tragedy. At no point did Croesus lack information. What he lacked was the willingness to examine what it really meant.
Your marketing agent runs the same risk, only on a daily and silent rhythm. It won’t break the operation all at once. It will deliver plausible report after plausible report, questionable attributions, optimizations that seem to work but that nobody can truly audit — and you’ll carry on with the feeling that the promised value never arrived, without being able to point to the exact moment the connection was lost.
Where to start

The way out isn’t abandoning agents. It’s building this context layer with the same rigor you already apply to structuring data.
┌─────────────────────────────────────────────┐
│ 5. AI agent (write-back to campaigns) │ ← enabled only after 1-4
├─────────────────────────────────────────────┤
│ 4. Capability model (verbs) │
├─────────────────────────────────────────────┤
│ 3. Semantic model (marketing metrics) │
├─────────────────────────────────────────────┤
│ 2. Domain model (entities + graphs) │
├─────────────────────────────────────────────┤
│ 1. Data contracts + guaranteed quality │ ← foundation: without it, nothing works
└─────────────────────────────────────────────┘
Nouns first: map the entities of your marketing domain and write down the rules every experienced analyst knows by heart but that have never left their head.
Then the numbers: pick the three metrics that actually support decisions (not the twenty on the dashboard) and define each one uniquely, versioned, with the required filters made explicit.
Finally the verbs: map what the agent can do without asking permission and what requires approval — with preconditions the system checks, not ones the text promises.
This construction is a hierarchy, not a menu of loose options. There is no reliable context on top of data without contracts and guaranteed quality at the base. You don’t give an agent permission to write to a live system before the semantic and capability models define what it understands and what it can do. The stack goes up from the bottom, and each layer is only as solid as the one below it.
Polanyi would say there will always be some tacit residue left — and he’d be right: no context layer covers everything. But the difference between an empire that falls and one that endures isn’t knowing everything. It’s the humility to ask the oracle what it meant before crossing the river. Your agent won’t ask that question on its own. That question is yours.
From theory to test
This article would be incomplete if it stopped at theory — and I didn’t want to leave it in the realm of ideas. So I’ve been running, in parallel, a hands-on workshop: an agent that adjusts marketing budget allocation, tested in two versions — one without any context layer, the other with the domain, semantic and capability models described here.
The idea is simple: if this text’s thesis is right, the difference between the two versions of the agent shouldn’t show up only in the narrative — it should show up in the decisions it makes. The methodology details, what changed from one version to the other, and what the results showed are in the project Same agent, different architecture, the direct continuation of this one.
If this text convinced you of the theory, that one is the pocket-sized proof. And to look up the workshop’s terms, there’s a glossary.
