Skip to content

Commit 0a65493

Browse files
torimwhaleyclaude
andcommitted
Refine AI hints for better readability
Simplified AI hints across deals and leads models by: - Removing verbose explanations and reducing to essential guidance - Replacing special characters (arrows, em dashes, backticks) with plain text - Using "from X to Y" instead of arrow symbols - Using "like" instead of "e.g." with parentheses - Removing backticks around field names for cleaner appearance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 894d722 commit 0a65493

File tree

2 files changed

+33
-43
lines changed

2 files changed

+33
-43
lines changed

models/demo/deals.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ models:
55
primary_key: deal_id
66
order_fields_by: 'index'
77
ai_hint: |
8-
CloseRate Kevin: This is your primary deals model for analyzing pipeline progression and win/loss performance.
9-
Use this to measure stage-to-stage conversion (New → Qualified → PoC → Negotiation → Won/Lost), calculate win rates, and identify stalled deals.
10-
Key dimensions: `stage` (with stages: New, Qualified, PoC, Negotiation, Won, Lost), `created_date` (for cohort analysis).
11-
Core metrics: `win_rate` (won deals / total deals), stage-specific counts (`new_deals`, `qualified_deals`, `poc_deals`, `negotiation_deals`, `won_deals`, `lost_deals`), `total_amount`, `total_won_amount`.
12-
Critical for AE performance analysis. Focus on demo-to-close rates (PoC → Negotiation → Won conversion) and identifying aging deals at each stage.
13-
Default to line charts for trend analysis, with period-over-period comparisons using `created_date` dimensions.
8+
CloseRate Kevin: Primary deals model for analyzing pipeline progression and win/loss performance. Use for stage-to-stage conversion analysis and calculating win rates.
149
1510
parameters:
1611
deal_value_toggle:
@@ -46,7 +41,7 @@ models:
4641
- kpi
4742
- sales
4843
ai_hint: |
49-
CloseRate Kevin: Use `unique_deals` as the denominator for win rate and stage conversion calculations.
44+
CloseRate Kevin: Use unique_deals as the denominator for win rate and stage conversion calculations.
5045
This represents total deal volume. Break down by time period to track pipeline growth or contraction.
5146
new_deals:
5247
type: count_distinct
@@ -72,8 +67,8 @@ models:
7267
filters:
7368
- stage: 'PoC'
7469
ai_hint: |
75-
CloseRate Kevin: Use `poc_deals` to track the "demo" or proof-of-concept stagecritical for demo-to-close analysis.
76-
Calculate PoC Won conversion by dividing `won_deals` by `poc_deals`. Monitor aging PoC deals to identify stalled demos.
70+
CloseRate Kevin: Use poc_deals to track the demo or proof-of-concept stage which is critical for demo-to-close analysis.
71+
Calculate PoC to Won conversion by dividing won_deals by poc_deals. Monitor aging PoC deals to identify stalled demos.
7772
negotiation_deals:
7873
type: count_distinct
7974
groups: ['Deal Counts']
@@ -92,8 +87,8 @@ models:
9287
- kpi
9388
- sales
9489
ai_hint: |
95-
CloseRate Kevin: Use `won_deals` as the numerator for win rate calculations and stage conversion analysis.
96-
Track over time to measure sales momentum. Compare against `poc_deals` for demo-to-close performance.
90+
CloseRate Kevin: Use won_deals as the numerator for win rate calculations and stage conversion analysis.
91+
Track over time to measure sales momentum. Compare against poc_deals for demo-to-close performance.
9792
lost_deals:
9893
type: count_distinct
9994
groups: ['Deal Counts']
@@ -114,9 +109,9 @@ models:
114109
categories:
115110
- kpi
116111
ai_hint: |
117-
CloseRate Kevin: Use `win_rate` to measure overall deal closure effectiveness (won deals ÷ total deals).
118-
This is a core KPI for AE performance. Break down by time period (week, month, quarter) to identify trends.
119-
Compare period-over-period to spot declining win rates early. Pair with `loss_rate` to understand win/loss balance.
112+
CloseRate Kevin: Use win_rate to measure overall deal closure effectiveness. This is won deals divided by total deals.
113+
Core KPI for AE performance. Break down by time period like week, month, or quarter to identify trends.
114+
Compare period-over-period to spot declining win rates early. Pair with loss_rate to understand win/loss balance.
120115
groups: ['Rates & Ratios']
121116
loss_rate:
122117
type: number
@@ -153,9 +148,9 @@ models:
153148
dimension:
154149
type: string
155150
ai_hint: |
156-
CloseRate Kevin: Use `stage` to track deals through the sales funnel: New Qualified PoC Negotiation Won/Lost.
151+
CloseRate Kevin: Use stage to track deals through the sales funnel from New to Qualified to PoC to Negotiation to Won or Lost.
157152
Critical for calculating stage-to-stage conversion rates and identifying where deals stall or drop off.
158-
Filter by specific stages to analyze aging deals (e.g., deals stuck in Negotiation). Use `stage_order` for proper funnel sequencing.
153+
Filter by specific stages to analyze aging deals like deals stuck in Negotiation. Use stage_order for proper funnel sequencing.
159154
additional_dimensions:
160155
stage_order:
161156
type: number
@@ -209,8 +204,8 @@ models:
209204
- kpi
210205
- sales
211206
ai_hint: |
212-
CloseRate Kevin: Use `total_amount` to measure total pipeline value across all deal stages.
213-
Track over time to monitor pipeline health and growth. Break down by `stage` to see value distribution across funnel stages.
207+
CloseRate Kevin: Use total_amount to measure total pipeline value across all deal stages.
208+
Track over time to monitor pipeline health and growth. Break down by stage to see value distribution across funnel stages.
214209
total_won_amount:
215210
groups: ['Deal Amounts']
216211
type: sum
@@ -219,8 +214,8 @@ models:
219214
filters:
220215
- stage: 'Won'
221216
ai_hint: |
222-
CloseRate Kevin: Use `total_won_amount` to measure actual closed revenueyour core revenue KPI.
223-
Track by time period (week, month, quarter) to monitor revenue trends. Compare period-over-period for growth analysis.
217+
CloseRate Kevin: Use total_won_amount to measure actual closed revenue which is your core revenue KPI.
218+
Track by time period like week, month, or quarter to monitor revenue trends. Compare period-over-period for growth analysis.
224219
spotlight:
225220
visibility: show
226221
categories:

models/demo/leads.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ models:
55
is_admin_saas_demo: 'true'
66
primary_key: lead_id
77
ai_hint: |
8-
CloseRate Kevin: This is your primary leads model for analyzing top-of-funnel performance and SDR effectiveness.
9-
Use this to measure lead-to-opportunity conversion, identify stalled leads, and diagnose drop-off patterns by stage.
10-
Key dimensions: `sdr` (for individual rep performance), `sdr_team` (for country-level team analysis), `lead_status` (stages: new → contacted → qualified → converted).
11-
Core metrics: `conversion_rate`, `avg_days_to_convert` (funnel velocity), `unique_lead_count`, and stage-specific counts (`open_leads`, `contacted_leads`, `qualified_leads`, `converted_leads`).
12-
Join to `deals` via `deal_id` to analyze full funnel from lead creation through deal closure.
13-
Focus on period-over-period trends using `created_at` or `converted_at` time dimensions. Default to line charts for trend analysis.
8+
CloseRate Kevin: Primary leads model for analyzing top-of-funnel performance and SDR effectiveness. Use for lead-to-opportunity conversion analysis and identifying stalled leads.
149
1510
joins:
1611
- join: users
@@ -45,10 +40,10 @@ models:
4540
categories:
4641
- leads
4742
ai_hint: |
48-
CloseRate Kevin: Use `conversion_rate` to measure SDR and team effectiveness at converting leads to opportunities.
49-
Break down by `sdr` for individual performance or `sdr_team` for country-level comparisons.
50-
Trend over time using `created_at` (by week or month) to identify declining conversion patterns.
51-
Compare period-over-period (e.g., this month vs. last month) to spot performance changes early.
43+
CloseRate Kevin: Use conversion_rate to measure SDR and team effectiveness at converting leads to opportunities.
44+
Break down by sdr for individual performance or sdr_team for country-level comparisons.
45+
Trend over time using created_at by week or month to identify declining conversion patterns.
46+
Compare period-over-period to spot performance changes early.
5247
avg_days_to_convert:
5348
type: average
5449
description: "Average number of days it takes for a lead to convert"
@@ -60,9 +55,9 @@ models:
6055
categories:
6156
- leads
6257
ai_hint: |
63-
CloseRate Kevin: Use `avg_days_to_convert` to measure funnel velocityhow quickly SDRs move leads through qualification.
64-
Lower values indicate faster pipeline movement. Compare by `sdr` to identify top performers and slower reps.
65-
Group by `sdr_team` to compare country-level velocity. Rising values may signal pipeline bottlenecks or stalled leads.
58+
CloseRate Kevin: Use avg_days_to_convert to measure funnel velocity and how quickly SDRs move leads through qualification.
59+
Lower values indicate faster pipeline movement. Compare by sdr to identify top performers and slower reps.
60+
Group by sdr_team to compare country-level velocity. Rising values may signal pipeline bottlenecks or stalled leads.
6661
cost_per_conversion:
6762
type: number
6863
description: "Average cost per converted lead"
@@ -91,9 +86,9 @@ models:
9186
- leads
9287
- marketing
9388
ai_hint: |
94-
CloseRate Kevin: Use `unique_lead_count` as your base metric for total lead volume.
95-
Break down by `sdr` to measure individual workload or by `sdr_team` to compare country teams.
96-
Combine with stage-specific metrics (`contacted_leads`, `qualified_leads`, `converted_leads`) to calculate stage-to-stage conversion rates.
89+
CloseRate Kevin: Use unique_lead_count as your base metric for total lead volume.
90+
Break down by sdr to measure individual workload or by sdr_team to compare country teams.
91+
Combine with stage-specific metrics like contacted_leads, qualified_leads, converted_leads to calculate stage-to-stage conversion rates.
9792
open_leads:
9893
type: count_distinct
9994
groups: ['Lead Counts']
@@ -162,9 +157,9 @@ models:
162157
type: string
163158
label: "SDR"
164159
ai_hint: |
165-
CloseRate Kevin: Use `sdr` to analyze individual SDR performance. Critical for identifying top performers vs. underperformers.
166-
Combine with `conversion_rate`, `avg_days_to_convert`, or stage counts to measure rep effectiveness.
167-
Compare individual SDRs within the same `sdr_team` for fair benchmarking.
160+
CloseRate Kevin: Use sdr to analyze individual SDR performance. Critical for identifying top performers vs. underperformers.
161+
Combine with conversion_rate, avg_days_to_convert, or stage counts to measure rep effectiveness.
162+
Compare individual SDRs within the same sdr_team for fair benchmarking.
168163
- name: industry
169164
description: "The industry associated with the lead's company"
170165
meta:
@@ -232,7 +227,7 @@ models:
232227
format: '$#,##0'
233228
groups: ['Lead Costs']
234229
ai_hint: |
235-
Sum of attributed lead acquisition costs. Useful for calculating CAC and evaluating marketing ROI when joined to `deals.total_amount`.
230+
Sum of attributed lead acquisition costs. Useful for calculating CAC and evaluating marketing ROI when joined to deals.total_amount.
236231
spotlight:
237232
visibility: show
238233
categories:
@@ -254,7 +249,7 @@ models:
254249
dimension:
255250
type: string
256251
ai_hint: |
257-
CloseRate Kevin: Use `lead_status` to track progression through the funnel (new contacted qualified converted).
252+
CloseRate Kevin: Use lead_status to track progression through the funnel from new to contacted to qualified to converted.
258253
Filter by status to identify stalled leads or analyze drop-off rates at each stage.
259254
Combine with time dimensions to spot aging leads that need attention.
260255
- name: created_at
@@ -288,6 +283,6 @@ models:
288283
type: string
289284
label: "SDR Team"
290285
ai_hint: |
291-
CloseRate Kevin: Use `sdr_team` to compare performance across country-based SDR teams.
286+
CloseRate Kevin: Use sdr_team to compare performance across country-based SDR teams.
292287
Essential for team-level analysis and understanding regional performance differences.
293-
Group by `sdr_team` when measuring aggregate conversion rates, velocity, or lead volume by geography.
288+
Group by sdr_team when measuring aggregate conversion rates, velocity, or lead volume by geography.

0 commit comments

Comments
 (0)