Skip to main content
This tutorial walks you through building a production-ready AI agent — from connecting knowledge to monitoring live conversations. Plan about 30 minutes. If you have not completed the Quickstart yet, start there. This tutorial picks up where the quickstart leaves off and covers prompt engineering, tools, testing, and monitoring in depth.

Prerequisites

  • A working AGO agent from the Quickstart (knowledge source connected, agent created, permissions set)
  • Admin or staff permissions

1

Plan Your Agent's Scope

Before refining your agent, define clear boundaries:
A focused agent performs much better than one that tries to handle everything. Start narrow, then expand.
2

Check Knowledge Quality

Good answers depend on good source content.
  1. In the admin sidebar, click Knowledge, then select Quality
  2. Review the quality scores for your documents
  3. Fix any flagged issues (missing titles, thin content, outdated information)
Spend time here — knowledge quality directly affects response accuracy.For details, see Knowledge Quality.
3

Write a System Prompt

A good prompt is the single biggest lever for agent quality. Open your agent in the agent builder and go to the Prompt section.Example prompt:
For writing techniques, see Prompt Engineering.
4

Add Tools

Tools let your agent take actions beyond answering questions.
  1. In the agent builder, go to Tools
  2. Enable the Ticketing tool for human escalation
  3. Optionally enable:
    • HTTP Request — fetch data from external APIs
    • Send Email — send notifications
    • Parameterized Search — advanced knowledge retrieval
For each tool, write a clear description of when the agent should use it. The agent relies on this description to decide.See Tools for all available options.
5

Test with Simulation

Before deploying to real users, validate your agent with automated tests.
  1. In the admin sidebar, click AI Studio, then select Agent Lab
  2. Create a test dataset with sample questions and expected behaviors
  3. Run the simulation
  4. Review results — check for accuracy, tone, and correct tool usage
  5. Fix issues in your prompt or knowledge, then re-run
Include edge cases — off-topic questions, adversarial inputs, and questions the agent should escalate.
See Simulation Testing for the full testing workflow.
6

Deploy

Choose how your users will interact with the agent:
7

Monitor and Improve

Your agent is live — now keep it performing well.
  1. Enable the Thread Evaluator — automatically scores every conversation for resolution quality. See Thread Evaluator.
  2. Review the Performance Dashboard — track resolution rates, satisfaction, and trends. See Performance Dashboard.
  3. Browse Conversations — spot issues by reading real interactions. See Conversations List.
  4. Act on Feedback — use satisfaction data to identify improvement areas. See Feedback Analytics.
Set up a review cadence:

Checklist

  • Agent scope and boundaries defined
  • Knowledge quality reviewed and issues fixed
  • System prompt written with clear rules and escalation criteria
  • Ticketing tool enabled for escalation
  • Simulation tests passing
  • Deployed to at least one channel
  • Thread evaluator enabled

What’s Next