Skip to content
Skilled Agents

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.

How an agent worksInside the company's own deployment: messages arrive from the channels (meetings, web, e-mail, WhatsApp) and the scheduler. All of them go to one brain, the same reasoning loop. The brain calls typed tools and read-only connectors; the connectors read the company's systems outside the deployment. Every call passes the authority gate: A acts, B waits in the approval queue for a person, C is refused. Actions are recorded in the audit log. Memory holds people profiles, the journal and tasks.your deploymentown subdomain · own database · your keyschannelsmeeting · web · e-mail · WhatsAppone brainthe same loop for every channeltoolstyped tools, read-only connectorsgateA acts · B waits · C refusedactionstasks, mail, reports, recordedmemorypeople,journalschedulerapprovalqueueaudit logyour systemsdatabase or API, unchangedread only

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.

  1. 01A message arrivesFrom a meeting, the web workspace, e-mail, WhatsApp, or the scheduler.
  2. 02Who is askingThe team directory names the person, their role and their language.
  3. 03ContextTheir profile, open tasks, recent minutes and the company's facts.
  4. 04ReasoningThe model answers, or chooses a typed tool with typed arguments.
  5. 05The gateThe call is classified A, B or C in code, never by the model.
  6. 06The resultA runs. B parks in the approval queue. C is refused.
  7. 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

An example data contract: tables, fields, meaning and rules
Table or endpointFieldsMeaningRule
reservationsorder_id, order_date, agency, hotel, check_in, sell_totalOne row per booking, dated by order date.Read-only. Sell price may be quoted to the agency.
balancesagency, amount, currency, due_dateWhat each agency owes, and since when.Read-only. Amounts only in authorised views.
hotel_priceshotel, room, market, date, buy_priceWhat 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 · contracts

04Durable 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"
})
Each step runs once; after a restart the flow resumes at the first step that has not completed.

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.

The parts of a voice meeting
LayerServiceWhat it does
RoomLive roomsAudio and video, the participants, the stage and the notes rail. People join from a browser on a laptop or a phone.
VoiceReal-time speechHears and speaks with low delay, so the conversation keeps the pace of a meeting.
FaceReal-time avatarA real-time avatar that speaks with the agent's voice, so the team sees who is talking.
BrainThe same loopIn the meeting the agent uses the same tools, memory and authority as on every other channel.
FloorRaise a handParticipants raise a hand; the agent gives the floor in turn and keeps the agenda on time.
MinutesNotes railNotes, 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.
The deployment of one agentOne company's deployment, inside the dashed line: the web app on its own subdomain, its own Postgres database (tasks, minutes, journal, audit tables and durable runs), a vault with the company's keys encrypted with AES-256-GCM, and scheduled jobs. The team reaches it from a browser, e-mail, WhatsApp and voice. The app calls the model, speech, meeting, avatar and e-mail providers with the company's own keys, and reads the company's systems through a read-only connector.your teambrowser · phone · e-mail · voiceyour deploymentweb app and agentagent.yourcompany.comdatabasetasks · minutesjournal · auditvaultyour keysAES-256-GCMcronsroutines, retentionone company per deployment:no shared tables, keys or memoryyour keysAI and voiceyour accountsLanguage modelReal-time speechMeeting roomsAvatarE-mailyour systemsdatabase or APIread only

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.

All twenty notes

Ask us how this would fit your systems.

We read every message and reply within two working days. Starting price on request.