memosight was designed around AI from the first version, so model calls are part of the pipeline instead of a chat window added on top of a dashboard. That also means each call needs a defined job, defined inputs and defined limits.
Where the models run
| Stage | What the model does | What code does |
|---|---|---|
| Anomaly detection | Reads precomputed signals and picks out cross-metric patterns | Computes every statistic, enforces thresholds, validates output |
| Anomaly explanation | Writes a short explanation and one next step | Supplies the metric, values and period |
| Custom rules | Turns a plain-English rule into a structured definition | Screens the input, runs the rule |
| Recommendations | Finds root causes and proposes changes in eight categories | Restricts to 25 action types, filters conflicts and duplicates |
| Memo Bot | Answers ad hoc questions on any metric or anomaly, and builds reports on request | Builds context from governed data, plan targets and trends |
| Execution | Nothing | Snapshots, applies and rolls back changes through the platform API |
The model never executes anything. It proposes changes, and code makes them under rules a person set.
Context comes from the knowledge layer
A model call is only as good as its context. Every call, Memo Bot included, is built from governed data:
- campaign metrics on shared definitions
- open anomalies
- pending and dismissed actions
- media plan targets against actuals
- search trends, where they are available
The semantic, vector and graph layers are what make that context consistent across the app, Slack, Teams and Claude.
Controls on every call
- Input screening. Every free-text prompt is checked before it reaches a model. Injection attempts and off-topic requests are blocked, and admins are notified of blocked and suspicious prompts.
- A fixed scope. The assistant answers paid media and performance questions. Requests outside that are refused.
- Structured output. Detection and recommendations must return a fixed schema. Anything that does not validate is discarded.
- Per-workspace AI budget. Usage and cost are tracked per call and per workspace. When a workspace reaches its budget, AI features pause instead of running up a bill.
- Rate limits. Expensive operations, such as generating a rule, are rate-limited per user.
Which models, and where they run
memosight uses Claude models through a provider layer with two aliases: a large model for analysis and recommendations, and a small model for lighter tasks. The same code runs against the Anthropic API or Amazon Bedrock. For on-premises deployments, Bedrock means model calls stay inside the client's own AWS account, under their own network and logging controls.
Swapping models is a configuration change. When a better model ships, every stage above benefits without a rewrite.
Why build AI in from the start
AI added late tends to sit beside the data, answering questions without the definitions, history or permissions the rest of the system uses. Building it in from the start changes three things:
- The model sees the same governed numbers as the dashboard.
- Its output passes through the same validation as everything else.
- Every call is logged and costed.
That is what makes it safe to let it near a live ad account.