Skip to main content
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Use rules to guide the AI

Rules allow you to guide how the AI generates output. This is the best way to align the AI with your organization’s specific standards or provide important context for your workspace.

Think of rules as a persistent set of instructions and preferences for the AI on every task.

How to use rules

You can create multiple rules and enable or disable them as needed before starting a task.

  • Global rules: These rules apply to all your projects.
  • Workspace rules: These rules are specific to your current workspace. You can use them to:
    • Define organization-specific coding best practices.
    • Give the AI a one-time understanding of your workspace.

Best practices for writing rules

To get the best results from the AI, follow these guidelines.

  • Be minimal and focused: Keep your rules short and to the point.
  • Mark important rules as Critical: To ensure the AI strictly follows a rule, mark it as critical.
    Example: critical - All API calls must use async/await
  • What to avoid: Do not use rules for step-by-step task instructions or complex workflows. For reusable task inputs, use a Workflow Template instead.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle