Skip to main content
A prompt template holds an agent’s instructions: who it is, what it covers, how it answers and when it uses its tools. Every agent uses one. Several agents can share a template, and every change is kept in a version history you can restore from. When the agent answers, AGO sends the model the template’s instructions together with the documents retrieved from your knowledge base and the conversation.

Manage templates

Go to Agents and click Prompt Templates. The list shows each template’s name, current version, the number of agents that use it and when it was last updated. A template that agents still use cannot be deleted. To create a template:
  1. Click Create Template.
  2. Enter a Name. Names must be unique.
  3. Write the instructions in Prompt Content.
  4. Click Save.
You can also edit an agent’s instructions directly from the agent’s General tab. When the agent uses a shared template, your changes reach the other agents that use it once you publish. See Agents.

Version history

Saving changes to the prompt content creates a new version. To browse versions, open a template and click History.
  • Select a version to preview its content.
  • Click Compare and select two versions to see what changed.
  • Click Restore to bring an earlier version back. This creates a new version with the restored content, so nothing is lost.
  • Name a version to find it later, for example “Before refund policy change”.

Structure your instructions

Most good templates cover the same five parts. Role
Guidelines
Knowledge
Tools
Response format

Example templates

Writing tips

  • Be specific. “Give numbered steps” works better than “be helpful”.
  • Set boundaries. State what the agent must not do: “Do not give medical advice.”
  • Show an example. One sample answer shows the expected format better than a description.
  • Say what to do when unsure. For example: “If you are not sure, offer to create a ticket.”
  • Keep style out. Put writing style in the tone of voice, so all agents share it.
Before switching agents to a new version, test it with common questions and edge cases, and run your Simulation Testing datasets. You can also manage templates with the Public API.

Troubleshooting

  1. Move the instruction near the top of the template.
  2. Phrase it as a clear rule and add an example of the expected behavior.
  3. Look for another instruction that contradicts it.
Add a length limit (“Answer in three short paragraphs at most”) and an example of the right length. Lowering the agent’s temperature can also help.
State when to use it: “When the user asks for a refund, create a ticket.” Check the tool’s description in Tools.
Add conditions (“Only create a ticket when…”) and ask the agent to answer from the knowledge base first.