Skip to content
Loopwix Docs

Writing good guidelines

Write usage guidelines that make your AI agent answer accurately: say when to use and not use each item, state restrictions, and test the result.

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?

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

  • 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

FieldGoodWeak
PurposeShipping rates and delivery times for UK ordersShipping
When to useQuestions about cost, speed or tracking of UK deliveriesAny question
When not to useInternational orders, returns(empty)
Answer styleShort, with the delivery window firstBe helpful
RestrictionsDo not promise delivery dates; give the window(empty)

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

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

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

Use Test your knowledge with questions that should and should not use the item, then adjust the guidelines and test again.

Was this page helpful?

Last reviewed 2026-11-21

On this page