# Writing good guidelines (/docs/knowledge/writing-good-guidelines)

> How to write usage guidelines that make an agent answer accurately: be specific about when to use and not use content, state restrictions, and test the result.

Type: guide | Status: ga | Last reviewed: 2026-11-21

Guidelines are short instructions attached to one knowledge item. You can let Loopwix draft them with **Generate with AI**; either way, you make them precise.

## How do I stop my agent using the wrong document? [#how-do-i-stop-my-agent-using-the-wrong-document]

Write precise usage guidelines for each knowledge item. Say exactly what it covers and when not to use it, and state any restrictions, such as never quoting prices it doesn't contain. Describe the answer style you want. Then test the result in Test knowledge or Test chat.

## Principles [#principles]

- **Be specific about scope.** "Use for questions about shipping times and costs" beats "Use for shipping".
- **Say when not to use it.** "Do not use for returns; see the Returns policy."
- **State restrictions.** "Never quote prices not in this document."
- **Describe the answer style.** "Short, with the delivery window first."
- **Write for the agent, not the customer.** Guidelines are instructions, not answers.
- **One entry per line.** Short lines are easier to follow than paragraphs.

## Example [#example]

| Field | Good | Weak |
|---|---|---|
| **Purpose** | Shipping rates and delivery times for UK orders | Shipping |
| **When to use** | Questions about cost, speed or tracking of UK deliveries | Any question |
| **When not to use** | International orders, returns | (empty) |
| **Answer style** | Short, with the delivery window first | Be helpful |
| **Restrictions** | Do not promise delivery dates; give the window | (empty) |

## When several items overlap [#when-several-items-overlap]

If two items could answer the same question, use **When not to use** to separate them: "Do not use for international orders; see International shipping". Use **Priority** to prefer the better one when scores are close.

## Time-limited content [#time-limited-content]

For sales and seasonal policies, set **Effective from** and **Expires on** on the AI instructions tab. The agent then stops using them on time.

## If you used Generate with AI [#if-you-used-generate-with-ai]

Read every line. Remove claims the document does not support, narrow broad statements, and add restrictions the draft missed. The draft is a starting point.

## Check your work [#check-your-work]

Use [Test your knowledge](/docs/knowledge/test-your-knowledge) with questions that should and should not use the item, then adjust the guidelines and test again.
