Skip to content

Tools and knowledge

The Tools and Knowledge steps of the agent builder decide what an agent can reach: built-in capabilities, actions from connected programs, other agents as sub-agents, fields each person fills in for themselves, and the agent's own files. For opening the builder and moving between steps, see Build an agent.

You can open both steps once the agent is saved: give it a name in the Identity step and select Next. Both steps are marked optional. Until you add something, the Tools step shows "You do not need this step yet".

Some fields only appear when you turn on Expert mode at the top of the builder. They carry an Expert label. Once one of them has a value, it stays visible after you turn expert mode off.

The Tools step lists up to five sections on its left: Capabilities, Actions, Approved for workflows, Sub-agents and User Fields. Approved for workflows only appears in expert mode or once it is turned on.

Turn on capabilities

Capabilities are built-in functions that need no connected program.

  1. Open the Tools step.

  2. Under Capabilities, select each tile the agent needs. A selected tile shows a check mark. Select it again to turn it off.

  3. If you turned on Use skills, set up the skills below the tiles:

    • Find matching skills automatically lets the agent choose from the skills of the person chatting with it: their own skills, skills shared with them and the standard skills, as in a normal conversation.
    • Under Always included, pick standard skills the agent always has. The counter shows how many you have picked and how many you can pick, for example "0 of 8 selected".

    The skills section only appears when skills are turned on for your instance. See Skills.

The Tools step lists its five sections on the left and shows the capability tiles; two tiles are grayed out because they need another tool first.Enlarge figure
Capability, What it lets the agent do
CapabilityWhat it lets the agent do
File searchSearch the files you give the agent in the Knowledge step. While the agent has knowledge files, this tile stays on and reads "Always on while the agent has knowledge files".
Web searchLook things up on the web. The query goes to Staan, a European search service. See Search the web.
Code interpreterRun Python code to analyze data and files. See Analyze data and run code and Create Word, Excel, PowerPoint and PDF files.
Translate documentTranslate an uploaded document into other languages as downloadable files.
Ask the userPause mid-answer and ask the person a question, either as options to click or as a short form.
Use skillsOpen the skills you selected for this agent when a task matches one.
Suggest a better-suited agentOffer another agent when a request needs a system this one cannot reach. It costs about 350 tokens per message and can only be turned on once the agent has at least one other tool.
Image generationCreate an image when the person turns on Image in the conversation. Each image costs 20,000 tokens.
Propose replies for reviewWhen a workflow runs for a newly arrived email, save the reply as a draft in the mailbox and put it in Messages for review before anything is sent. This needs actions from a mailbox that supports reply proposals.

Which tiles you can turn on depends on your instance. Hover over a grayed-out tile to see why. Propose replies for review shows its reason under the label:

  • Suggest a better-suited agent: "Only for agents with at least one other tool". Add another capability, an action or a sub-agent first.
  • Propose replies for review: "Only for agents with tools from a mailbox that supports reply proposals", or "Reply proposals are switched off for this instance".
  • Image generation: "Image generation is switched off for this instance" or "No image model is configured".
  • Web search and Code interpreter: cannot be turned on if web search or the code interpreter is not set up on your instance.
  • Any other tile: if the tooltip only says "Unavailable", the function is not set up on your instance. Ask your administrator.

Add actions from integrations

An action is a single function of a connected program, such as searching mail or creating a draft. You can pick actions from every integration set up on your instance. They run with the account of whoever is using the agent, not yours, so anyone who has not connected that integration cannot run them.

  1. Under Actions, select Add actions. The Select action dialog opens.
  2. Find the action with Search actions…, or pick All actions or Integrations in the list on the left of the dialog and open an integration.
  3. Inside an integration, each action shows a badge: reads, writes or deletes, or unclear if the integration does not say. Show parameters lists what the action takes.
  4. Check each action the agent may use. It is added right away; there is no confirm button. Select all adds every action of the integration. Once every action is added, the button reads Remove all.
  5. Close the dialog.
Inside the Microsoft integration, each action shows whether it reads, writes or deletes; Create draft is checked.Enlarge figure

The added actions are grouped by integration, with a count such as 2 added. The X next to an action removes it, and Add action opens the dialog again for that integration.

If you have not connected that integration yourself, its group shows "You have not connected …". Connect it under Integrations to test the agent.

Instead of single actions, you can select Add action packages. A package grants several related actions at once: check a package to add every action in it. Your administrator creates packages in the admin console. Until then, the dialog says "There are no action packages yet."

Below the list, Tools the agent chooses between shows how many tools the agent has to pick from. The more there are, the more often the agent picks the wrong one, so grant only what the job needs.

Decide what the agent may do without asking

For every added action that writes, deletes or is marked unclear, you decide under What the agent may do on its own whether the agent asks first. Actions that the integration or your instance marks as read-only are the only ones listed without a choice, because they never ask.

  1. For each action marked please decide, pick one of the two options:
    • always ask before running: the conversation shows a card that the person confirms or cancels. Confirm actions in a conversation shows what that looks like.
    • run without asking: the action runs right away, and the conversation shows what it did afterward.
  2. If you pick run without asking, you can fill in the field "Why may this happen without asking?". The field is optional. The integration then shows a badge such as 1 without asking, and the builder's What is still missing list keeps a reminder, "… runs without asking. Only leave it that way once you have checked the case.", which does not block finishing the agent.
  3. To set every undecided action of an integration to ask first, select set all … to “always ask” for that integration. With a single undecided action, it reads set 1 to “always ask”. The button only shows while that integration has undecided actions. Actions already set to run without asking stay as they are.

Warning: On a shared agent your choice applies to everyone who uses it. An action you set to run without asking also runs without asking for them, with their own accounts.

Create draft is set to run without asking: a justification field appears, the integration shows "1 without asking", and the footer reports that the agent may only write inside a procedure.Enlarge figure

As soon as an action is set to run without asking, or a sub-agent has write rights (see Add sub-agents), the agent can only be finished or published if it already has a procedure. A procedure is a fixed sequence of steps saved with the agent: the order in which it reads, asks and creates. The builder can no longer create or edit procedures, so an agent only has one if it was saved with one earlier. The builder shows "Without asking, the agent may only write inside a procedure." in its footer and in the Behaviour step. The message suggests adding a procedure, but the builder has no way to create one. If the agent has no procedure, set the action back to always ask before running and remove the sub-agent's write rights.

Note: Your instance can also be set up so that some actions always ask, whatever you choose here. The card then appears even for an action set to run without asking.

Let the agent's code preload results

When Code interpreter is on, Preload & preprocess appears below the actions. The agent's code can fetch and process the results of the checked tools directly, without the data passing through the conversation. That helps with large results, such as a search with many hits.

  1. Find Preload & preprocess under Actions. It lists every added action.
  2. Check or uncheck each action. The row shows allowed or not allowed, and for an allowed action where the permission comes from: released by you, released by the operator (set centrally for your instance) or marked as read-only (the integration declares that the action only reads data).
  3. Under New tools, choose what happens with actions that your instance or the integration already releases but you have not checked: allowed automatically (the default) allows them, and only after you allow them lets the agent's code preload only actions you checked yourself.

Actions that write or delete, whether set to ask first or to run without asking, are always not allowed, and their checkbox cannot be changed.

Preload & preprocess: Create draft writes and is not allowed, Search messages is allowed because the integration marks it as read-only.Enlarge figure

Approve the agent for workflows

In expert mode, Approved for workflows shows the switch This agent may run unattended in workflows. If workflows are turned on for your instance, everyone who may use the agent can then set it up as a workflow for themselves, on a schedule or on an event. The approval takes effect once the change is live: when you finish the agent, or, on a finished agent, when you save or publish the change (see Build an agent).

In a scheduled run, read-only actions and actions set to run without asking go ahead immediately. An action set to always ask before running pauses the run until someone answers, and so does a question from Ask the user.

On a run started by an event, such as a new email, the rules are stricter. Anything that sends, shares or deletes waits for confirmation even when it is set to run without asking, and so do actions that are not classified. The event trigger's section What an event run may do lists which actions run without asking and which wait. See Workflows.

Add sub-agents

A sub-agent is another agent that takes over one part of the job and reports the result back. It has its own instructions, knowledge and tools, and the main agent decides when to use it. Use one when a part of the job needs its own rules or should be tested on its own. If that part only needs two or three extra sentences of guidance, add them to the main agent's instructions instead.

  1. Under Sub-agents, select Add sub-agent.
  2. Find the agent with Search agents... and select Select on its card. The list shows agents from your library. Agents that have sub-agents of their own cannot be picked.
  3. Optionally enter a Display name on the card.
  4. Under Usage hint, write one sentence telling the main agent what it uses this sub-agent for. That sentence goes into the main agent's instructions. Without a hint, the sub-agent's own description is used.
  5. Optionally, under Return contract, dependencies and write permissions, list the fields the sub-agent must hand back. With no fields it answers in free text, and the card shows Free-text answer.
Add sub-agent lists the agents in your library, each with a Select button.Enlarge figure

A sub-agent may only read unless you add an entry under Write rights for the sub-agent. You can only grant write rights in expert mode. Because the builder cannot create procedures, any entry under Write rights for the sub-agent, whether Only within a procedure or Also without a procedure (unattended), blocks finishing the agent unless it already has a procedure (see Decide what the agent may do without asking).

System prompt preview shows what the main agent is told about its sub-agents. Customize prompt replaces that text with your own, which then no longer updates when you add or remove sub-agents.

Add user fields

User fields hold details that each person using the agent fills in once for themselves, such as an email signature. On every answer, the agent gets the values of the person asking.

  1. Under User Fields, select Add user field.
  2. Enter a Label and a Field ID. The field ID cannot be changed after saving.
  3. Choose a Type: Short text, Long text, Markdown, HTML or Documents.
  4. Check Required if everyone must fill in the field before using the agent, then select Save.

People using the agent then see a gear icon, Configure agent, next to the message field. Its tooltip says whether they still need to set it up: "(not set up yet)", "(required fields missing)" or "(set up)".

If a required field is empty, sending a message opens the Set up … dialog with the heading Complete required fields. The values apply only to that person and carry over to all their conversations. Fields that a sub-agent defines are asked for under Configure agent on the main agent too, so a required sub-agent field has to be filled in before the main agent can be used. How this looks for the people using the agent is in Use agents.

Set expert limits

In expert mode, the end of the Tools step holds the limits:

  • Tool steps per answer: how many tool steps the agent may take in a row for one answer. The hint shows your instance's values, for example "Global default: 30. Maximum: 50." When the agent hits the limit, the conversation shows a Step limit reached card. Continue resumes the run; the button works until the time shown on the card.
  • Save result for code above: only with Code interpreter on. A tool result larger than this value, in KiB, is saved as a file the agent's code can read, and the agent only sees a short preview. Leave the field empty to use your instance's value, shown in the hint, for example "(16 KiB)". The field accepts 4 to 1024 KiB.
  • Max calls per turn (default 5), Max tokens per turn (200,000) and Per call timeout (ms) (180,000) cap what sub-agents may use per turn (one answer of the main agent).
  • Account binding: which account the agent uses for an integration where you have connected more than one account, for example a second mailbox. See Choose a fixed account.
In expert mode, the end of the Tools step holds the tool steps per answer, the save-result threshold for code, and the three sub-agent limits.Enlarge figure

Choose a fixed account

Account binding only appears when all of these apply:

  • expert mode is on, or an account is already set,
  • the agent is not shared with anyone,
  • the agent has actions from an integration that allows several accounts, and you have connected more than one account there.

For each such integration, pick an account, shown with its name and address, or No fixed account (chip, else default or ask). Without a fixed account, the agent uses the account chosen in the account chip above the message box, labeled Active account (see Confirm actions in a conversation), otherwise your default account, otherwise it asks. The setting applies only to you and is not passed on when you share the agent.

Start the agent from a form

If every request needs the same details, let the agent start from a form.

  1. Turn on Expert mode and open the Behaviour step.
  2. Under How does the request arrive?, choose Form.
  3. Add fields with Add field. The types are Text, Long text, Select, Number, Email, Checkbox, Date and File.

A form agent with no fields cannot be finished: the builder reports "The agent starts from a form, but the form has no fields yet."

Give the agent knowledge

  1. Open the Knowledge step.
  2. Under Files, select Attach. Choose Upload to add a new file, or Attach existing to pick one from your files. That list only shows files that have finished processing.
  3. Wait until the file shows Ready. While it shows Queued, Processing or a progress step such as Reading pages …, Creating search index or Saving, the agent finds nothing in it. Retrying shortly means a processing attempt failed and runs again on its own.
  4. For facts that always apply, select Create AGENT.md under Standing facts and write them down. The agent reads this document in full on every answer, and the step shows how many tokens that adds per answer. On a private agent, the agent can also add to AGENT.md itself.

A file marked Partial or Truncated is searchable but incomplete: some pages could not be read, or processing hit its time limit. Hover over the badge to see how many pages are missing.

The agent searches the files on every question and quotes the matching passage. It reads only the sections that match the question, not the whole file. Ask questions about your documents explains how that works.

A file marked Stale was split with older section settings. Re-embed in its row processes it again. The Re-embed … button above the list processes every stale file at once.

Expert mode adds two settings to the step:

  • What happens to uploaded files: Make searchable splits the file into sections and searches them, which is the normal case. Pass through hands the file unchanged to connected programs without making it searchable. Both does both.
  • Sections: the size of the sections a file is split into.

Troubleshooting

  • A file shows "Error": the Release step then reports that knowledge files could not be processed, and the agent cannot be finished or published while the file is attached. Remove the file with the X and upload it again. If every upload fails, file processing on your instance may not be working; contact your administrator.
  • "please decide" next to an action: it has no answer yet under What the agent may do on its own. On a shared agent, or one approved for workflows, this blocks finishing or publishing the agent. If the integration does not say whether the action only reads, it blocks a private agent as well.
  • "Without asking, the agent may only write inside a procedure.": set the action to always ask before running under What the agent may do on its own, and remove any entry under Write rights for the sub-agent. The builder cannot add a procedure, even though the message suggests it.
  • "No actions found" in Select action: either nothing matches your search, so clear the search field, or no integration with actions is set up on your instance, so ask your administrator.
  • An action shows "awaiting approval" or "fingerprint changed — blocked" in Select action: the action's current version has not been approved on your instance. Ask your administrator.
  • A sub-agent card shows "Missing: …": that agent was deleted. Anyone deleting an agent that others use as a sub-agent first sees Sub-agent is referenced and can go ahead with Delete anyway. Remove the card and pick a different sub-agent.
  • Account binding does not appear: the agent is shared, or you have connected only one account for that integration, or expert mode is off.
  • An event workflow keeps waiting for confirmation: on runs started by an event, actions that send, share or delete, and actions that are not classified, always wait for confirmation, even when set to run without asking. See Approve the agent for workflows.