Skip to content

Agents

An agent is an AI member of your organization. Like a person, it has a name, a photo, roles and a place in your chats. Unlike a person, it follows standing instructions you write, works at any hour and can look things up and make changes in Vigil directly.

You find agents under Directory → Agents in the console.

Agents take on the checking, chasing and writing that a control room does all shift:

  • Answer questions from guards and managers in a chat, by text or voice note.
  • Ask the guard at a site to walk a patrol, then follow the scans as they come in.
  • Check whether somebody is signed in on a site’s device, and sound a sign-in request when nobody is.
  • Sign a guard out when their shift is over.
  • Notice changes, such as a person joining or a beacon being moved, and act on them.
  • Build a report from what was recorded and publish it as an artifact.

Every organization starts with one agent, called Operations. Vigil creates and maintains it:

  • It holds the owner role, so it can do anything in your organization.
  • It is instructed to do for a person only what that person is allowed to do themselves. If you ask for something you lack the permission for, it tells you which permission is needed.
  • It greets every new member, in a direct chat, the first time they join.
  • You can change its name, description and photo. You cannot change its instructions or roles, or remove it. In the agent list it carries the badge Default.

Anyone in the organization can message it, from the console or from a device, to ask how something works, look something up or make a change.

You need the permission to create agents. The manager, admin and owner roles have it.

  1. Choose Directory → Agents, then Add agent.

  2. Fill in the form:

    Field Required Notes
    Agent photo No Upload a picture. You can pick a built-in bot on the agent’s page afterwards.
    Name Yes What people see in chats, such as Night desk.
    Description No One line on what the agent is for.
    Instructions Yes Its persona, its responsibilities and how it should respond.
  3. Choose Add agent.

  4. Open the Permissions tab and choose Edit roles. A new agent has no roles, so it can do nothing in your organization until you give it some. You can only grant permissions you hold yourself.

Instructions are plain language. Say who the agent is, what it is responsible for, when it should act without being asked, and who it should tell. For example:

You are the night desk for Rosebank Mall.
Every hour from 18:00 to 06:00, check that somebody is signed in on the Rosebank
devices. If nobody is, request a sign-in on the nearest device.
At 22:00, 01:00 and 04:00, ask the signed-in guard to patrol all the Rosebank beacons
within 30 minutes. If a patrol is late or missed, tell Thandi Nkosi in her chat.
At 06:00, post a short summary of the night in the "Rosebank managers" chat.

Instructions describe the job. They do not start it. After you save them, message the agent once, for example “Set up your schedules from your instructions”, and check its Schedules tab. See Schedules.

An agent does nothing until something wakes it. Each time it wakes it does one run.

What happens Does the agent wake?
A person sends a message in a direct chat with the agent Yes
A person mentions the agent with @ in a group chat Yes
A person posts in a group chat without mentioning it No
One of the agent’s schedules falls due Yes
One of the agent’s triggers fires Yes
Another agent, a device or a webhook posts a message No

When several messages arrive close together, for example when a device comes back online, the agent waits a few seconds and answers them together in one run.

  • Post messages: text, voice notes, photos and files, in the chat that woke it or any other chat it belongs to. It can open a direct chat with a person.
  • Look things up and make changes in Vigil, within its own roles and only in your organization.
  • Use Vigil’s core skills, which teach it how to request patrols and sign-ins, sign users out, manage default chats and set triggers. See Skills.
  • Work with files in a private workspace. It can look at a photo sent in the chat, read the transcript of a voice note, keep notes between runs, and create files to send, such as a spreadsheet.
  • Show progress. While it works, the chat shows a short status line, such as “Checking tonight’s patrols”.

An agent answers in the form you used: text for text, a voice note for a voice note.

A schedule wakes an agent at set times with a task, such as “every weekday at 08:00, post yesterday’s patrol summary”. Each schedule has its times, a time zone and the task.

The agent sets and clears its own schedules, and it can only do that while it is running. To add one, ask the agent in a chat: “Every weekday at 08:00, post yesterday’s patrol summary in the managers’ chat”, or “Set up the schedules your instructions describe”. The Schedules tab of the agent lists each task, its schedule and when it is next due. An agent can have up to 20.

A trigger wakes an agent when something changes in your organization. It names one event, optionally the specific records to watch, and the task to do. As with schedules, the agent sets its own triggers when a person asks it to in a chat. An agent can have up to 20.

Area Events an agent can listen for
People A person joined, had their roles changed, or left
Invitations Sent, claimed, accepted, declined or cancelled
Sites Created, changed or archived
Beacons Registered, changed, archived, assigned to a site or taken off one
Devices Linked, unlinked or renamed
Agents and skills Created, changed or archived
Roles Created, changed or deleted
Artifacts Created, changed, archived, shared by link or unshared
Cameras A gateway was linked, or a new camera was discovered
Organization Details or settings changed

An agent needs permission to read the kind of record it is watching. Its own changes never fire its triggers.

Triggers cover changes to your setup. Things that happen during a shift, such as a beacon scan or a vehicle at the gate, are messages in a chat. In its direct chat with a guard, each of them wakes the agent. In a group they do not, but the agent can read them the next time it runs.

The Runs tab lists each time the agent ran: when it started, who or what woke it, the message, the status, the number of attempts, how long it took and how much AI work it used, counted in tokens.

Opening a run shows the message it was given, the earlier conversation, and every step the agent took, including each tool it called and what came back. Choose Export to download the run as a Markdown file.

Run history can include the content of chats you are not in, so it has its own permission, View agent runs. By default only the admin and owner roles have it.

Open the agent and choose Remove from organization. The agent loses access straight away. Its profile and its messages are kept.