Skip to main content
Prompt templates define the system instructions that guide how agents respond to users. They are the foundation of agent behavior, determining personality, response style, and task boundaries.
Prompt Templates list showing available templates with their versions and agent assignments

Prompt Templates

Overview

A prompt template is the “brain” of an agent - it tells the AI:
  • Who it is and what role it plays
  • How to respond to users
  • What knowledge to prioritize
  • When to use tools vs. answer directly
  • How to handle edge cases
Every agent requires a prompt template. AGO supports version history so you can track changes and rollback if needed.

Prerequisites

System Requirements

  • AGO platform deployed and accessible
  • Admin access to create/edit templates

Knowledge Required

  • Understanding of AI system prompts
  • Familiarity with your use case requirements

How Prompt Templates Work

  1. User sends a message to an agent
  2. Agent retrieves relevant knowledge from the knowledge base
  3. Prompt template provides system instructions
  4. LLM generates response based on template + knowledge + user message
  5. Response is returned to user

Template Processing

The system refines your prompt template automatically:

Creating Prompt Templates

  1. Navigate to AI StudioPrompt Templates
  2. Click Create Template
  3. Enter template details:
    • Name: Unique identifier (e.g., “support-agent-v1”)
    • Type: Template category (optional)
    • Prompt Content: The system instructions
  4. Click Save

Template Structure

A well-structured prompt template typically includes:

1. Role Definition

2. Behavioral Guidelines

3. Knowledge Instructions

4. Tool Usage Instructions

5. Response Format


Example Templates

Customer Support Agent

Technical Documentation Agent

Sales Assistant Agent


Version History

AGO automatically tracks changes to prompt templates:

Viewing Version History

  1. Navigate to AI StudioPrompt Templates
  2. Select the template
  3. Click the Version History tab
  4. View all previous versions with timestamps and authors

Reverting to Previous Version

  1. In the Version History tab, find the version to restore
  2. Click Revert to this version
  3. Confirm the reversion
  4. The template is updated with the selected version’s content

Configuration Options

Template Fields


Best Practices

Writing Effective Prompts

  1. Be Specific: Vague instructions lead to inconsistent responses
    • Bad: “Be helpful”
    • Good: “Provide step-by-step solutions with numbered instructions”
  2. Define Boundaries: Clearly state what the agent should NOT do
    • “Do not provide medical advice”
    • “Do not share pricing without verification”
  3. Include Examples: Show the expected response format
    • “Example response: ‘Based on our documentation, you can…’”
  4. Prioritize Knowledge: Tell the agent how to use retrieved documents
    • “Always reference the knowledge base before answering”
    • “Cite specific articles when possible”
  5. Handle Uncertainty: Define fallback behavior
    • “If you’re unsure, offer to create a support ticket”
    • “When information isn’t available, acknowledge the gap”

Testing Templates

Before deploying a new template:
  1. Test with common user questions
  2. Test edge cases and unusual requests
  3. Verify tool usage triggers correctly
  4. Check response format consistency
  5. Use Simulation Testing for automated validation

Template Maintenance

  • Version Control: Use descriptive change summaries
  • Regular Review: Audit templates quarterly
  • User Feedback: Monitor satisfaction scores to identify issues
  • A/B Testing: Compare template variations using different agents

API Reference

For programmatic prompt template management, see the Public API v1 Reference.

Troubleshooting

Problem: Agent doesn’t follow guidelines in the template.Solutions:
  1. Move critical instructions to the beginning of the prompt
  2. Use stronger language (“You MUST…”, “NEVER…”)
  3. Add explicit examples of correct behavior
  4. Check if conflicting instructions exist
Problem: Responses are longer than desired.Solutions:
  1. Add explicit length constraints (“Keep responses under 3 paragraphs”)
  2. Include example responses showing ideal length
  3. Lower the LLM temperature for more focused responses
Problem: Agent answers when it should use a tool.Solutions:
  1. Add explicit tool usage triggers (“When the user asks X, use Y tool”)
  2. Describe tool capabilities clearly in the prompt
  3. Check tool configuration in Tools
Problem: Agent creates tickets or calls tools unnecessarily.Solutions:
  1. Add conditions for tool usage (“Only create tickets when…”)
  2. Emphasize answering from knowledge first
  3. Review tool prompts and descriptions