@@ -18,15 +18,15 @@ Agent Rules in Cube provide a powerful way to customize and control how AI agent
1818- Domain-specific terminology
1919
2020** Example Always Rules:**
21- ```
21+ ``` text
2222Sales efficiency is deal size divided by sales cycle length
2323```
2424
25- ```
25+ ``` text
2626When analyzing customer data, always consider seasonality patterns from our retail business
2727```
2828
29- ```
29+ ``` text
3030Revenue should be calculated using our standard GAAP accounting principles
3131```
3232
@@ -41,15 +41,15 @@ Revenue should be calculated using our standard GAAP accounting principles
4141- Scenario-specific instructions
4242
4343** Example Agent Requested Rules:**
44- ```
44+ ``` text
4545If you asked to analyze sales efficiency start with correlation to WSE
4646```
4747
48- ```
48+ ``` text
4949For customer segmentation analysis, use RFM methodology (Recency, Frequency, Monetary)
5050```
5151
52- ```
52+ ``` text
5353When analyzing marketing performance, compare against industry benchmarks where available
5454```
5555
@@ -77,13 +77,13 @@ When analyzing marketing performance, compare against industry benchmarks where
7777### Domain-Specific Rules
7878
7979** E-commerce Example:**
80- ```
80+ ``` text
8181Always Rule: "Customer lifetime value equals average order value × purchase frequency × customer lifespan"
8282Agent Requested: "For cart abandonment analysis, segment by device type and traffic source"
8383```
8484
8585** SaaS Example:**
86- ```
86+ ``` text
8787Always Rule: "MRR growth rate should exclude one-time charges and setup fees"
8888Agent Requested: "When analyzing churn, differentiate between voluntary and involuntary churn"
8989```
@@ -92,7 +92,7 @@ Agent Requested: "When analyzing churn, differentiate between voluntary and invo
9292
9393Rules should provide context that agents might not inherently understand about your business:
9494
95- ```
95+ ``` text
9696Always Rule: "Our peak season is Q4, with 40% of annual revenue typically occurring in December"
9797Agent Requested: "For inventory analysis, consider our 6-week lead time for international suppliers"
9898```
@@ -111,23 +111,23 @@ Based on the rule configuration system, when multiple rules could apply to the s
111111### Example Conflict Scenarios
112112
113113** Scenario 1: Direct Contradiction**
114- ```
114+ ``` text
115115Rule A (Always): "Revenue recognition follows monthly billing cycles"
116116Rule B (Always): "Revenue should be recognized quarterly"
117117
118118Resolution: The agent will flag this conflict and may ask for clarification
119119```
120120
121121** Scenario 2: Complementary Rules**
122- ```
122+ ``` text
123123Rule A (Always): "Sales efficiency is deal size divided by sales cycle length"
124124Rule B (Agent Requested): "When analyzing sales efficiency, include pipeline velocity metrics"
125125
126126Resolution: Both rules work together - B provides additional context to A
127127```
128128
129129** Scenario 3: Specificity Override**
130- ```
130+ ``` text
131131Rule A (Always): "Use standard deviation for all variance calculations"
132132Rule B (Agent Requested): "For customer behavior analysis, use median absolute deviation instead of standard deviation"
133133
0 commit comments