Is dynamic conditions possible in manual qm sampling?
Chelsey Sordello
Published:
02/25/26 10:50 PM
2 views
0
2
Use case: Client wants to sample 1000 cases/week for one team. There are three conditions to consider; NRR macro application, Closed macro application, and Send to Team macro application. They want the distribution of each condition to be based on the distribution of macro usage overall each week. Is this type of dynamic sampling possible? Question to Rovo and response saying it is not attached, along with the static sampling rule I've created. 
Question: in sprinklr, i am building a sampling rule for manual quality audits. i want to sample cases from three buckets, and have the count of cases from each bucket be based on the distribution of macros applied on all cases
Rovo Answer:
You’re basically trying to do proportional stratified sampling based on macro usage, then split that into 3 audit buckets.
Let me restate the goal in Sprinklr terms and then walk through how to set it up:
- You have a population of cases (e.g., all handled cases for a day/week).
- Each case has a Macro Applied value.
- You want to:
- Look at the overall distribution of macros across all cases (e.g., Macro A = 50%, Macro B = 30%, Macro C = 20%).
- Sample an audit set whose macro mix mirrors that distribution.
- Then put those sampled cases into 3 buckets, where each bucket still keeps that same proportional macro distribution.
Because the native “Sampling Rules” UI doesn’t (yet) do full-blown proportional allocation by a dynamic metric directly, you typically get there with a combination of:
- A baseline audit volume (total cases to be sampled).
- One or more Views / Dashboards / Reports to compute proportions.
- Either:
- Multiple parallel sampling rules by macro group, or
- A single rule that uses a classification field you pre‑compute.
Below is the cleanest, maintainable approach I’d recommend.
Step 1 – Decide your total sample and bucket design
First, pick:
- Total sample size for the period (e.g., N = 300 cases / week).
- Number of buckets: 3 (e.g., Bucket A, B, C).
- How you want cases split across buckets:
- Option 1 – Equal by count: each bucket gets N/3 cases.
- Option 2 – Equal by weight: each bucket gets ~⅓ of each macro’s sampled cases (better for proportionality).
I’ll assume:
- 300 total audits/week.
- 3 buckets (100 cases each).
- Within each bucket, keep the macro distribution equal (each bucket gets ⅓ of each macro’s sample).
Step 2 – Get your macro distribution from reporting
Use Reporting/Insights first to get stable proportions.
- Build a Case-level widget / view filtered to your scope:
- Channel(s) you care about (FB, X, IG, LinkedIn, etc.).
- Time window matching your audit period (e.g., last 7 days).
- Only “Completed” or “Closed” cases that are eligible for audit.
- Bucket by Macro Applied:
- Group by field: Macro Applied (or your org’s equivalent field, like Last Macro Applied).
- Measure: Count of Cases.
- Export the macro distribution:
- For each macro (or macro group), calculate:
- Macro Share = Count for Macro / Total Count.
Example result:
Macro |
Cases |
Share |
Macro_A – Billing |
5,000 |
50% |
Macro_B – Tech |
3,000 |
30% |
Macro_C – General |
2,000 |
20% |
Total |
10,000 |
100% |
Step 3 – Convert distribution into per‑macro sample targets
Now apply those shares to your 300-case sample:
- Macro_A: 50% of 300 → 150 cases
- Macro_B: 30% of 300 → 90 cases
- Macro_C: 20% of 300 → 60 cases
If you want equal macro distribution per bucket:
- Each bucket size = 100
- Per bucket:
- Macro_A: 50% of 100 → 50 cases
- Macro_B: 30% of 100 → 30 cases
- Macro_C: 20% of 100 → 20 cases
You can keep these numbers in a quick reference sheet; you’ll use them to configure rules and/or quotas.
Step 4 – Translate this into Sprinklr sampling rules
There are two main patterns that usually work well:
Pattern A – Multiple sampling rules by macro, then round‑robin buckets
Use one sampling rule per macro (or macro group), each with its own target count, then assign buckets in a systematic way.
- Create 1 Rule per Macro Group
For each macro group:
- Rule name: Audit Sample – Macro_A – Weekly
- Filter:
- Time window: e.g., Cases created/closed in last 7 days
- Macro Applied = Macro_A
- Any other constraints (language, queue, region, etc.)
- Sample size:
- Target count: 150 (per week), or
- Percentage such that, given volumes, you land close to 150.
Repeat for Macro_B and Macro_C using 90 and 60 respectively.
- Use a field to assign buckets (1, 2, 3)
Because Sprinklr doesn’t random-split into buckets natively, you typically:
- Add a custom field on Case: Audit Bucket (values: 1, 2, 3).
- Use a rule / rule engine / workflow to assign buckets in a round‑robin or hash fashion among sampled cases.
Common pattern:
- When case is flagged for Manual Audit (by your sampling rule), run a Rule:
- If Audit Bucket is empty:
- Set Audit Bucket = (Total audits selected mod 3) + 1 or equivalent logic using internal counters or routing logic.
- Or simpler, if you already have a randomization or hashing field (like Case ID last digit), you can:
- Last digit 0–3 → Bucket 1
- 4–6 → Bucket 2
- 7–9 → Bucket 3
This gives you three buckets where the macro mix is preserved because:
- You’ve already fixed macro proportions at the sampling stage.
- Bucket assignment is random or evenly distributed among the sampled set.
- Create Views/Queues per Bucket
- Bucket 1 view: Manual QA – Bucket 1 → filter Audit Bucket = 1.
- Bucket 2 view: Audit Bucket = 2.
- Bucket 3 view: Audit Bucket = 3.
Your auditors (who are already auto-assigned from a work queue) can each be mapped to one or more buckets as needed.
Pattern B – Pre-classify cases and drive sampling via a “Macro Group” field
If you have many macros and don’t want a separate sampling rule per macro:
- Create a “Macro Group” or “Macro Category” field on cases.
- Use rule logic to:
- When a macro is applied:
- Set Macro Group = Billing / Tech / General, etc.
- Re-run your distribution analysis on Macro Group instead of individual macros.
- Create sampling rules per Macro Group rather than per macro.
- E.g., 50% Billing group, 30% Tech group, 20% General group.
This lets you keep the rule set compact and still approximate macro-based proportionality.
Step 5 – Make it dynamic over time (optional but recommended)
If your macro usage shifts, you don’t want to manually recalc percentages every week.
Two lighter-weight options:
- Quarterly or monthly re-baseline
- Re-run the macro distribution report once a month/quarter.
- Adjust the target counts in your sampling rules accordingly.
- Use broad macro groups with stable ratios
- Group macros into 3–5 big categories whose share doesn’t swing daily.
- Sample by those groups, not by each individual macro.
True fully-dynamic auto-recalculated sampling (e.g., “sample at a rate that keeps macro sample share = macro population share in real‑time”) usually needs a custom backend job or a more complex workflow. If you’re interested, we could sketch how that might look as a rule+classification+dashboard loop.
Step 6 – Validate that your buckets are actually proportional
After you deploy:
- Build a small QA dashboard:
- Filter: Flagged for Manual QA = Yes.
- Breakdown 1: Macro Applied (or Macro Group).
- Breakdown 2: Audit Bucket.
- Compare:
- Macro distribution across all audited cases.
- Macro distribution within each bucket.
- They should be roughly aligned with your expected 50/30/20 (or your actual distribution).
- Adjust:
- If one macro is consistently over/under-sampled:
- Tweak its rule’s percentage/target count.
- If one bucket is under-filled:
- Check your bucket-assignment logic (modulo logic or hash mapping).
Summary
To get “3 audit buckets whose case counts are aligned to the overall macro distribution,” you’ll typically:
- Use Reporting to compute macro (or macro-group) shares.
- Convert those shares into per-macro sample targets.
- Implement:
- Either one sampling rule per macro/macro-group, or
- A sampling rule driven by a Macro Group case field.
- Assign sampled cases into 3 buckets using a simple, even distribution method (round-robin or hash on case ID).
- Verify with a dashboard that your bucket-level macro distributions match expectations.
Question
Updated
3 days
Comments
There are no comments!
Related Conversations
Jaimie Selwa
2 years
519 views
Cristopher Cravioto Garcia responded
9 months
ago
Hello, 👋 My name is Jaimie and I'm one of the Customer Advocacy Managers. Along with @Rupali Verma, we manage the Sprinklr Champions program. Welcome to the Community and our group! We'll use this space to share updates, executive opportunities, and gather feedback from you, our valued custome
3
519
0
Karla Prado
3 years
442 views
Carlos Lara responded
5 months
ago
Hello everyone,I'm interested in integrating Sprinklr with Power BI to personalize my information. However, I haven't been able to find any documentation on the API itself. The only resources I came across were third-party platforms that require a fee for this integration. Has anyone successfully in
9
442
0
Hernan Rodriguez
2 years
430 views
rodriguez responded
5 months
ago
Good morning, I am wondering if it is possible to add music or audio to an Instagram post. When I upload/schedule, I use the Quick Publish widget and I don't see it there. If it is currently not possible, I think it would be a really neat tool!
8
430
0
Jordana Gustafson Wright
1 year
170 views
marsh responded
5 months
ago
Hi Everyone! I wanted to share a success story we published a few weeks back with Deutsche Telekom. They're rolling out Sprinklr Service in their contact centers across Europe — they have a couple hundred agents already onboarded and expect to have 40k+ once the project is fully implemented. I loved
9
170
0
paulo.henrique
3 years
193 views
Jay Elango responded
3 years
ago
Estou criando uma apresentação e não entendo como ela está classificando por Classificar por. Seria possível ordenar alfabeticamente, ou criar alguma regra para esta ordenação?
8
193
0