Superhuman.
How AI really works.
Follow one chat message down the spiral, end to end: tokens, embeddings, attention, prediction, tool calls, and how an agent plugs into SaaS you already use. Every stage is interactive.
You hit Enter
It starts with plain text. A system prompt (the app's hidden instructions), the conversation so far and your new message are packed into one long context.
Words become numbers
The model never sees letters. A tokenizer splits text into sub-word tokens (about 4 characters each in English), and each token maps to an ID in a vocabulary of roughly 100k+ entries.
Numbers become meaning
Each token ID is looked up in a giant table and becomes a vector of thousands of numbers. Words with similar meanings end up close together in that space. The point cloud in 3D is a tiny taste. Position information is added so word order isn't lost.
Every token looks at every other
Self-attention lets each token pull in context from the others: "invoices" attends to "overdue" and "billing". Dozens of stacked layers each refine the meaning. Tap a word to see what it attends to.
One token at a time
The final layer outputs a score for every token in the vocabulary. Softmax turns the scores into probabilities and one token is sampled. Then the whole process repeats, once per token. Temperature controls the risk-taking. Try it:
The model asks; your app acts
The model can't touch your systems. It is given tool descriptions and replies with a structured tool call. Your app runs it, appends the result to the context, and the model continues. Loop this and you have an agent.
Make any SaaS agent-ready
Wrap your existing APIs as tools, for example with an MCP server. Add per-tenant OAuth scopes, tenant isolation, human approval for risky actions, and audit logs. Your old product becomes an AI product without a rewrite. Tap a system:
The answer streams back
Tokens stream to your screen as they're generated. In production, guardrails wrap the whole loop: grounding checks, PII redaction, policy filters, cost limits and logging.
Text → tokens → vectors → attention × N → probabilities → token → (tools ↺) → answer
That's every chatbot, copilot and agent you've used, end to end. The hard part in production isn't the model; it's the engineering around it: context, tools, tenants, guardrails, cost and reliability. That's what we build at aitechvlab.