Skip to main content
An agent’s instructions (its prompt template) tell it who it is, what it covers and when to escalate. They are one part of what the agent receives: AGO also gives it the documents retrieved for the question, the tone of voice, and a description of each tool. Good instructions focus on what only you can say, and leave the rest to the setting made for it. For template management and example templates, see Prompt Templates.

Put Each Instruction in the Right Place

Keeping product facts in documents means one update fixes every agent, and the agent can cite the source. Keeping style in the tone of voice keeps all your agents consistent.

Define the Scope and the Limits

Name the product and the audience, then list what the agent must not do:
A precise scope reduces off-topic answers and makes escalation rules easier to write.

Tell the Agent How to Use the Documents

The agent receives the documents AGO found for the question. Say what to do when they don’t contain the answer:
If the agent says it doesn’t know although the document exists, the problem is retrieval, not the instructions: check the question in Search Lab.

Write Escalation Rules

Every agent has a ticketing tool by default. Tie it to explicit conditions:
Vague rules (“when you can’t help”) cause too many or too few tickets.

Set the Answer Format

The chat displays Markdown: lists, tables, links and code blocks (see Message Formatting). State the format you expect:
One example answer shows the expected length and format better than a description.

Handle Unclear Questions

Limit clarifying questions: users who must answer several before getting help score low on Efficiency and Customer Effort.

Test Every Change

Changes to an existing agent go to a draft until you publish.
  1. Click Test agent and try the questions the change is meant to fix, plus a few that already worked.
  2. Run your Agent Lab dataset against the draft and compare the success rate with the previous run.
  3. Publish, then watch the CX Score dimensions over the next days.

Common Mistakes

  • Restating the documents in the instructions. Product facts in the prompt go stale and can’t be cited. Put them in the knowledge base.
  • Contradicting rules. “Always answer in one sentence” and “give step-by-step instructions” pull in opposite directions. Read the full template for conflicts.
  • Rules without examples. For an important behavior, add an example of the expected answer.
  • Writing style in every agent. Use the tone of voice once instead.