Bosphorus
Contents — agentdesk

Documentationagentdesk

Running an agent

Every way to start a run — on demand, on a schedule, from Teams or Telegram, from a support ticket — what waiting for a colleague looks like, and run states.

Checked against the running product on 22 November 2026

An agent runs when you press a button, when its schedule fires, when a chat message or a support ticket reaches it, or when another of your agents hands it a request. Whatever starts it, the run belongs to a workspace — almost always yours — is made on that workspace’s key, and shows up in its Runs. Teams, Telegram and support tickets are there only where your installation has connected them.

On demand

On the agent’s page, type what it should do into What should it do this run? — for a pipeline, Input (available as {{input}}) — or leave it blank, and press Run now. An autonomous agent with no message starts from its Opening message. The run page opens at once.

On a schedule

Schedule, on the agent’s page, opens the schedule editor. Nobody needs to be signed in when it fires: the run is made with your key and attributed to you.

  • Cron expression (minute hour day-of-month month day-of-week) takes a standard five-field expression — 0 8 * * 1-5 is weekdays at 08:00 — or one of @hourly, @daily, @weekly, @monthly and @yearly. Presets are listed under the field.
  • Timezone, from a short list, is the point: “every weekday at 08:00” means 08:00 where the readers are. When the clocks change, an 08:00 job neither skips nor doubles; a local time that does not exist that night — the hour skipped when clocks go forward — does not fire.
  • If the previous run is still going: skip this fire (recommended) or queue it anyway.
  • Enabled switches the schedule on and off without deleting it; Remove schedule deletes it.
  • Next fires lists the next five, so you can check the expression before relying on it.

An agent has one schedule. A schedule fires only while the agent is active, not while it is paused. A fire that is skipped — because the previous run was still going, the agent had no saved version, or the run could not be queued — is counted on the agent’s page and under Next fires. Fires that fell due while the service was down are not replayed as a batch: the schedule runs once when the service is back, then carries on from its next time.

From Microsoft Teams

Where your installation connects Teams, you message the bot and it runs one of your agents, replies in the same chat and signs every reply with the agent’s short name and the run’s #id, so you always know which agent and which run you are talking to. You must have signed in to agentdesk once; until then the bot tells you so and runs nothing.

You send What happens
help (or agents, list) The list of your agents
a plain message Continues the run this chat is bound to. With none, it goes to your concierge — an agent holding builtin__handoff — or to your installation’s default agent, or to your only agent; otherwise the bot lists your agents
@name … (or /name …, agent:name …), where name is an agent’s short name Goes to that agent, continuing its most recent run from the last 7 days, or starting one
@name new … Starts a fresh run of that agent
#id … Talks to that run of yours — answers it if it is waiting, continues it if it has finished. #id alone switches the chat to it
sessions Lists your runs, marking the one this chat is bound to
new Starts over

The commands also work in Turkish (yardım, ajanlar, oturumlar, yeni). An @name that matches none of your agents is answered, never guessed at: the bot says it has no such agent and suggests the closest names. While a run is waiting on a question, a plain message is your answer. A pipeline is run again from the start rather than continued.

A concierge asks before it sends. When your concierge picks an agent that already has a run you could continue, it asks in the chat, with numbered options: start a fresh run, or continue one of the earlier ones. Reply with the number, a #id, an @name to send it elsewhere, or yes or no. Anything else is taken as a correction and the concierge proposes again; after two corrections it asks you an open question instead. With nothing to choose between, the request simply goes.

Questions you never answer let go. A question a run asked stops capturing your messages after a day, so a forgotten one cannot swallow everything typed in a chat; your next message is handled normally. A routing question nobody answered closes after two hours, and a question after a week; the run ends as expired. Nothing is answered on your behalf. Your installation can change these times.

Photographs of receipts. Where your installation also connects an expense service, a photo of a receipt, invoice or ticket sent to the bot is stored against you and handed to whichever of your agents can file an expense — the Expense assistant template is built for this. One photo per message is taken (JPEG, PNG, GIF or WebP; a PDF invoice goes through aimo chat instead). The agent is told that the figures read off the image are unverified and must be confirmed with you before it files anything.

From Telegram

Where your installation connects Telegram, an autonomous agent can live in one Telegram chat — a direct chat with the bot or a group — set in the Telegram section of its editor. The bot is shared by the whole platform; this binding decides which chat this agent answers in and who there may speak to it.

Field What it decides
Chat id The chat the agent lives in. Empty means no Telegram presence. Telegram does not show the id in the app: your administrator reads it for you once the bot has been added. Group ids are negative
Who may speak to it Numeric Telegram user ids or @usernames. Empty means nobody. Numeric ids are the reliable form: not everyone has a public username, and a username can be changed
Only answer when mentioned or replied to On by default, in a group; direct messages always reach it. Unticked, it answers every message from a listed person
Wake words (optional), Forum topics (optional) Extra words that wake it, and which topics of a forum-style group it answers in (empty means all; the General topic is 1)
Attribution (optional) Names a Telegram sender as a platform person, in the run record only
  • Runs are yours, whoever typed. Most people in a group are not platform users, so every run is made on the agent owner’s key and counts against the owner’s limits. Attribution changes the name on the run, never who pays.
  • The chat stays with one run, as in Teams. The bot answers On it and follow-ups continue the same run. A message sent while the agent is still working is answered Still working on the previous message and is not kept — send it again once the answer has arrived.
  • Answers are plain text, in at most three messages, followed by up to four of the files the run made — a chart, a route map. The rest stay on the run page.
  • A message from someone who is not listed never reaches the agent, and a photo with no caption is not taken as an instruction. If two agents name the same chat, the older one keeps it.

From a support ticket

Where your installation connects its ticketing system, a ticket event — a new ticket, or the requester’s reply on one — can hand the ticket to an agent, which reads it, investigates, leaves the requester a reply they can see and sets a status. Ticket events go to one agent, chosen by your installation — the Ticket responder template is built for this — and every ticket is worked as one account your installation names, so everything the agent writes on a ticket is recorded under that account.

A status change starts no run, and nothing that account does on a ticket starts one, which is what keeps the agent from answering itself. Only tickets that are open, in progress or waiting for the customer start a run, a ticket has at most one run in flight, and if no active agent of that name exists in the workspace, the event is dropped. A ticket that keeps triggering runs is stopped: five runs in fifteen minutes, or twenty in a day, and further events for it are ignored.

With a Zendesk desk instead, the run goes to the requester’s workspace when the requester is a platform user and otherwise to your installation’s duty account, and new, open and pending tickets start one.

Waiting for a colleague

An agent holding builtin__handoff_human (see Tools) asks a named colleague through Teams. They receive a card, Somebody needs your input, with the question, its context and a Send answer box. If the agent proposed an action, the card shows the tool and its arguments and adds Approve: ….

  • Approve runs the proposed call as the colleague and resumes the run with the result. It needs the colleague’s own account: they must have signed in to agentdesk once.
  • A typed reply never runs the action. The agent is resumed with the reply and told plainly that the action was not run.
  • If Teams cannot reach the colleague, they are sent an e-mail in the run owner’s name instead, linking to a web page with the same question — where your installation offers a mail tool server that the owner may use.
  • The run page shows who is being waited on, with Take it back to carry on without their answer.
  • Cancelling the run withdraws the card. A later tap is answered That request is no longer waiting for you and runs nothing.

Run states

State Means
queued Waiting for a free place — see Budgets and limits
running Working
awaiting_input It asked you something
awaiting_human It asked a named colleague
awaiting_confirmation A concierge is waiting for you to say where a request goes
succeeded Finished with an answer
incomplete A budget ran out; it can be continued
failed It could not finish; the run page says why
cancelled You stopped it
expired A question or routing question was never answered

A waiting run is not a stuck one: it resumes the moment the answer arrives, and nothing already done is done again. Pause, on the agent’s page, stops its schedule and stops chats, tickets and other agents from reaching it; Run now still works, so you can test it before Resume.