How it works
How an AI agent works in a company
Every agent we build has the same skeleton: channels in, one brain, typed tools and read-only connectors, a gate before every action, memory and a scheduler, all inside the company's own deployment. This page explains each part.
01One brain
One brain per agent, whatever the channel.
Every channel calls the same reasoning loop. A question asked on WhatsApp, in the meeting or by e-mail reaches the same model with the same tools, the same memory and the same authority, so the answers agree. Tools are typed: each has a name, a schema for its arguments and a level, and the model can only call what is registered. Every turn leaves a record.
- 01A message arrivesFrom a meeting, the web workspace, e-mail, WhatsApp, or the scheduler.
- 02Who is askingThe team directory names the person, their role and their language.
- 03ContextTheir profile, open tasks, recent minutes and the company's facts.
- 04ReasoningThe model answers, or chooses a typed tool with typed arguments.
- 05The gateThe call is classified A, B or C in code, never by the model.
- 06The resultA runs. B parks in the approval queue. C is refused.
- 07The recordThe decision, the call and the answer are written down.
02Connectors
Read-only connectors and a written data contract.
The agent reads your business data through a connector to your database or API. The connector is read-only by construction: it exposes no write. Before we build it, we agree a data contract: which tables or endpoints the agent may read, which fields, what each field means, and the money rules that decide where a figure may appear. A request to write is refused at the connector; a change the agent may propose goes through a separate tool with level B.
Example data contractSimplified, travel company
| Table or endpoint | Fields | Meaning | Rule |
|---|---|---|---|
| reservations | order_id, order_date, agency, hotel, check_in, sell_total | One row per booking, dated by order date. | Read-only. Sell price may be quoted to the agency. |
| balances | agency, amount, currency, due_date | What each agency owes, and since when. | Read-only. Amounts only in authorised views. |
| hotel_prices | hotel, room, market, date, buy_price | What the company pays a hotel, per market. | Read-only. Never sent outside the company. |
03Authority gate
Classification, approval queue, kill switch, audit.
The model can ask for anything. What actually runs is decided by code that sits between the model and the tools. These are the four parts of that gate.
Classification
A table in code gives every tool its level. Some tools decide by their arguments: e-mail to a colleague is A, the same e-mail to an outside address is B. A tool the table does not know is B.
Approval queue
A B call is parked with its exact arguments, who asked and on which channel. A named approver approves or rejects it; on approval the call is replayed and its result stored next to it.
Kill switch
One setting stops every autonomous routine at once: no scheduled messages, no planning, no reports. People can still talk to the agent, and legal duties such as transcript retention keep running.
Audit
Decisions, agent events and the history of every task go into audit tables. The database refuses updates and deletions on them, so the record stays as it was written.
A acts and records task_create · task_escalate · send_email (colleague) · read reservations
B waits for approval send_email (outside) · stop_sale · payment_link · any unknown tool
C refused, recorded hiring and firing · salary · discipline · payments · contracts04Durable routines
Routines that survive a restart, with @solustiq/steady.
Some routines take days: an intro meeting is an invitation, a wait for the person to join, and a second invitation the next day if they did not. Such a routine must not be lost when a server restarts or a deploy goes out in the middle of it.
We wrote @solustiq/steady for this: durable, resumable multi-step jobs on the Postgres the agent already has. Each completed step is stored, a sleeping run wakes at its time, and a restart resumes at the right step. Sensitive fields are masked before storage, and runs can be encrypted at rest. It is open source under the MIT licence.
// An intro meeting as a durable flow (simplified)
steady.defineFlow("intro-meeting", async (f, who) => {
const a = await f.step("invite", () => invite(who))
if (await joined(f, a.room)) return "joined"
await f.sleep(nextDay(a.slot)) // parked in Postgres
const b = await f.step("reinvite", () => invite(who))
if (await joined(f, b.room)) return "joined"
await f.step("notify", () => tellApprover(who))
return "no_show_twice"
})05Voice and face
A meeting participant with a voice and a face.
In a meeting the agent is a participant, not a recorder. It hears, speaks, shows data and keeps order. Six parts make that work.
| Layer | Service | What it does |
|---|---|---|
| Room | Live rooms | Audio and video, the participants, the stage and the notes rail. People join from a browser on a laptop or a phone. |
| Voice | Real-time speech | Hears and speaks with low delay, so the conversation keeps the pace of a meeting. |
| Face | Real-time avatar | A real-time avatar that speaks with the agent's voice, so the team sees who is talking. |
| Brain | The same loop | In the meeting the agent uses the same tools, memory and authority as on every other channel. |
| Floor | Raise a hand | Participants raise a hand; the agent gives the floor in turn and keeps the agenda on time. |
| Minutes | Notes rail | Notes, slides shown and decisions are kept; each decision becomes a task before the room closes. |
06Deployment
One company, one deployment.
Each agent runs in a deployment of its own. Nothing is shared between companies: no tables, no keys, no memory.
- Subdomain
- The web workspace and APIs on a subdomain of their own, such as agent.yourcompany.com.
- Database
- Its own Postgres database: tasks, minutes, journal, profiles, audit tables and durable runs.
- Vault
- Model and service keys stored encrypted with AES-256-GCM, a fresh random nonce per value and an authentication tag.
- Key fallback
- For a first setup, a key can come from the deployment's environment; the vault value wins once it is set.
- Scheduled jobs
- Crons start the routines and the retention sweep that deletes transcripts after 90 days.
07Languages and tone
Each person in their own language.
Each colleague has a language in their profile, and every message to them is written in it. Times are given in Istanbul time by default, with the second zone where the team is split. Right-to-left scripts such as Persian and Arabic are set right to left, not mirrored by accident. The tone is set per agent: short, plain, polite, no emoji.
Turkishtr
“Tedarikçi fiyatını yenile” görevinin süresi doldu (14:00). Durum nedir?
Persianfa
مهلت «تمدید نرخ تأمینکننده» گذشته است (۱۴:۳۰ به وقت تهران). وضعیت چیست؟
Englishen
“Renew the supplier rate” is overdue (14:00). What is the status?
The same overdue follow-up, as the coordinator sends it in each language. The task title is sample data.
Go deeper in the field notes.
Note 06
An AI coordinator's workday, hour by hour
What a coordinator agent does from 09:00 to 21:00 in a live company: open the day, one inquiry, questions to people, the journal, and each block's limits.
Note 07
Curiosity, not alerts: how an anomaly becomes a finding and three questions
Instead of alerting on every threshold, the agent keeps a curiosity list, investigates one item a day with read-only checks, and asks only what data cannot.
Note 09
Questions people actually answer: how an agent asks a team for help
Rules for an agent asking colleagues: never ask for a figure it can read, name the possibility, one mail per person, a code per question, file the answer.
Ask us how this would fit your systems.
We read every message and reply within two working days. Starting price on request.