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.
- Navigate to AI Studio > Prompt Templates
- Click Create Template
- Enter a Name (e.g.,
support-agent-v1) - In the prompt editor, paste this starting template:
- Click Save
2
Create the Agent
- Navigate to AI Studio > Agents
- Click Create Agent
- 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-v1template you just created
- Name:
Configure Knowledge (Context Tab)
- Switch to the Context tab
- Under Knowledge Sources, select the sources containing your support documentation
- Leave Documents to Retrieve at the default (8) — you can tune this later
Configure Tools (Capabilities Tab)
- Switch to the Capabilities tab
- 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)
- Switch to the Access Control tab
-
Assign the agent to the appropriate user groups (e.g.,
Defaultto make it available to all users) - Click Save
3
Test Manually
Before running automated tests, verify the agent works with a few manual conversations.
- Open the chat widget or portal
- Select your Support Assistant agent
- 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.
- Navigate to AI Studio > Search Lab
- Select your agent
- Enter a test query (e.g., “How do I reset my password?”)
- Click Run Search
- Review the results:
- Similarity score: How closely each document matches (0–1)
- Reranked score: Score after reranking (if enabled)
- Chunk: The text segment retrieved
- 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.
- Navigate to AI Studio > Agent Lab
- Click Create Dataset
- Add test cases — each with a user message and what you expect:
- Save the dataset
- Click Run Simulation
- 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:- Add more tools — Connect external APIs, send emails, or display rich UI components
- Set up multi-agent routing — Create specialized agents for different domains
- Write better prompts — Advanced prompt engineering techniques
- Monitor quality — Run simulations regularly to catch regressions
- Enable satisfaction feedback — Collect user feedback after responses
Related
- Agents — Full agent configuration reference
- Prompt Templates — Template management and versioning
- Agent Best Practices — Design patterns and common pitfalls
- AI Debugger — Troubleshoot retrieval and responses
