Build your first agent
Building a first agent step by step: from the gallery of ready-made agents, from scratch as a pipeline or autonomous agent, or as a model-routed agent.
Checked against the running product on 22 November 2026
New agent, on the Agents page, opens a gallery of ready-made agents above two blank cards. The two things a newcomer cannot guess — instructions that work and a sensible list of tools — are exactly what a template supplies, so start there unless you already know what you want.
From a template
The gallery holds a few hundred templates, in groups; the filter box above it searches each card’s name, what it does and its group at once.
| Group | What is in it |
|---|---|
| The first group, open when the page loads | Eight agents built to work with real systems — a support desk, Microsoft Teams, the platform’s skills library and an expense service: Support intake, Ticket responder, Open ticket digest, Brief me on a ticket, Platform help desk, Router, Expense assistant and Expense approvals digest. Most need tool servers your installation may not offer |
| Maritime | Sailing assistant (Greece), an autonomous agent that answers wind, wave and passage questions with the source and its grade attached. It is made to live in a Telegram group, and needs weather, maritime and document tool servers that your installation may not offer, or may grant person by person |
| Model routing | Decision-routed assistant and LLM-routed assistant, which choose a model per request — see below |
| Eighteen groups of expert personas | Academic, Design, Engineering, Finance and so on, imported from a public library. Each is a role and a brief with six built-in tools — builtin__ask_user, builtin__web_search, builtin__web_fetch, builtin__run_code, builtin__memory_write and builtin__memory_search — and nothing that writes to any system |
The cards of the first three groups can carry a Try it with: message to paste into your first run, and a fold, Before you run it, that lists what must be true first — read it. A persona starts with slightly wider budgets than a blank agent: 14 steps and 60 minutes.
To use one, change the Name if you like and press Use this template. The agent is created
with its first version saved, ready to run, and its page opens. It is yours from then on: later
changes to the template do not reach it. A card marked rev N shows a template an administrator has
revised since it shipped — see Versions.
From scratch
Under Or start from scratch there are two cards, Pipeline and Autonomous — see Kinds of agent. Give the agent a Name and, optionally, a Description, and press Create pipeline agent or Create autonomous agent. The editor opens. Until you save it the agent is a draft and cannot run.
The editor has these parts:
| Part | What you set |
|---|---|
| Name, Description | How the agent appears in your lists and in chats |
| Model | The chat models your own key may use, and nothing else. A model the agent is already set to that the list no longer offers stays selected, marked (not currently served). If the list cannot be read, the field becomes a text box. Which models you may use is your model profile, set on the platform |
| Instructions (the agent’s own system prompt) | For an autonomous agent: its job, how it should work, what a good answer looks like. For a pipeline this is Default system prompt for llm steps |
| Tools | What the agent may use. Ticking a tool is the approval for it — see Tools |
| Steps (pipeline) | The chain, as JSON — see below |
| Behaviour (autonomous) | Opening message (used when a run supplies none), how many questions it may ask and how many colleagues it may hand the conversation to per run, and the optional reflect pass |
| Telegram (autonomous) | The chat the agent lives in, where your installation offers Telegram — see Running an agent |
| Budgets | The five limits on a run — see Budgets and limits |
Save version 1 saves it. Every later save creates the next version and leaves the earlier ones untouched. A blank agent starts on the model in your Settings (Default model for new agents); with none set there, on agentdesk’s built-in default if your key may use it, and otherwise on the first model your list offers.
A first pipeline
A new pipeline opens with a starter chain in Steps: write three search queries about the input,
search for each, then write a sourced brief from the results. It needs builtin__web_search ticked
above it. Each step has an id, a type (llm or tool) and an outputVar; an llm step has a
promptTemplate, and "outputMode": "json_lines" turns its answer, one item per line, into a list. A
tool step names a tool and its argsTemplate, and forEach fans it out over a list:
{
"steps": [
{
"id": "queries",
"type": "llm",
"promptTemplate": "Write 3 web search queries that would find current, factual sources about:\n\n{{input}}\n\nOutput one query per line, nothing else.",
"outputVar": "queries",
"outputMode": "json_lines"
},
{
"id": "search",
"type": "tool",
"tool": "builtin__web_search",
"argsTemplate": { "query": "{{item}}", "limit": 4 },
"forEach": "queries",
"outputVar": "results"
},
{
"id": "write",
"type": "llm",
"promptTemplate": "Using only these search results, write a concise, well-sourced brief on \"{{input}}\". Cite each claim with its URL.\n\n{{results}}",
"outputVar": "brief"
}
]
}
Tick every tool the steps use: a step can only call a tool on the agent’s list. A save is refused,
and the agent keeps its previous version, when the JSON does not parse, a step uses a variable no
earlier step defines, a step names a tool that is not ticked, or the chain has more than 50 steps.
agentdesk then shows That did not work, says that nothing was saved, and offers Try again and
Go back. A failed tool call fails the run unless its step sets "onError": "continue".
A first autonomous agent
Write the Instructions as you would brief a colleague: the job, the sources to use, what to do
when information is missing, and the form of the answer. Tick only the tools the job needs. If the
agent should ask before it guesses, tick builtin__ask_user — and say so in the instructions,
because a question typed into an answer reaches you only after the run has ended. If you want a
document, a chart or a spreadsheet, ask for a file by name — see
Runs, files and memory.
A model-routed agent
In the Model routing group, the two cards say Choose the selector → instead of Use this template. The page that opens, New model-routed agent, asks two questions in order: 1 · What should choose the model? — A decision model or An LLM — then 2 · Which decision model? or 2 · Which LLM?, listing only models your key may use. Name the agent and press Create agent. If no decision model is available to you, the page says so; the LLM route still works. How the choice is made is in Kinds of agent.
Try it
On the agent’s page, type into What should it do this run? (for a pipeline, Input (available as {{input}})) or leave it blank, and press Run now. The run page opens and shows the agent working. When it does what you want, give it a schedule or put it in a chat — see Running an agent.