Your AI agents sound generic because their context is a mess
Newsletter
By Stefan Maritz6 min read
Every team building with AI hits the same wall. The first dashboards and drafts look great, then the answers start drifting into beige, could-be-anyone territory. Swapping models rarely fixes it, and better prompts also don't help.
The fix always sits underneath the agent, in how you structure what the model knows, what it can look up, and what it fetches live. The context engineering part, and I personally like to split it into three layers.
The short version
- Map your questions and sources before you choose a single tool.
- Keep a small, hand-curated knowledge base for the always-present stable stuff.
- Put transcripts, playbooks, and notes in a library the agent searches and pulls in at runtime.
- Pull live numbers from APIs and keep them out of the other two layers.
Start with the questions your team needs answers to regularly
The temptation is to start with the platform. Copilot or Claude, Azure or a vector database, which connectors to switch on first. Park all of that.
Write down the questions your team needs answered on a regular basis. Which competitors launched something this month? Which blog posts lost clicks? What did customers say about pricing on recent calls? Then map every question to the place its answer currently lives.
You learn two useful things from this. You see which sources do the heavy lifting and which ones nobody touches, and you spot middleware you can cut.
Plenty of stacks pull data through a third-party tool that re-packages a platform's own API. If the first-party API gives you the same data directly, connect to it and drop the middle step. A simple example of this is AhRefs. They use little more than a combination of free Google APIs. If you plug those in directly, along with a SERPApi key (at 250 free ticks per month) - you have all the info that AhRefs has, for free, and you control the reporting.
The three layers
Layer 1: the knowledge base
The knowledge base is the agent's long-term memory about who you are. It holds the stable, evergreen context that should shape every output: value propositions, audience profiles, competitors, brand strategy, tone of voice, and writing guidance.
The agent loads some of this layer on every request, so it has to stay lean. Every line you add is something the model weighs up each time it writes. Hand-curate it, write it yourself or edit it down hard.
You can't dump 400 PDFs into this and expect it to be clean and accurate. Spring-clean, and load only what you really need an agent to know.
Give it an owner too. At larger organisations, product marketing, for instance, can own the value proposition and the files around it, and changes should go through an approval step before they reach the agents.
Layer 2: the library
The library holds runtime material, the working content an agent dips into when a task calls for it. Playbooks, call and interview transcripts, campaign notes, webinars, podcasts, and internal meeting notes all live here.
This content is long, it changes constantly, and only a slice of it is relevant to any single request. So you don't inject it wholesale. You vectorise it, which turns each chunk into a searchable representation of its meaning, and the agent retrieves only the passages that relate to the task.
Ask for a blog post on pricing and it pulls the few paragraphs from last month's customer call where pricing came up, and leaves the other 40 minutes alone.
Transcripts are the richest thing you can put in here, because they carry the way you and your customers talk, novel insights, and original thought leadership.
The library still needs curation. Pointing an agent at a large shared drive is the knowledge base mistake all over again. Clear out duplicates, dead drafts, and anything nobody would want quoted.
Set confidentiality rules as well. Sales notes and customer-success calls are gold for briefs and analysis, but the agent needs to know they're internal. Tell it to use those insights to shape the angle and never reuse them word for word in anything external.
Layer 3: dynamic data
The third layer is operational data, the numbers that change daily and lose their value when stale. Traffic, rankings, pipeline, and campaign performance all live here.
None of it gets stored as text in the other two layers. The agent fetches it from source through an API when a request needs it.
You have two options for freshness. Live queries run at the moment of the request, which is what you want when the current value is the point, like how organic clicks changed last week in Search Console. Snapshots pull data into your own database on a schedule.
For instance, Salesforce works perfectly fine with daily snapshots, so the agent isn't hitting the API all day for pipeline numbers and account planning that only need to be accurate to yesterday.
The request itself becomes the query. A plain-language ask like "compare UK organic traffic for September with August" already carries the date range and the location, and the agent turns that into the right API call. Standards like the Model Context Protocol (MCP) give agents a common way to connect to Search Console, Salesforce, HubSpot, and the rest.
Workflows and agents sit on top
What a workflow looks like
Once sources, knowledge base, and library are defined, building a workflow gets simple. Each step points at a layer. A typical sequence reads the knowledge base, retrieves source data, analyses it, and presents the result through a defined template.
A blog workflow on this setup loads the tone of voice and writing guidance from the knowledge base, retrieves the relevant transcript passages from the library, applies the SEO playbook/skill, and generates the draft.
Swap the template and the sources, and the same structure gives you a competitor digest, a newsletter, or a performance report.
Keep the layers apart
Getting the foundation right is what kills generic answers. When the knowledge base stays small and accurate, the library stays clean, and the numbers come fresh from the source, the agent has no reason to fall back on the average or random URLs in its training data. You also get far more control over what comes out.
Blur the lines and everything degrades together. Put live data in the knowledge base and it goes stale. Put every transcript in there and the brand voice gets drowned out. Leave the library uncurated and the agent retrieves an outdated playbook with total confidence.
A simple sorting test
Ask two questions about every new piece of content. Will it still be true in six months, and should it shape every single output?
Yes to both and it goes in the knowledge base. Long-form, changing, or only useful for some tasks, it goes in the library. A number that moves daily comes from an API.
Quality control comes last
Source checks and hallucination logging are worth adding, but later. Once the layers run, track which sources produce unreliable answers, then fix or remove them. Doing this before the foundation is in place means measuring a system that is bound to wobble.
The order runs like this: map sources, structure the knowledge base, set library boundaries, connect dynamic data, then build workflows and controls.
This is what turns a handful of prototypes into a system other people can use.
This article was written using Contengi.com, produced from a call transcript, using the exact setup explained above.
More newsletter
Issue 3: Hydrogen, Business Hub, and a change log for November
Hydrogen in AI Mode, Business Hub counts, Meta's Muse agent, a change log for your November numbers, Exa from the stack, and a free publication template.
Newsletter · 3 min
Issue 2: your AI visibility score meets a placebo test
One site's AI click share, Brave's index in court, Cloudflare's crawl hints, a placebo test for your AI visibility score, the ai-seo skill, and a free knitwear template.
Newsletter · 3 min
Issue 1: the week chat ads met their spreadsheet
Chat ads meet real conversion data, the first loop worth handing to an agent, a copywriting skill with 247,000 installs, and a free fintech template.
Newsletter · 2 min