Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife’s Rule Engine.
Listen to this pageabout 3 min
Rule groups are the organisational backbone of the Rule Engine. They are not just folders — they are the mechanism that determines which members a set of rules applies to and how much those members can earn in aggregate. Every earning rule must belong to a rule group.
For each group with a linked segment, checks whether the transacting member is in that segment
Evaluates every rule inside each qualifying group
Awards rewards from all matching rules across all qualifying groups simultaneously
A member can earn from multiple rule groups in a single transaction. For example, a Gold tier member can earn base points from an “All Members” group and a tier bonus from a “Gold Members” group at the same time — as long as both groups are active and the member is in each group’s segment.
Internal label shown in reports, audit logs, and the maker-checker queue
Description
Optional explanation of the group’s purpose
Linked Segment
If set, rules only apply to members in this segment. Leave unset to apply to all members.
Point Limit
Maximum points a member can earn from this group per transaction
Daily Cap
Maximum points per member per day across all rules in this group
Monthly Cap
Maximum points per member per calendar month
Lifetime Cap
Maximum points per member ever — once reached, no further earning from this group
Status
Active or Inactive — toggling pauses all rules in the group instantly
Group-level caps are distinct from rule-level caps. A rule-level cap limits earning per transaction for that specific rule. A group-level cap limits total earning across all rules in the group combined, over a time period.
A well-designed program typically uses several rule groups with clearly separated purposes:
Rule Group: Base Earning (no segment — applies to all members) └── Rule: 1 point per ₹1 spentRule Group: Gold Member Promotions (segment: Gold tier) └── Rule: 2x multiplier on weekends └── Rule: 500 bonus points on birthdayRule Group: New Member Welcome (segment: Enrolled in last 30 days) └── Rule: 3x points on first 3 transactionsRule Group: Partner Scheme – Brand X (segment: Brand X customers) └── Rule: 5 points per ₹1 at Brand X outlets
Each group is managed independently. Pausing Gold Member Promotions has no effect on Base Earning. Enabling a new seasonal group for a limited campaign doesn’t require touching existing groups.
You can also create a rule group directly while building a segment. Use the + Create New Rule Group button inside the segment creation form. The group is automatically linked to the parent segment. After creation, go to Rule Engine to add earning rules to the group.
Toggling a rule group between Active and Inactive takes effect immediately for new transactions. It does not retroactively apply or reverse points already awarded from rules in that group.When the Maker-Checker workflow is enabled for the Rule Engine, activating or deactivating a rule group requires approval before taking effect.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Loyalife","colors":{"primary":"#1f4ed1","light":"#8cacdc","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/loyalife/ksULTTip3kyJevRO/logo/loyalife-white.svg?fit=max\u0026auto=format\u0026n=ksULTTip3kyJevRO\u0026q=85\u0026s=a72a67c89b471a92b1ef7e0eb71f5375","dark":"https://mintcdn.com/loyalife/ksULTTip3kyJevRO/logo/loyalife-white.svg?fit=max\u0026auto=format\u0026n=ksULTTip3kyJevRO\u0026q=85\u0026s=a72a67c89b471a92b1ef7e0eb71f5375"},"favicon":"https://mintcdn.com/loyalife/_cp2wwsDM4f64usV/favicon.svg?fit=max\u0026auto=format\u0026n=_cp2wwsDM4f64usV\u0026q=85\u0026s=c142cd6416508590f92af8ff9a28160c","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"}},"background":{"color":{"light":"#FFFFFF","dark":"#06182D"}},"navbar":{"links":[{"href":"https://www.xoxoday.com/loyalife/demo","label":"Talk to sales"}]},"footer":{"socials":{"linkedin":"https://linkedin.com/company/xoxoday","youtube":"https://www.youtube.com/c/xoxoday","instagram":"https://www.instagram.com/xoxoday_official"},"links":[{"header":"Xoxoday","items":[{"label":"Privacy Policy","href":"https://www.xoxoday.com/privacy"},{"label":"Terms of Service","href":"https://www.xoxoday.com/terms"},{"label":"Cookie Policy","href":"https://www.xoxoday.com/cookies"},{"label":"Trust Center","href":"https://trust.xoxoday.com"},{"label":"Talk to sales","href":"https://www.xoxoday.com/loyalife/demo"},{"label":"Partner Centre","href":"https://internal-wiki.xoxoday.com/partners/overview"}]}]},"integrations":{"ga4":{"measurementId":"G-MDCJPH3N79"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","grok","assistant","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Support","icon":"envelope","href":"https://xoxoday-30135.zendesk.com/hc/en-us/requests/new"},{"anchor":"Loyalife","icon":"globe","href":"https://loyalife.xoxoday.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"loyalife","hasAudioNarration":true,"actualSubdomain":"loyalife","customDomains":["help-loyalife.xoxoday.com"],"gitSource":{"type":"github","owner":"giftxoxodev","repo":"mintlify-loyallife","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6acf647d8cb1216fb5d159cb","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"default","tag":"User Guides","count":53},{"language":"default","tag":"Release Notes","count":50},{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Platform","count":13},{"language":"default","tag":"Partners \u0026 Promotions","count":11},{"language":"default","tag":"Campaign Management","count":8},{"language":"default","tag":"Transactions","count":6},{"language":"default","tag":"Loyalty Features","count":6},{"language":"default","tag":"Rule Engine","count":6},{"language":"default","tag":"Member Management","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"cs@xoxoday.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"#content-area h1{color:#1A1A1A!important}#content-area h2{color:#2B2B2B!important}#content-area h3{color:#373737!important}#content-area h4{color:#444444!important}.mdx-content p,.mdx-content li{color:#37352F!important}.mdx-content a{color:#1f4ed1!important}.mdx-content a:hover{color:#173da8!important}.mdx-content :not(pre)>code{background-color:#F0EFED!important;color:#37352F!important;border:1px solid #E2DDD6!important;border-radius:3px!important;font-size:0.875em!important}#content-area thead tr{background-color:#F8F7F5}#content-area th{color:#37352F;border-color:#E7E4DE!important;font-weight:600}#content-area td{color:#6B6966;border-color:#EDEAE4!important}#content-area tbody tr:hover{background-color:#FAFAF8!important}#content-area hr{border-color:#E7E4DE!important}.codeblock-light pre{background-color:#1E1E1E!important;border-radius:8px!important}.dark #content-area h1{color:#FFFFFF!important}.dark #content-area h2{color:#EFEFEF!important}.dark #content-area h3{color:#E2E2E2!important}.dark #content-area h4{color:#D4D4D4!important}.dark .mdx-content p,.dark .mdx-content li{color:#A9B8CC!important}.dark .mdx-content a{color:#8cacdc!important}.dark .mdx-content a:hover{color:#b3c9e8!important}.dark .mdx-content :not(pre)>code{background-color:rgba(255, 255, 255, 0.07)!important;color:#C9C9C9!important;border:1px solid rgba(255, 255, 255, 0.11)!important;border-radius:3px!important;font-size:0.875em!important}.dark #content-area thead tr{background-color:rgba(255, 255, 255, 0.03)}.dark #content-area th{color:#E5E5E5;border-color:rgba(255,255,255,0.12)!important;font-weight:600}.dark #content-area td{color:#A9B8CC;border-color:rgba(255,255,255,0.08)!important}.dark #content-area tbody tr:hover{background-color:rgba(255, 255, 255, 0.03)!important}.dark #content-area hr{border-color:rgba(255,255,255,0.12)!important}.dark .code-block pre{background-color:#04101E!important;border-radius:8px!important}.dark [data-callout-type=\"note\"]{background-color:rgba(37, 99, 235, 0.08)!important;border-color:rgba(37, 99, 235, 0.35)!important}.dark [data-callout-type=\"warning\"]{background-color:rgba(217, 119, 6, 0.08)!important;border-color:rgba(217, 119, 6, 0.35)!important}.dark [data-callout-type=\"tip\"]{background-color:rgba(22, 163, 74, 0.08)!important;border-color:rgba(22, 163, 74, 0.35)!important}.dark details{border-color:rgba(255,255,255,0.12)!important}.dark details summary{background-color:#0B2038!important;color:#E2E2E2!important}.dark details[open]{background-color:#06182D!important}.xoxo-home{--xh-heading: #0b1220;--xh-text: #5b6472;--xh-strong: #0b1220;--xh-link: #1f4ed1;--xh-border: rgba(11,18,32,0.1);--xh-card: #ffffff;--xh-search-bg: #ffffff;--xh-search-border: rgba(11,18,32,0.14);--xh-chip-bg: rgba(31,78,209,0.1);--xh-chip: #1f4ed1;--xh-copy: #8792a0;min-height:100vh;background:radial-gradient(80rem 50rem at 50% -12%, rgba(10,81,232,0.22), transparent 60%),\n radial-gradient(46rem 34rem at 6% -4%, rgba(10,81,232,0.16), transparent 58%),\n radial-gradient(46rem 34rem at 96% -2%, rgba(246,184,71,0.20), transparent 58%),\n #ffffff;background-repeat:no-repeat}html.dark .xoxo-home{background:radial-gradient(72rem 44rem at 50% -16%, rgba(10,81,232,0.34), transparent 60%),\n radial-gradient(40rem 30rem at 10% -6%, rgba(10,81,232,0.16), transparent 58%),\n radial-gradient(38rem 28rem at 92% -4%, rgba(246,184,71,0.10), transparent 56%),\n #06182D;background-repeat:no-repeat;--xh-heading: #ffffff;--xh-text: #8b99a8;--xh-strong: #ffffff;--xh-link: #6f9bff;--xh-border: rgba(255,255,255,0.1);--xh-card: rgba(255,255,255,0.03);--xh-search-bg: rgba(255,255,255,0.04);--xh-search-border: rgba(255,255,255,0.14);--xh-chip-bg: rgba(111,155,255,0.15);--xh-chip: #6f9bff;--xh-copy: #6b7887}.xoxo-home img.xh-light{display:block}.xoxo-home img.xh-dark{display:none}html.dark .xoxo-home img.xh-light{display:none}html.dark .xoxo-home img.xh-dark{display:block}.xh-pcard{box-shadow:0 1px 2px rgba(11,18,32,0.04), 0 12px 30px rgba(11,18,32,0.06)}html.dark .xh-pcard{box-shadow:0 1px 2px rgba(0,0,0,0.3)}.xh-alink{transition:opacity 0.15s ease}.xh-alink:hover{opacity:0.65}body:has(.xoxo-home) #navbar [id^=\"search-bar-entry\"],body:has(.xoxo-home) #navbar [id^=\"assistant-entry\"]{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border:0!important}#navbar,#navbar-transition{background:#06182D!important;color-scheme:dark;color:#ffffff!important}#navbar .text-gray-800,#navbar .text-gray-700,#navbar .text-gray-600,#navbar .text-gray-500{color:#ffffff!important}#navbar [id^=\"search-bar-entry\"]{background:transparent!important;box-shadow:0 0 0 1px rgba(255, 255, 255, 0.85)!important}#navbar [id^=\"search-bar-entry\"],#navbar [id^=\"search-bar-entry\"] *{color:#ffffff!important}#navbar [id^=\"search-bar-entry\"] input::placeholder{color:rgba(255, 255, 255, 0.85)!important;opacity:1!important}#navbar [id^=\"assistant-entry\"]{background:#ffffff!important;box-shadow:none!important}#navbar [id^=\"assistant-entry\"],#navbar [id^=\"assistant-entry\"] *{color:#0b1220!important}.nav-tabs{margin-left:0!important;margin-right:auto!important;justify-content:flex-start!important}.nav-tabs [class*=\"h-[1.5px]\"]{height:4px!important;border-radius:2px!important}#navbar .nav-tabs-item:not([data-active=\"true\"]){color:rgba(255, 255, 255, 0.7)!important;transition:color 0.15s}#navbar .nav-tabs-item:not([data-active=\"true\"]):hover{color:#ffffff!important}.nav-tabs-item[data-active=\"true\"]{color:#ffffff!important}.nav-tabs-item[data-active=\"true\"] [class*=\"h-[1.5px]\"]{background:#F6B847!important}#navbar .nav-tabs{flex:1 1 auto}#navbar .nav-tabs>button.nav-tabs-item[aria-haspopup=\"menu\"]{margin-left:auto;padding-left:25px}#navbar .nav-tabs>button.nav-tabs-item[aria-haspopup=\"menu\"]::before{content:\"\";position:absolute;left:0;top:50%;transform:translateY(-50%);width:1px;height:18px;background:rgba(255, 255, 255, 0.22)}.eh-home{--eh-heading: #0b1220;--eh-text: #55606f;--eh-muted: #8792a0;--eh-accent: #1f4ed1;--eh-accent-soft: rgba(31, 78, 209, 0.09);--eh-border: rgba(11, 18, 32, 0.1);--eh-card: #ffffff;--eh-card-hover: rgba(31, 78, 209, 0.28);--eh-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.05);color:var(--eh-heading)}html.dark .eh-home{--eh-heading: #ffffff;--eh-text: #9fb0c4;--eh-muted: #6b7887;--eh-accent: #6f9bff;--eh-accent-soft: rgba(111, 155, 255, 0.14);--eh-border: rgba(255, 255, 255, 0.1);--eh-card: rgba(255, 255, 255, 0.03);--eh-card-hover: rgba(111, 155, 255, 0.4);--eh-shadow: 0 1px 2px rgba(0, 0, 0, 0.3)}.eh-home h1,.eh-home h2,.eh-home h3,.eh-home p{margin:0}.eh-home a{text-decoration:none;color:inherit}.eh-wrap{max-width:1080px;margin:0 auto;padding:8px 32px 80px}.eh-home img.eh-light{display:block}.eh-home img.eh-dark{display:none}html.dark .eh-home img.eh-light{display:none}html.dark .eh-home img.eh-dark{display:block}.eh-band{position:relative;overflow:hidden;padding:74px 32px 92px;background:radial-gradient(58rem 30rem at 50% -20%, rgba(31, 78, 209, 0.55), transparent 68%),\n radial-gradient(34rem 22rem at 12% 6%, rgba(31, 78, 209, 0.3), transparent 62%),\n radial-gradient(30rem 20rem at 90% 0%, rgba(246, 184, 71, 0.16), transparent 60%),\n #06182D}.eh-band::before{content:\"\";position:absolute;inset:0;background-image:radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);background-size:22px 22px;pointer-events:none}.eh-band::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:130px;background:linear-gradient(to bottom, transparent, rgba(3, 12, 26, 0.6));pointer-events:none}.eh-band-inner{position:relative;z-index:1;max-width:800px;margin:0 auto;text-align:center}.eh-hero-logo{height:34px;width:auto;margin:0 auto 26px}.eh-band h1{font-size:3.15rem;font-weight:800;line-height:1.05;letter-spacing:-0.028em;color:#ffffff}.eh-band-inner>p{max-width:600px;margin:20px auto 0;font-size:1.05rem;line-height:1.6;color:rgba(255, 255, 255, 0.72)}.eh-search-wrap{position:relative;margin-top:38px;display:flex;justify-content:center}.eh-search-wrap::before{content:\"\";position:absolute;left:50%;transform:translateX(-50%);width:min(620px, 90%);top:8px;bottom:-4px;border-radius:999px;background:linear-gradient(90deg, rgba(31, 78, 209, 0.8), rgba(111, 155, 255, 0.55) 45%, rgba(246, 184, 71, 0.7));filter:blur(30px);opacity:0.42;transition:opacity 0.25s ease;pointer-events:none}.eh-search-wrap:hover::before,.eh-search-wrap:focus-within::before{opacity:0.62}.eh-search{position:relative;display:flex;align-items:center;gap:12px;width:100%;max-width:680px;min-width:0;height:58px;padding:0 8px 0 22px;border-radius:999px;cursor:text;text-align:left;background:#ffffff;border:1px solid rgba(11, 18, 32, 0.08);box-shadow:0 1px 3px rgba(3, 12, 26, 0.18), 0 8px 24px -12px rgba(3, 12, 26, 0.45);color:#6b7480;font-size:1rem;transition:box-shadow 0.2s ease, border-color 0.2s ease}.eh-search:hover,.eh-search:focus-visible{box-shadow:0 1px 3px rgba(3, 12, 26, 0.2), 0 12px 30px -12px rgba(3, 12, 26, 0.55);border-color:rgba(11, 18, 32, 0.14)}.eh-search>svg{flex:0 0 auto;color:#8792a0}.eh-search>span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eh-search>span.eh-kbd{flex:0 0 auto;font-size:0.76rem;font-weight:600;padding:4px 8px;border-radius:6px;background:rgba(11, 18, 32, 0.06);color:#6b7480}.eh-ai{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 18px;border:none;border-radius:999px;cursor:pointer;background:rgba(31, 78, 209, 0.09);color:#1f4ed1;font-family:inherit;font-weight:620;font-size:0.9rem;white-space:nowrap;transition:background 0.18s ease}.eh-ai:hover{background:rgba(31, 78, 209, 0.16)}.eh-ai>svg{flex:0 0 auto}.eh-quick{position:relative;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;margin-top:26px}.eh-quick-label{font-size:0.85rem;color:rgba(255, 255, 255, 0.55)}.eh-quick a{font-size:0.86rem;padding:7px 14px;border-radius:999px;color:rgba(255, 255, 255, 0.88);background:rgba(255, 255, 255, 0.07);border:1px solid rgba(255, 255, 255, 0.16);transition:background 0.15s ease, border-color 0.15s ease, color 0.15s ease}.eh-quick a:hover{background:rgba(255, 255, 255, 0.14);border-color:rgba(246, 184, 71, 0.7);color:#ffffff}.eh-sec{margin-top:84px}.eh-sec h2{font-size:1.55rem;font-weight:760;letter-spacing:-0.015em;color:var(--eh-heading)}.eh-sec>p{margin-top:8px;color:var(--eh-text);font-size:0.98rem}.eh-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:18px;margin-top:28px}.eh-card{display:flex;flex-direction:column;min-width:0;padding:24px;border-radius:16px;background:var(--eh-card);border:1px solid var(--eh-border);box-shadow:var(--eh-shadow);transition:border-color 0.18s ease, transform 0.18s ease}.eh-card:hover{border-color:var(--eh-card-hover);transform:translateY(-2px)}.eh-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:var(--eh-accent-soft);color:var(--eh-accent)}.eh-card h3{margin-top:15px;font-size:1.02rem;font-weight:680;color:var(--eh-heading)}.eh-card>p{margin-top:6px;font-size:0.89rem;line-height:1.55;color:var(--eh-text)}.eh-links{margin-top:16px;display:flex;flex-direction:column}.eh-links a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--eh-border);font-size:0.875rem;color:var(--eh-accent);transition:opacity 0.15s ease}.eh-links a:hover{opacity:0.65}.eh-links a span:last-child{flex:0 0 auto}.eh-row{display:grid;grid-template-columns:repeat(3, 1fr);gap:18px;margin-top:28px}.eh-tile{display:flex;flex-direction:column;min-width:0;padding:24px;border-radius:16px;background:var(--eh-card);border:1px solid var(--eh-border);box-shadow:var(--eh-shadow);transition:border-color 0.18s ease, transform 0.18s ease}.eh-tile:hover{border-color:var(--eh-card-hover);transform:translateY(-2px)}.eh-tile h3{margin-top:15px;font-size:1.02rem;font-weight:680;color:var(--eh-heading)}.eh-tile p{margin-top:6px;font-size:0.89rem;line-height:1.55;color:var(--eh-text)}.eh-tile-cta{margin-top:auto;padding-top:18px;font-size:0.875rem;font-weight:600;color:var(--eh-accent)}.eh-tile-logo{height:26px;width:auto}.eh-foot{margin-top:88px;padding-top:28px;border-top:1px solid var(--eh-border);display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:24px}.eh-foot-links{display:flex;gap:22px;flex-wrap:wrap}.eh-foot-links a{font-size:0.88rem;color:var(--eh-heading)}.eh-foot-links a:hover{color:var(--eh-accent)}.eh-copy{margin-top:14px;font-size:0.8rem;color:var(--eh-muted)}@media (max-width: 900px){.eh-grid,.eh-row{grid-template-columns:repeat(2, 1fr)}}@media (max-width: 680px){.eh-wrap{padding:8px 20px 56px}.eh-band{padding:48px 20px 62px}.eh-band h1{font-size:2.15rem}.eh-band-inner>p{font-size:0.98rem}.eh-search-wrap{margin-top:30px}.eh-search-wrap::before{width:100%;filter:blur(24px)}.eh-search{height:54px;font-size:0.95rem;padding:0 6px 0 16px;gap:10px}.eh-search>span.eh-kbd{display:none}.eh-ai{height:40px;padding:0 14px;font-size:0.85rem}.eh-grid,.eh-row{grid-template-columns:1fr}.eh-sec{margin-top:60px}}.eh-home{min-height:100vh;background:#ffffff}html.dark .eh-home{background:#06182D}body:has(.eh-home) #navbar [id^=\"search-bar-entry\"],body:has(.eh-home) #navbar [id^=\"assistant-entry\"]{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border:0!important}.eh-home .eh-band h1{color:#ffffff!important}.eh-home .eh-band-inner>p{color:rgba(255, 255, 255, 0.72)!important}.eh-home .eh-quick-label{color:rgba(255, 255, 255, 0.55)!important}.eh-home .eh-quick a{color:rgba(255, 255, 255, 0.88)!important}.eh-home .eh-quick a:hover{color:#ffffff!important}.eh-home .eh-search>span{color:#6b7480!important}.eh-home .eh-search>span.eh-kbd{color:#6b7480!important}.eh-home .eh-ai{color:#1f4ed1!important}.eh-home .eh-sec h2{color:var(--eh-heading)!important}.eh-home .eh-sec>p,.eh-home .eh-card>p,.eh-home .eh-tile p{color:var(--eh-text)!important}.eh-home .eh-card h3,.eh-home .eh-tile h3{color:var(--eh-heading)!important}.eh-home .eh-links a,.eh-home .eh-tile-cta{color:var(--eh-accent)!important}.eh-home .eh-foot-links a{color:var(--eh-heading)!important}.eh-home .eh-copy{color:var(--eh-muted)!important}#content-area .eh-home .eh-band h1{color:#ffffff!important}#content-area .eh-home .eh-sec h2{color:var(--eh-heading)!important}#content-area .eh-home .eh-card h3,#content-area .eh-home .eh-tile h3{color:var(--eh-heading)!important}[role=\"menu\"] .nav-dropdown-item{align-items:flex-start}[role=\"menu\"] .nav-dropdown-item>svg{margin-top:2px}#navbar .nav-tabs-item [class*=\"text-gray-\"],#navbar .nav-tabs-item svg[class*=\"bg-gray-\"]{color:inherit!important}#navbar .nav-tabs-item svg[class*=\"bg-gray-\"]{background-color:currentColor}@media (max-width: 520px){.eh-ai{padding:0;width:40px;justify-content:center}.eh-ai .eh-ai-label{display:none}}.eh-row:has(>:nth-child(2)):not(:has(>:nth-child(3))){grid-template-columns:repeat(2, 1fr)}@media (max-width: 680px){.eh-row:has(>:nth-child(2)):not(:has(>:nth-child(3))){grid-template-columns:1fr}}#footer img.nav-logo,footer img.nav-logo{content:url(\"/images/logos/loyalife.svg\")}html.dark #footer img.nav-logo,html.dark footer img.nav-logo{content:url(\"/images/logos/loyalife_white.svg\")}#footer a[class*=\"max-w-\"],footer a[class*=\"max-w-\"]{max-width:none!important;overflow:visible!important;text-overflow:clip!important;flex:0 0 auto}#footer div[class*=\"justify-center\"],footer div[class*=\"justify-center\"]{flex-wrap:wrap;gap:0.5rem 0.9rem!important}.chat-assistant-floating-input .max-w-2xl{max-width:100%!important}.chat-assistant-floating-input .rounded-2xl{border-radius:18px!important;border-color:rgba(31, 78, 209, 0.45)!important;box-shadow:0 0 0 4px rgba(31, 78, 209, 0.10),\n 0 10px 28px -14px rgba(3, 12, 26, 0.55);transition:box-shadow 0.2s ease, border-color 0.2s ease}.chat-assistant-floating-input:focus-within .rounded-2xl{border-color:rgba(31, 78, 209, 0.85)!important;box-shadow:0 0 0 5px rgba(31, 78, 209, 0.16),\n 0 12px 32px -14px rgba(3, 12, 26, 0.60)}#chat-assistant-textarea.chat-assistant-input{font-size:15.5px!important;min-height:46px!important}"}],"page":{"pagePath":"user-guides/rule-engine/rule-groups","slug":"/user-guides/rule-engine/rule-groups","pageMetadata":{"title":"Rule groups","description":"Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife's Rule Engine.","og:title":"Rule Groups","href":"/user-guides/rule-engine/rule-groups"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife’s Rule Engine.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Info,OptimizedImage,Step,Steps,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Rule groups are the `,_jsx(_components.strong,{children:`organisational backbone of the Rule Engine`}),`. They are not just folders — they are the mechanism that determines `,_jsx(_components.em,{children:`which members`}),` a set of rules applies to and `,_jsx(_components.em,{children:`how much`}),` those members can earn in aggregate. Every earning rule must belong to a rule group.`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-rule-groups.png?fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=0e521a7f39e8e3bcaa6169adb24a8dd0`,alt:`Rule Engine — Manage Rule Groups screen showing rule groups displayed as cards in a grid, each card listing the group name, linked segment, status badge (Active/Inactive), and rule count`,\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`952`,height:`952`,\"data-path\":`images/rule-engine-rule-groups.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-rule-groups.png?w=280\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=29ff396fcf483c1439d816dc181721de 280w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-rule-groups.png?w=560\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=3387fd465e4699e6e4fe4f4729f3fc44 560w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-rule-groups.png?w=840\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=7b6b83e31ff0da86680b56ec279e6740 840w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-rule-groups.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=4e82d3d32e2ff1ab7055b184c8061c5f 1100w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-rule-groups.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=331cec322bfafa8a661800de57206772 1650w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-rule-groups.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=31d14e6d96dcd4617eb7a1a9513fa455 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`why-rule-groups-matter`,children:`Why rule groups matter`}),`\n`,_jsx(_components.p,{children:`Without rule groups, all rules would apply to every member in the program. Rule groups solve three problems that a flat rule list cannot:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Problem`}),_jsx(_components.th,{children:`How rule groups solve it`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Different earning rates for different audiences`})}),_jsx(_components.td,{children:`Link a rule group to a segment — only members in that segment earn from those rules`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Preventing over-earning across multiple rules`})}),_jsx(_components.td,{children:`Group-level caps limit total earning per member across all rules in the group, per day, month, or lifetime`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Organising complexity`})}),_jsx(_components.td,{children:`Separate rule groups for base earning, promotions, partner schemes, and seasonal offers — each independently managed and togglable`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-rule-group-evaluation-works`,children:`How rule group evaluation works`}),`\n`,_jsx(_components.p,{children:`When a transaction arrives, Loyalife:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Identifies all `,_jsx(_components.strong,{children:`active`}),` rule groups`]}),`\n`,_jsx(_components.li,{children:`For each group with a linked segment, checks whether the transacting member is in that segment`}),`\n`,_jsx(_components.li,{children:`Evaluates every rule inside each qualifying group`}),`\n`,_jsxs(_components.li,{children:[`Awards rewards from all matching rules across all qualifying groups `,_jsx(_components.strong,{children:`simultaneously`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`A member can earn from multiple rule groups in a single transaction. For example, a Gold tier member can earn base points from an “All Members” group and a tier bonus from a “Gold Members” group at the same time — as long as both groups are active and the member is in each group’s segment.`}),`\n`,_jsx(Heading,{level:`2`,id:`rule-group-properties`,children:`Rule group properties`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Property`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Name`})}),_jsx(_components.td,{children:`Internal label shown in reports, audit logs, and the maker-checker queue`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Description`})}),_jsx(_components.td,{children:`Optional explanation of the group’s purpose`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Linked Segment`})}),_jsx(_components.td,{children:`If set, rules only apply to members in this segment. Leave unset to apply to all members.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Point Limit`})}),_jsx(_components.td,{children:`Maximum points a member can earn from this group per transaction`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Daily Cap`})}),_jsx(_components.td,{children:`Maximum points per member per day across all rules in this group`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Monthly Cap`})}),_jsx(_components.td,{children:`Maximum points per member per calendar month`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Lifetime Cap`})}),_jsx(_components.td,{children:`Maximum points per member ever — once reached, no further earning from this group`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Status`})}),_jsx(_components.td,{children:`Active or Inactive — toggling pauses all rules in the group instantly`})]})]})]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`Group-level caps are distinct from rule-level caps. A rule-level cap limits earning per transaction for that specific rule. A group-level cap limits total earning across all rules in the group combined, over a time period.`})}),`\n`,_jsx(Heading,{level:`2`,id:`designing-rule-groups`,children:`Designing rule groups`}),`\n`,_jsx(_components.p,{children:`A well-designed program typically uses several rule groups with clearly separated purposes:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`13`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Rule Group: Base Earning (no segment — applies to all members)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` └── Rule: 1 point per ₹1 spent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Rule Group: Gold Member Promotions (segment: Gold tier)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` └── Rule: 2x multiplier on weekends`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` └── Rule: 500 bonus points on birthday`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Rule Group: New Member Welcome (segment: Enrolled in last 30 days)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` └── Rule: 3x points on first 3 transactions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Rule Group: Partner Scheme – Brand X (segment: Brand X customers)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` └── Rule: 5 points per ₹1 at Brand X outlets`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Each group is managed independently. Pausing `,_jsx(_components.strong,{children:`Gold Member Promotions`}),` has no effect on `,_jsx(_components.strong,{children:`Base Earning`}),`. Enabling a new seasonal group for a limited campaign doesn’t require touching existing groups.`]}),`\n`,_jsx(Heading,{level:`2`,id:`creating-a-rule-group`,children:`Creating a rule group`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Go to Rule Engine`,children:_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Rule Engine`}),` from the left sidebar.`]})}),_jsx(Step,{title:`Click Create Rule Group`,children:_jsx(_components.p,{children:`Enter a name and optional description. Choose a linked segment if the group should only apply to a specific audience.`})}),_jsx(Step,{title:`Configure caps (optional)`,children:_jsx(_components.p,{children:`Set point limit, daily cap, monthly cap, or lifetime cap if you want to constrain total earning from this group.`})}),_jsx(Step,{title:`Save and add rules`,children:_jsx(_components.p,{children:`Save the group, then add individual earning rules to it using the rule builder.`})})]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-update-rule-group.png?fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=1364d36d55eacd79e2b35ee56be49994`,alt:`Update Rule Group modal showing Name field, Description field, Point Limit and Daily Cap inputs, Monthly Cap and Lifetime Cap fields, and a Target Segment dropdown for linking the group to a member segment`,\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`1077`,height:`1077`,\"data-path\":`images/rule-engine-update-rule-group.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-update-rule-group.png?w=280\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=8e2ac17fa2226049b467b1e011deea66 280w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-update-rule-group.png?w=560\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=b95524fbc1db14006d75bbab84737f1f 560w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-update-rule-group.png?w=840\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=1a8c3910dfac6124ff1b3ec7afaad9a0 840w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-update-rule-group.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=40ba5e170750924906659998ed55a91d 1100w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-update-rule-group.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=3f86426889a6b2c89cfcaaeb59966152 1650w, https://mintcdn.com/loyalife/GPyj4sc_lNCeiqMb/images/rule-engine-update-rule-group.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GPyj4sc_lNCeiqMb\u0026q=85\u0026s=a2760522d5330b46bf60ab1b1a9d5b55 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`creating-a-rule-group-from-the-segment-flow`,children:`Creating a rule group from the Segment flow`}),`\n`,_jsxs(_components.p,{children:[`You can also create a rule group directly while building a segment. Use the `,_jsx(_components.strong,{children:`+ Create New Rule Group`}),` button inside the segment creation form. The group is automatically linked to the parent segment. After creation, go to Rule Engine to add earning rules to the group.`]}),`\n`,_jsx(Heading,{level:`2`,id:`activating-and-deactivating`,children:`Activating and deactivating`}),`\n`,_jsx(_components.p,{children:`Toggling a rule group between Active and Inactive takes effect immediately for new transactions. It does not retroactively apply or reverse points already awarded from rules in that group.`}),`\n`,_jsx(_components.p,{children:`When the Maker-Checker workflow is enabled for the Rule Engine, activating or deactivating a rule group requires approval before taking effect.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Rule groups","description":"Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife's Rule Engine.","og:title":"Rule Groups","href":"/user-guides/rule-engine/rule-groups"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Why rule groups matter","slug":"why-rule-groups-matter","depth":2,"children":[]},{"title":"How rule group evaluation works","slug":"how-rule-group-evaluation-works","depth":2,"children":[]},{"title":"Rule group properties","slug":"rule-group-properties","depth":2,"children":[]},{"title":"Designing rule groups","slug":"designing-rule-groups","depth":2,"children":[]},{"title":"Creating a rule group","slug":"creating-a-rule-group","depth":2,"children":[]},{"title":"Creating a rule group from the Segment flow","slug":"creating-a-rule-group-from-the-segment-flow","depth":2,"children":[]},{"title":"Activating and deactivating","slug":"activating-and-deactivating","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"narration":{"path":"user-guides/rule-engine/rule-groups","locale":"en","estimatedDurationSec":185},"subdomain":"loyalife","siteName":"Loyalife","title":"Rule Groups","contextualStarterQuestions":[{"_id":"6ab52573b151c524a2049e81","deploymentId":"6a019fa76b7e5cec51d32c11","questionText":"What do rule groups control?","status":"active","generatedBy":"contextual","path":"user-guides/rule-engine/rule-groups","createdAt":"2026-09-24T13:28:19.837Z","updatedAt":"2026-09-24T13:28:19.837Z","__v":0},{"_id":"6ab52573b151c524a2049e82","deploymentId":"6a019fa76b7e5cec51d32c11","questionText":"How do I set earning caps?","status":"active","generatedBy":"contextual","path":"user-guides/rule-engine/rule-groups","createdAt":"2026-09-24T13:28:19.837Z","updatedAt":"2026-09-24T13:28:19.837Z","__v":0},{"_id":"6ab52573b151c524a2049e83","deploymentId":"6a019fa76b7e5cec51d32c11","questionText":"Can rules apply to all members?","status":"active","generatedBy":"contextual","path":"user-guides/rule-engine/rule-groups","createdAt":"2026-09-24T13:28:19.837Z","updatedAt":"2026-09-24T13:28:19.837Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-28T20:56:58.239Z","originalFileLocation":"user-guides/rule-engine/rule-groups.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife\u0026#x27;s Rule Engine.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Loyalife\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Rule Groups\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife\u0026#x27;s Rule Engine.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Loyalife\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://loyalife.mintlify.site/_mintlify/api/og/v2?division=Rule+Engine\u0026amp;title=Rule+groups\u0026amp;description=Learn+how+rule+groups+control+which+members+earning+rules+apply+to%2C+set+earning+caps%2C+and+organize+campaigns+in+Loyalife%27s+Rule+Engine.\u0026amp;theme=7435251c1ad6001b818c28f3\u0026amp;signature=4674678e10923ea0498135c9b97e9cd4dc8e6e1b15f11902271588e5b4561bd7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Rule Groups\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife\u0026#x27;s Rule Engine.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://loyalife.mintlify.site/_mintlify/api/og/v2?division=Rule+Engine\u0026amp;title=Rule+groups\u0026amp;description=Learn+how+rule+groups+control+which+members+earning+rules+apply+to%2C+set+earning+caps%2C+and+organize+campaigns+in+Loyalife%27s+Rule+Engine.\u0026amp;theme=7435251c1ad6001b818c28f3\u0026amp;signature=4674678e10923ea0498135c9b97e9cd4dc8e6e1b15f11902271588e5b4561bd7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/loyalife/Shp6eXLmAYvdTCZW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Loyalife\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1f4ed1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/user-guides/rule-engine/rule-groups.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help-loyalife.xoxoday.com/#organization\",\"name\":\"Loyalife\",\"url\":\"https://help-loyalife.xoxoday.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/loyalife/ksULTTip3kyJevRO/logo/loyalife-white.svg?fit=max\u0026auto=format\u0026n=ksULTTip3kyJevRO\u0026q=85\u0026s=a72a67c89b471a92b1ef7e0eb71f5375\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help-loyalife.xoxoday.com#website\",\"name\":\"Loyalife\",\"url\":\"https://help-loyalife.xoxoday.com\",\"publisher\":{\"@id\":\"https://help-loyalife.xoxoday.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups#webpage\",\"url\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups\",\"name\":\"Rule groups\",\"description\":\"Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife's Rule Engine.\",\"dateModified\":\"2026-07-28T20:56:58.239Z\",\"isPartOf\":{\"@id\":\"https://help-loyalife.xoxoday.com#website\"},\"breadcrumb\":{\"@id\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform\",\"item\":\"https://help-loyalife.xoxoday.com/user-guides/configuration/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rule Engine\",\"item\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Rule groups\",\"item\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups#article\",\"headline\":\"Rule groups\",\"name\":\"Rule groups\",\"description\":\"Learn how rule groups control which members earning rules apply to, set earning caps, and organize campaigns in Loyalife's Rule Engine.\",\"url\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups\",\"mainEntityOfPage\":{\"@id\":\"https://help-loyalife.xoxoday.com/user-guides/rule-engine/rule-groups#webpage\"},\"dateModified\":\"2026-07-28T20:56:58.239Z\",\"publisher\":{\"@id\":\"https://help-loyalife.xoxoday.com/#organization\"},\"isPartOf\":{\"@id\":\"https://help-loyalife.xoxoday.com#website\"}}]}\u003c/script>","agentPointerHref":"/user-guides/rule-engine/rule-groups.md","siteName":"Loyalife","nav":{"global":{"anchors":[{"anchor":"Support","icon":"envelope","href":"https://xoxoday-30135.zendesk.com/hc/en-us/requests/new"},{"anchor":"Loyalife","icon":"globe","href":"https://loyalife.xoxoday.com"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"User Guides","groups":[{"group":"Getting Started","icon":"rocket","pages":[{"title":"Loyalife Documentation","mode":"wide","href":"/user-guides"},{"title":"Platform overview","href":"/user-guides/loyalty-overview"},{"title":"Accessing Loyalife","href":"/user-guides/getting-started/accessing-loyalife"},{"title":"Dashboard","href":"/user-guides/getting-started/dashboard"}]},{"group":"Platform","pages":[{"group":"Program Settings","icon":"cog","expanded":false,"pages":[{"title":"Configuration overview","href":"/user-guides/configuration/overview"},{"title":"Advanced configuration","href":"/user-guides/configuration/advanced-configuration"},{"title":"MoEngage integration","href":"/user-guides/configuration/moengage"}]},{"group":"Members","icon":"users","expanded":false,"pages":[{"title":"Members overview","href":"/user-guides/members/overview"},{"title":"Search, filter \u0026 export members","href":"/user-guides/members/search-filter-export"},{"title":"Member attributes","href":"/user-guides/members/attributes"},{"title":"Member details","href":"/user-guides/members/member-details"}]},{"group":"Rule Engine","icon":"sliders","expanded":false,"pages":[{"title":"Rule Engine overview","href":"/user-guides/rule-engine/overview"},{"title":"Attributes","href":"/user-guides/rule-engine/attributes"},{"title":"Data processing","description":"Learn how Loyalife ingests transaction and member data via API or SFTP batch files, including TXN, CPD, BNS formats and validation rules.","href":"/user-guides/rule-engine/data-processing"},{"title":"Rule groups","href":"/user-guides/rule-engine/rule-groups"},{"title":"Transaction types","description":"Full reference for Loyalife's Transaction Type (TT) and Loyalty Transaction Type (LTT) codes used to classify every credit and debit event.","href":"/user-guides/rule-engine/transaction-types"},{"title":"Rule configuration walkthrough","href":"/user-guides/rule-engine/configuring-rules"}]}]},{"group":"Partners \u0026 Promotions","pages":[{"title":"Partners \u0026 Promotions overview","icon":"handshake","href":"/user-guides/partners-promotions/overview"},{"group":"Promotions","icon":"tag","expanded":false,"pages":[{"title":"Scheme Banner","href":"/user-guides/partners-promotions/scheme-banner"},{"title":"Video Management","href":"/user-guides/partners-promotions/video-management"},{"title":"QR Code","href":"/user-guides/partners-promotions/qr-code"},{"title":"Gamification","href":"/user-guides/partners-promotions/gamification"}]},{"group":"Claims Management","icon":"file-invoice","expanded":false,"pages":[{"title":"Invoice claims","href":"/user-guides/partners-promotions/claims-management/invoices"},{"title":"Visibility claims","href":"/user-guides/partners-promotions/claims-management/visibility"}]},{"title":"Channel Partner Config","icon":"gear","href":"/user-guides/partners-promotions/channel-partner-config"},{"title":"Mobile app for clients","icon":"mobile","href":"/user-guides/mobile-app/overview"},{"group":"Marketplace","icon":"store","expanded":false,"pages":[{"title":"Plum marketplace","href":"/user-guides/marketplace/plum"},{"title":"On behalf redemption","href":"/user-guides/marketplace/on-behalf-redemption"}]}]},{"group":"Campaign Management","pages":[{"title":"Segments","icon":"layer-group","href":"/user-guides/engage/segments"},{"title":"Broadcast Campaigns","icon":"bullhorn","href":"/user-guides/engage/broadcast-campaigns"},{"title":"Triggered Campaigns","icon":"bolt","href":"/user-guides/engage/triggered-campaigns"},{"group":"Communications","icon":"envelope","expanded":false,"pages":[{"title":"Communications","icon":"envelope","href":"/user-guides/engage/communications"},{"title":"Email","icon":"at","href":"/user-guides/engage/email"},{"title":"SMS","icon":"message-sms","href":"/user-guides/engage/sms"},{"title":"WhatsApp","icon":"whatsapp","href":"/user-guides/engage/whatsapp"},{"title":"Push notifications","icon":"bell","href":"/user-guides/engage/push-notifications"}]}]},{"group":"Access Control","pages":[{"title":"Access Control overview","icon":"shield","href":"/user-guides/access-control/overview"},{"title":"Manage team","icon":"users","href":"/user-guides/access-control/manage-team"}]},{"group":"Governance","pages":[{"title":"Approval workflow","icon":"circle-check","href":"/user-guides/access-control/approval-workflow"},{"title":"Audit trail","icon":"clock-rotate-left","href":"/user-guides/access-control/audit-trail"},{"group":"Fraud Prevention","icon":"triangle-exclamation","expanded":false,"pages":[{"title":"Fraud Prevention overview","href":"/user-guides/fraud-prevention/overview"},{"title":"Threshold settings","href":"/user-guides/fraud-prevention/threshold-settings"},{"title":"Pending transactions","href":"/user-guides/fraud-prevention/pending-transactions"}]}]},{"group":"Reports \u0026 Analytics","pages":[{"title":"Reports \u0026 Analytics overview","icon":"chart-bar","href":"/user-guides/reports/overview"},{"group":"Data Exports","icon":"download","expanded":false,"pages":[{"title":"Report types","href":"/user-guides/reports/report-types"},{"title":"Custom reports","href":"/user-guides/reports/custom-reports"}]},{"title":"Visual dashboards","icon":"chart-pie","href":"/user-guides/reports/visual-dashboards"}]},{"group":"Loyalty Features","pages":[{"group":"Tiers","icon":"box","expanded":false,"pages":[{"title":"Tiers overview","href":"/user-guides/tiers/overview"},{"title":"Configure tiers","href":"/user-guides/tiers/configure-tiers"},{"title":"Manage tiers","href":"/user-guides/tiers/manage-tiers"}]},{"group":"Referrals","icon":"share","expanded":false,"pages":[{"title":"Referrals overview","href":"/user-guides/referrals/overview"},{"title":"Referral setup","href":"/user-guides/referrals/setup"},{"title":"Referral performance dashboard","href":"/user-guides/referrals/performance-dashboard"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/quickstart"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes"}]},{"tab":"Other Xoxoday products","icon":"shapes","menu":[{"item":"Empuls","icon":"trophy","description":"Employee engagement, recognition and rewards, surveys, and the social intranet.","href":"https://help-empuls.xoxoday.com"},{"item":"Plum","icon":"gift","description":"Rewards, incentives and payouts — gift cards and digital rewards at scale.","href":"https://help-plum.xoxoday.com"}]},{"tab":"FAQs","icon":"circle-question","href":"https://faqs.xoxoday.com"}]},"basePath":"","title":"Rule Groups","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":["2bfc744e19","07c022d89b","a74be98ba7"],"chunks":["NarrationPlayer-CPr_H8My.js","types-CiTgMxws.js","shallow-LQqfiMNd.js","Frame-Dmj010Ph.js","DynamicMarkdown-GHvayGOn.js","zoom-image-lightbox-8gCTkA22.js","lightbox-handle-r17bVUz3.js"]}