Skip to main content
This tutorial walks you through creating a support agent from scratch. By the end, you’ll have a working agent that answers questions from your knowledge base, creates tickets for unresolved issues, and can be tested with automated simulations.

What You’ll Build

A customer support agent that:
  • Answers questions using your documentation
  • Creates support tickets when it can’t resolve an issue
  • Responds in a friendly, professional tone
  • Can be tested and debugged before going live

Prerequisites

  • Admin access to your AGO platform
  • At least one knowledge source connected and synced (see Knowledge Setup Tutorial)
  • An LLM model configured in your platform settings

1

Create a Prompt Template

The prompt template defines how your agent behaves — its personality, rules, and response style.
  1. Navigate to AI Studio > Prompt Templates
  2. Click Create Template
  3. Enter a Name (e.g., support-agent-v1)
  4. In the prompt editor, paste this starting template:
  1. Click Save
Start simple. You can always refine the prompt after testing.
2

Create the Agent

  1. Navigate to AI Studio > Agents
  2. Click Create Agent
  3. In the General tab, configure:
    • Name: support-agent (internal identifier)
    • Display Name: Support Assistant (what users see)
    • Icon: Pick an emoji (e.g., 💬)
    • Prompt Template: Select the support-agent-v1 template you just created

Configure Knowledge (Context Tab)

  1. Switch to the Context tab
  2. Under Knowledge Sources, select the sources containing your support documentation
  3. Leave Documents to Retrieve at the default (8) — you can tune this later

Configure Tools (Capabilities Tab)

  1. Switch to the Capabilities tab
  2. The ticketing tool is added automatically to all agents by default. If you’ve disabled this global setting, add the Ticketing Tool manually from the tools list.

Set Permissions (Access Control Tab)

  1. Switch to the Access Control tab
  2. Assign the agent to the appropriate user groups (e.g., Default to make it available to all users)
  3. Click Save
3

Test Manually

Before running automated tests, verify the agent works with a few manual conversations.
  1. Open the chat widget or portal
  2. Select your Support Assistant agent
  3. Try these test messages:
If the agent can’t find relevant content, check that:
  • The knowledge source is synced (green status)
  • The source is assigned to this agent in the Context tab
  • Your documents actually cover the topic
4

Debug with Search Lab

Use the AI Debugger to understand why the agent retrieves certain documents.
  1. Navigate to AI Studio > Search Lab
  2. Select your agent
  3. Enter a test query (e.g., “How do I reset my password?”)
  4. Click Run Search
  5. Review the results:
    • Similarity score: How closely each document matches (0–1)
    • Reranked score: Score after reranking (if enabled)
    • Chunk: The text segment retrieved
If relevant documents rank low:
  • Check your document titles and headings — they help retrieval
  • Consider enabling the Reranker in the agent’s Context tab
  • Try rephrasing the query to match how users actually ask
5

Create a Simulation Test

Simulations let you test your agent automatically against a dataset of expected interactions.
  1. Navigate to AI Studio > Agent Lab
  2. Click Create Dataset
  3. Add test cases — each with a user message and what you expect:
  1. Save the dataset
  2. Click Run Simulation
  3. Review the results — check that each response matches your expectations
6

Iterate and Improve

Based on your testing:

If the agent gives wrong answers

  • Refine the prompt template — add specific instructions for problem topics
  • Check if the knowledge base has accurate, up-to-date content
  • Use Search Lab to debug retrieval

If the agent creates tickets too often

  • Adjust the prompt: “Only create tickets when you’ve exhausted all knowledge base answers”
  • Review the ticketing tool’s prompt to make trigger conditions clearer

If responses are too long

  • Add to the prompt: “Keep responses under 3 paragraphs”
  • Lower the Temperature setting in the agent’s General tab (try 0.1–0.3)

If responses vary too much

  • Lower the Temperature to reduce randomness
  • Add pin documents with authoritative answers for critical topics

What’s Next

You now have a working support agent. Here are ways to extend it: