Skip to content

Build an agent

The agent builder is where you set up an agent of your own: its name, instructions, knowledge, tools and who may use it. Anyone who sees Agents in the sidebar can build one. Whether agents are available depends on your instance (your provider decides) and, in a multi-tenant setup, on your tenant's settings. If agents are off for you, there is no Agents entry. To use agents that already exist, see Using agents.

Start a new agent

  1. In the sidebar, open Agents.
  2. Under Created by you, click the New Agent card. The "Create an agent" screen opens and asks "How would you like to start?"
  3. Click one of the three ways in. The list on the left shows the steps ahead.
Create an agent offers three ways to start and, with expert mode on, lists all eight builder steps on the left.Enlarge figure
Option, What happens
OptionWhat happens
Start blankThe builder opens on the first step and you fill in everything yourself, starting with a name.
Get AI help (Beta)You describe the agent in the AI help column, and AI help fills in the builder fields for you.
Start from a templateYou copy a ready-made agent from "Choose a template" and adapt the copy.

On your first visit a short product tour, "Agent Builder", walks through the screen. Don't show again hides it for good.

Start with AI help

  1. Click Get AI help. The AI help column opens next to the builder and asks "What should your agent do?"
  2. Describe the job in one sentence, or click one of the examples such as Answer emails.
  3. AI help follows up with specific questions. Most can be answered with one click. Use Write it instead to answer in your own words, or Skip to leave a question out.
  4. Every change shows up in the conversation. Go to field takes you to the field it changed, and Undo reverts that change.
  5. To carry on by hand, click Continue without AI help. You can reopen the column later with AI help at the top of the builder.

AI help changes only this agent, and you still finish and publish it yourself. On an agent that is already finished, AI help writes into a draft, and the live agent stays unchanged until you publish. Files are the exception: a file you attach through AI help is available to everyone who uses the agent right away, even before you publish. Intra AI asks "Share the file right away?" first. Choose Add anyway or Cancel.

If the option reads "Not available on this instance", your instance has no suitable model for it; ask your administrator to set one up.

Start from a template

  1. Click Start from a template. The "Choose a template" overview opens, with a search field at the top.
  2. Open a template and click Duplicate.
  3. The dialog lists What the copy contains and What does not travel. Confirm with Duplicate.
  4. The builder opens your copy on the Identity step. It has the template's name followed by "(Copy)".

The overview lists only templates an administrator has approved. If none are approved yet, it says "No templates yet". Anyone can submit an agent as a template; see Sharing and publishing agents.

Your copy is a finished, private agent, so the Release step has no Finish button. See Duplicate an agent for how saving works.

Basic mode and expert mode

In basic mode, the builder has six steps. The Expert mode switch in the top right "Reveals extra fields and the Workflow and Testing steps." Extra fields are marked Expert. Intra AI remembers the setting for your account.

If you switch expert mode off again, anything you already set there stays visible. An agent with test cases, for example, keeps its Testing step, and the counter reads "Step 2/7" instead of "Step 2/6".

Step, What you set, Added in expert mode
StepWhat you setAdded in expert mode
IdentityName, description, gallery appearanceNone
BehaviourInstructions, model, style, memory, personal profile, notificationsForm input, failure rules, advanced model settings
KnowledgeFiles and standing facts (AGENT.md)File handling, sections
ToolsCapabilities, actions, sub-agents, user fieldsApproved for workflows, tool steps per answer
TeamMembers and groupsPublish as template
WorkflowWhen the agent runs for you on its ownWhole step is expert only
TestingTest cases run against the saved version, test environmentWhole step is expert only
ReleaseChecklist and FinishNone

Move between steps with Next and Back, or click a step in the bar at the top. Steps marked "optional" can stay empty.

Above the steps, the builder has the tabs Build, History and Operations. History and Operations appear once the agent has been created, after Next on the Identity step. History lists the published versions of a finished agent. Operations shows how the agent is used and where it fails: turns, users, error rate and cost per turn, turns per day, figures by version and failed tool calls, over 7, 30 or 90 days. It contains tool names, codes and identifiers only, never conversation text. Only the owner, co-editors and system administrators see Operations.

Help on steps and fields

Each step has a collapsible "What this step is for" section with an example, right under the step title. Many fields have an info button ("Open the explanation for …") that says what the field does and shows "How to do it well" and an "Example".

Identity

This is what your colleagues see in the agent list.

  1. Under Name, enter a short name that says what the agent does, such as "Quote assistant". It is the only required field on this step. Until you enter it, the footer reads "1 thing left".
  2. If you like, expand Gallery appearance. There you choose an Icon (your own PNG, JPG, WebP or GIF up to 10 MB, or one from the library), a Category, the Thumbnail gradient and Tags.
  3. In the same section, add sample questions under Conversation starters. They appear as buttons when someone starts a new conversation with the agent.
  4. Under Description, write one sentence on when to pick this agent (up to 300 characters). Once you share the agent, a description is required.
  5. Click Next. Intra AI now creates the agent, and from here on the builder saves automatically.

Behaviour

The Behaviour step sets the instructions, the model and how the agent answers.

  1. Write the Instructions the way you would brief a new colleague: the role first, then the rules, then the shape of the answer. Say what the agent should do when a detail is missing. The instructions apply to every answer.
  2. To get going faster, pick one of the three Templates: Assistant, Extractor or Reviewer. If the field already has text, the template replaces it after asking you. From library inserts a saved template and lets you choose Replace or Append. Afterward, fill in every blank in square brackets, such as "[team]".
  3. Optimize suggests a reworked version. It stays grayed out while the field is empty. Accept replaces your text with the suggestion. Discard keeps your text. Optimize is only available if your instance has it set up; otherwise a message says "The optimiser is not configured on this instance. Ask an administrator." If optimizing fails, your original text stays as it was.
  4. Choose a Model. The picker groups the models by provider and shows what the highlighted one can do, for example whether it reads attached images and how much text it can take in. Which models appear depends on what your instance offers. When in doubt, keep the preset. If the model can think before answering, Thinking and How long the model thinks control how thorough it is. More thinking takes longer and costs more.
  5. Under Style, set Language, Answer length and Formality. The middle settings (Match the question, Neutral and Medium) are the defaults and add no extra instruction. If the agent should always answer in one language, pick that language instead of Match the question.
  6. Decide on Use memory. On (the default), the agent may use memories about the person asking and write new ones after an answer. Memories always belong to the person, never to the agent. Turn it off for agents that should give everyone the same answer. See Memory.
  7. Decide on Use personal profile. On (the default), the agent sees the personal profile the person asking has published, such as their role and how they like answers. Turn it off if the agent should ignore that. The company profile reaches the agent either way.
  8. Select Allow user notifications if people should be able to get a notification for each request when the answer is ready or the agent needs their input.
The Behaviour step shows Style and the Use memory and Use personal profile switches, both on by default, with the preview on the right.Enlarge figure

Expert settings on the Behaviour step

Expert mode adds these settings:

  • "How does the request arrive?": Prompt (Standard) for free chat, or Form when the same details are needed every time. With Form, click Add field and give each field a name, a type (Text, Long text, Select, Number, Email, Checkbox, Date or File), an optional description and whether it is Required. The preview shows the form as people will see it.
  • "What the agent reads besides your instructions" is a note with no setting. It explains that the User Fields from the Tools step are added automatically, filled with the values of whoever is asking. Name those fields in your instructions. You do not need to insert placeholders.
  • Failure rules: what the agent does and says when the system answers with a known error message. Click Add rule for each case. Under "When none of these match" you set what the agent says when it stops.
  • Creativity, Maximum answer length and Top P adjust how the model writes its answers. Creativity and Top P appear only for models that accept them; with other models you see only Maximum answer length.
With Form selected, the agent asks for its input through three required fields, and the preview shows the form with Send.Enlarge figure

Knowledge

Under Files, attach the material you want the agent to quote from, such as handbooks or price lists. Click Attach and choose Upload, or Attach existing for files you have already uploaded. You can also drag files onto the drop zone. The agent can only find a file once it shows as ready.

Under Standing facts, click Create AGENT.md to write a short document of facts that always apply. Write the text and click Save in the editor; the builder does not save this document automatically. The agent reads it in full on every answer, and the builder shows how many extra tokens (the units the model counts text in) that adds to each one.

On a private agent, the agent can also add to its AGENT.md itself. If it changed the document while you were editing, you see "The agent updated this document. Review and reapply your changes." Reload latest (discard mine) loads the agent's version and drops your edits. Keep editing keeps your text in the editor.

How files are processed is covered in Tools, knowledge and sub-agents.

Tools

Under Capabilities, choose what the agent can do without a connected program, for example Web search or Code interpreter. Actions grants tools from your connected integrations, and Sub-agents lets other agents take over parts of the job. User Fields are filled in once by each person for themselves, such as their own email signature. Grant only what the job needs. Which capabilities and integrations you can choose from depends on your instance.

Tools that create, send or delete something ask before they run unless you explicitly allow them to run without asking. The details are in Tools, knowledge and sub-agents.

Team

Under Members, add people. A Member can only use the agent. A Co-editor may change its instructions, knowledge and tools. Only the owner can change a member's role.

Under Groups you share the agent with whole groups at once: select the groups and click Save. Only the owner and co-editors see this section. If you are not in any group, it reads "You are not in a group yet. Your administrator assigns them." and there is nothing to select.

Nobody you add sees the agent until you finish it on the Release step.

In expert mode, the owner also sees Publish as template. It stays locked until the agent is finished ("You can only submit it as a template once the agent is finished on the "release" step.").

Roles, visibility and templates are explained in Sharing and publishing agents.

Workflow and Testing

Both steps appear in expert mode. A step you already use, such as Testing with saved test cases, stays visible after you switch expert mode off.

  • Workflow schedules when the agent runs for you on its own. Whether workflows are available depends on your instance (your provider decides) and, in a multi-tenant setup, on your tenant's settings. The agent also needs Approved for workflows selected and saved on the Tools step. See Workflows.
  • Testing lets you write test cases and run them against the saved version. It is also where you set the Test environment for live runs. See Testing and evaluating agents.

Finish the agent

  1. Open the Release step. It sums up every step at the top, and Change takes you back to the right place.
  2. Check Health. It shows whether the model is available, the state of each tool, and how much of the available room the instructions and standing facts take up.
  3. Check What is still missing. Fix every red item before you finish. Yellow items are suggestions. Each item takes you to the place where you fix it. An agent that can create or send something gets the note "This agent can create or send something. It asks first, and extra rules apply to that."
  4. When it says "Everything is done. You can finish the agent.", click Finish. If only suggestions are left, it reads "Nothing blocks the release. 1 note is still open." (or "… notes are still open."). You can finish anyway.
  5. "Agent is ready" appears, with Use to open the agent in a new conversation right away. The agent now shows "Live · v1".
The Release step sums up each step and shows Health with the model state and the tool table, and the Finish button below.Enlarge figure

Next time you edit a finished agent, the builder opens on the Release step. You get there with Edit in the agent's details, which the owner and every co-editor can use.

After Finish the agent shows Live · v1, the message Agent is ready offers Use, and the header has Save as draft and Save.Enlarge figure

Save and publish changes

Until the agent is finished, the builder saves your changes on its own. The header reads "Saves automatically", "Saving…", "Saved", "Saved, except unfinished entries" or "Not saved". "Saved, except unfinished entries" means an incomplete entry, such as a conversation starter or a failure rule, is not saved yet. Complete it and the builder saves it too.

You always save two things yourself: the standing facts (AGENT.md), with Save in their editor, and group sharing on the Team step, with Save below the group list.

After you finish, you save with Save at the top, or with Ctrl+S (Cmd+S on a Mac) from any step. The same goes for a copy of an agent or a template, because a copy starts out finished.

  • On a private agent, the change takes effect immediately.
  • On a shared agent, Intra AI asks "This agent is live — edit as a draft instead?" Choose Edit as draft or Save live anyway.

Warning: Save live anyway changes the agent at once for everyone who uses it. A draft keeps your changes to yourself until you publish them.

To work with a draft:

  1. Click Save as draft at the top of the builder. A banner says "Editing a draft — everyone else still sees the published agent."
  2. Make your changes and click Save draft.
  3. To try it out, select Use this draft in my chats or Let other users opt into testing it.
  4. Click Publish and describe the change under "What changed?". For a shared agent that now behaves differently, the note is required and needs at least 10 characters.
  5. Confirm with Publish. The draft replaces the live agent for everyone.

Discard draft throws the draft away. Earlier versions are on the History tab (see Sharing and publishing agents).

Try the agent in the preview

From the Behaviour step onward, the builder has a preview. It shows the agent's name, model, formality and answer length.

  • On a wide screen, the preview sits to the right of the builder. If it is collapsed, click the panel icon on the right edge ("Expand preview").
  • On a phone, tap the speech-bubble icon at the top ("Open preview").
  • While AI help is open, there is no separate preview column. Test on AI help's Try it tab instead.

Test it now at the top of the preview puts the cursor in the preview's input box.

  1. Type a question into the preview's input box and send it.
  2. The agent answers with whatever is in the builder right now, saved or not.
  3. The arrows icon ("Maximize chat") gives the preview the full window. After the first message, New preview starts over.
The maximized preview in Proposal mode shows a test request and the agent's quote as a table.Enlarge figure

For a form agent, the preview shows the form with Send instead of an input box, and New form starts over. A file field cannot be used there ("File upload not available in preview"). Test it now does not appear for form agents.

If the agent has tools that create or send something, the preview shows a Proposal / Live run switch. In the preview it only shows the mode: answers there are always proposals, so the agent shows what it would create or send, and nothing is actually created or sent. Live run cannot be selected in the preview.

To let the agent really write to a test system, use the Testing step (expert mode): pick a Test environment there, save it, then choose Live run. See Testing and evaluating agents.

Warning: Never pick the system that holds your real data as the test environment. A live run really creates or sends things there.

Note: Every preview message is a real model request and comes out of your token balance. The preview uses neither the standing facts (AGENT.md) nor memory. To see how the agent handles its standing facts, use the Testing step or a regular conversation.

Duplicate an agent

  1. Under Agents, click the agent's card to open its details.
  2. Click Duplicate.
  3. Check What the copy contains and What does not travel, then confirm with Duplicate.
  4. The copy is added to your agents and opens in the builder on the Identity step. It has the original's name followed by "(Copy)".

The copy is already a finished, private agent, so you do not need to finish it. Save your changes with Save at the top, because a copy does not save automatically. Later changes to the original never reach it.

Export and import the configuration as YAML

YAML is a plain-text format that holds the whole agent configuration.

  1. At the top of the builder, open More actions (the three dots) and choose Import or export YAML…. The "Import or export YAML" dialog opens.
  2. The Preview tab shows the whole configuration as text. Click Copy, or click Download YAML.
  3. To import, paste YAML on the Edit tab and click Apply to form. Recognized fields fill the builder, and the builder jumps to the Release step. If the agent did not exist yet, Intra AI creates it at this point. If the dialog lists keys under "Ignored keys", it stays open so you can read them; otherwise it closes.
  4. Reset to current throws away what you typed in the dialog.

Values you apply are saved like any other change. An uploaded icon image is not part of the YAML.

Troubleshooting

  • "This step needs a saved agent": the agent does not exist yet. Enter a name on the Identity step and click Next, or use Back to Identity.
  • Finish is grayed out: there is still a red item under What is still missing. After inserting a template, for example, you may see "The instructions still contain a blank in square brackets, such as [team]." Click the item and fix it.
  • "Please decide: should … ask before running?": on the Tools step, decide whether that action asks first.
  • "Files are still being processed. Until that is done the agent finds nothing in them.": wait until the file shows as ready.
  • The preview says "Please select a model first": pick a Model on the Behaviour step.
  • Live run cannot be selected in the preview: that is expected. Live runs happen only on the Testing step, after you save a Test environment there.
  • "You can view this agent, but not edit it.": you are a member or another viewer of this agent. Only the owner and co-editors can edit it. Ask the owner to make you a Co-editor.
  • "This agent comes from the instance configuration and cannot be edited here.": the agent is managed in your instance's configuration, so nobody can change it in the app. Ask your administrator.
  • "Invalid YAML syntax." on import: check the indentation and colons in what you pasted. Nothing in the form has changed.