CORTEX · OPERATIONAL INTELLIGENCE
CORTEX is the operational intelligence pipeline that every ONSET AI Employee runs on. From a customer message to a verified, brand-safe action — ten checkpoints, no hallucinations slipping through.
Most “AI chatbots” pipe a prompt straight to a foundation model and pray. CORTEX doesn't. We chain ten specialist stages so what reaches your customer has been through the same controls a senior account manager would apply — and every action is replayable end-to-end.
MODULE 2 · CORTEX
CORTEX is the operational intelligence pipeline that every AI Employee runs on. From a customer message to a verified, brand-safe action — ten checkpoints, no hallucinations slipping through.
Most “AI chatbots” pipe a prompt straight to a foundation model and pray. CORTEX doesn't. We chain ten specialist stages — Intake, Entity resolution, Collection, Normalisation, Memory, Intelligence, Strategy, Verification, Delivery, QA — so what reaches your customer has been through the same controls a senior account manager would apply.
Capture the message, channel, language, intent
ingest · ms=42
Resolve who's writing — customer, prospect, supplier
match · Lim Wei Hao · prospect
Pull prior threads, invoices, contracts, products
loaded · 14 artefacts
Standardise language, dates, currency, names
BM → EN · RM → RM
Recall preferences, past objections, deal stage
recall · 6 facts
Reason about the actual ask + business context
reasoning · 1.4s
Choose tone, offer, escalation path
strategy · upsell-soft
Fact-check against your data, not the model's guess
verified · 4/4 claims
Route to WhatsApp/email/voice; gate at WATCHDOG
queued · awaiting approval
Sample-audit. PULSE writes hash. Loop closes.
qa · 8.4/10
← swipe through all ten stages →
EACH STAGE IN DEPTH
Each stage is its own n8n workflow with its own input contract, its own output schema, its own audit row. Failures are bounded to one stage. You can swap any stage's LLM provider, model or even prompt without touching the others.
01
Intake
Capture the message, channel, language, intent
Without proper intake, every downstream stage is a guess. CORTEX parses channel (WhatsApp / email / voice / web), detects language (BM / EN / 中文 / Manglish / Tamil), and classifies primary intent in ~40ms before anything else runs.
ingest · ms=42 · channel=whatsapp · lang=ms-MY · intent=quote_request
02
Entity
Resolve who is writing — customer, prospect, supplier
A "hi can come or not" from a 5-year customer ≠ the same message from a cold lead. Entity resolution dedupes across phone, email, WhatsApp ID and normalised company name so the downstream stages see the right person — with the right history.
match · Lim Wei Hao · prospect · last seen 14d ago
03
Collection
Pull prior threads, invoices, contracts, products
Loads everything CORTEX would need to answer correctly. Prior conversations, current invoice status, products they've bought, contract clauses. Limited to the artefacts strictly relevant to the resolved entity + intent — not a "load everything" dump.
loaded · 14 artefacts · 2 invoices · 3 prior threads
04
Normalisation
Standardise language, dates, currency, names
BM "esok" → "tomorrow". "RM4.250" → "RM 4,250.00". "Mr. Lim" / "Mr Lim" / "Lim Wei Hao" → canonical. Without normalisation, downstream LLM reasoning fragments on trivial format differences and Strategy picks the wrong tone.
BM → EN · RM normalised · 4 entities canonicalised
05
Memory
Recall preferences, past objections, deal stage
Stored facts you've approved over time. "Prefers WhatsApp not email." "Pushed back on Stripe last quarter." "Decision-maker is the finance director, not the GM." Memory is curated, not auto-grown — every fact has a provenance + a confidence label.
recall · 6 facts · 0 stale
06
Intelligence
Reason about the actual ask + business context
This is the reasoning step. A higher-reasoning model by default for client-facing logic, a faster model for high-volume internal work. The reasoning sees: the original message, the resolved entity, the collected context, the memory — and produces a structured answer with explicit confidence + evidence pointers.
reasoning · 1.4s · confidence=high · evidence=4 obs
07
Strategy
Choose tone, offer, escalation path
Given the Intelligence output, what should we actually do? Friendly nudge or formal escalation? Discount allowed or not (TREASURY enforces)? Auto-respond or route to a human? Strategy is the layer that maps reasoning to a concrete action plan.
strategy · upsell-soft · within margin floor
08
Verification
Fact-check against your data, not the model guess
The LLM proposed an action. Before we ship, Verification cross-checks every claim against your verified data. "Invoice was 30 days overdue" — confirmed via Module W ledger? "Bundle costs RM 2,899" — matches the pricing table? Hallucinated claims fail closed and never reach Delivery.
verified · 4/4 claims · 0 hallucinations blocked
09
Delivery
Route to WhatsApp/email/voice; gate at WATCHDOG
The action is queued for delivery on the right channel. If it's a reversible action (an info reply, a calendar booking), it ships immediately. If it's irreversible (a payment, a public post, a refund, a collections escalation), Command's WATCHDOG opens the 30-second Telegram cancel window.
queued · whatsapp · awaiting approval
10
QA
Sample-audit. PULSE writes hash. Loop closes.
Every action gets a quality score. 5% of all actions get a full re-trace audit. Patterns that fail QA inform the next-cycle calibration. PULSE writes the hash + the full trace; if anything was wrong, you can replay the exact reasoning chain that produced it.
qa · 8.4/10 · hash written · trace replayable
A REAL CORTEX RUN
marketinglancers.com.my — the founder's consultancy. Eight minutes, end-to-end. The report below is real, unsanitised.
Observations
6
from 5 collectors (crawl/seo/aeo/perf/reputation)
Insights
37
across SEO / branding / market / competitor / lead
Recommendations
8
prioritised critical / quick-win / medium / long-term
Verification flags
16
insights auto-flagged for human review by stage 8
SAMPLE RECOMMENDATIONS (REAL CORTEX OUTPUT)
WHY THIS BEATS A “RAG CHATBOT”
Vendors selling “AI agents” usually ship Intake + RAG + a single LLM call + Delivery. That's 4 of CORTEX's 10. The missing 6 are why their agents hallucinate.
| Concern | Generic RAG chatbot | CORTEX |
|---|---|---|
| Entity resolution | Treats every message as a new conversation | Dedupes across phone / email / WhatsApp / company name (stage 02) |
| Format normalisation | Sends raw user text to the LLM | BM/EN/中文 + dates + currency normalised before reasoning (stage 04) |
| Memory of prior commitments | Only what is in the prompt | Curated, provenance-tagged facts with confidence labels (stage 05) |
| Fact-checking | Trusts the LLM output | Cross-validates every claim against verified data (stage 08) |
| Approval gate on irreversible actions | Ships whatever the LLM says | Routes through Command's WATCHDOG 30s cancel window (stage 09) |
| Auditability | Logs the request + response, maybe | Hash-chained full-trace replay per action (stage 10 + PULSE) |
BEFORE YOU BUY
Ten verified checkpoints. One replayable audit chain. Zero hallucinations reaching your customer.