API Reference

/projects/{projectId}/knowledge/instructions

Instructions are guidelines that help direct how Wren AI generates SQL queries and responses. They allow you to define business rules, data model understanding, and query patterns to ensure consistent, accurate results aligned with your organization's specific needs.

Instructions come in two forms:

  • Global Instructions: Applied to all queries, regardless of the question asked
  • Question-Matching Instructions: Applied only when a user's question matches certain patterns or topics

Learn more at Wren AI - Instructions