Skip to main content
In this tutorial you create a support agent that answers from your knowledge base, opens a ticket when it can’t help, and passes a first set of automated tests.

Prerequisites


1

Create the Agent

  1. Navigate to Agents
  2. Click Create Agent and choose Agent
  3. On the General tab, under Identity, enter:
    • Agent: support-agent (the internal name)
    • Display Name: Support Assistant (what users see)
2

Write the Instructions

The instructions define what the agent covers, how it answers and when it escalates.
  1. On the General tab, under Instructions, select New prompt in Template
  2. Enter a Prompt Title (e.g., Support agent)
  3. In Prompt Content, paste this starting point and adapt it to your product:
To give all your agents the same writing style, set a Tone of Voice instead of repeating it here.
3

Connect Knowledge and Tools

  1. Switch to the Context tab
  2. Under Available Knowledge Sources, select the sources that contain your support documentation
  3. Leave Docs to Retrieve at its default (8) — you can tune it later
  4. Switch to the Capabilities tab. AGO gives every agent a ticketing tool by default, so you don’t need to add one. Add other tools under Available Tools if needed
4

Choose Who Can Use the Agent

  1. Switch to the Permissions tab
  2. Under Agent Visibility, select the permissions whose users should see the agent
  3. Click Save
See Agent Permissions.
5

Test Manually

  1. On the agent’s page, click Test agent to open a conversation beside the editor
  2. Try these messages:
If the agent can’t find relevant content, check that:
  • The source finished syncing (see Knowledge > Sources > View Sync History)
  • The source is selected on the agent’s Context tab
  • Your documents actually cover the topic
6

Check Retrieval in Search Lab

Search Lab shows which documents come up for a question, without running the agent.
  1. Navigate to Knowledge > Advanced > Search Lab
  2. Type a test question in Message (e.g., “How do I reset my password?”) and select your agent
  3. Click Search
  4. Review the documents and their Similarity score
If the right document ranks low, improve its title and headings, or add the way users phrase the question to the document as a related question. See Search Lab.
7

Create a Simulation Test

A dataset lets you rerun the same questions every time you change the agent.
  1. Navigate to Agents > Agent Lab and open Datasets
  2. Click Create Dataset, enter a Dataset Name, and add test cases:
  1. Save the dataset
  2. Click Start New Run, select your agent, and start the run
  3. Open the results and check each failed test
See Simulation Testing.
8

Iterate and Improve

If the agent gives wrong answers

  • Add specific instructions for the problem topics
  • Check that the knowledge base has accurate, up-to-date content
  • Check retrieval in Search Lab

If the agent creates tickets too often

  • Tighten the escalation rules: “Offer a ticket only after you have tried the documentation”

If responses are too long

  • Add a length limit and an example of the right length to the instructions
  • If you selected a custom model under Model, lower its Temperature (try 0.1–0.3)

If answers on a critical topic vary

  • Add the authoritative document under Pinned Documents on the Context tab
Each time you change the agent, run the dataset again and publish when the results improve.

What’s Next