Loyalty · 04 / 26

Sequence Diagrams

The pertinent flows of the loyalty platform as sequence diagrams: a missing-miles claim, a partner file, a redemption with fraud checks, an offer, an account takeover and the service copilot.

How to read them

Each diagram shows one flow across the platform's components, top to bottom in time. Solid arrows are requests, dashed arrows are replies, amber arrows are held, blocked or refused paths and cyan arrows are agent decisions.

ParticipantRole
Claims agentReads claim documents, gathers evidence and proposes a credit
Earn engineApplies earning, tier and expiry rules
Fraud scoringScores logins and redemptions and recommends step-up or a hold
Service copilotAnswers questions from the program terms, with citations
Tool gatewayThe MCP (Model Context Protocol) gateway to enterprise systems, with scopes and audit
Review deskPeople who approve or decide

1 · A missing-miles claim

Missing-miles claim resolved by rule A member submits a boarding pass photo. The claims agent extracts the fields, verifies the flight, ticket and prior credits through the tool gateway, and the earn engine computes the miles. Within the automatic limit the rules approve the credit, which posts to the ledger; otherwise the claim goes to a person. Member Claims agent Tool gateway Earn engine Ledger Review desk claim + boarding pass image extract flight, date, class, ticket get segment, ticket, prior credits flown, class H, none credited compute miles for segment 5,177 miles, basis rule post_miles, basis rule + key credit 5,177 posted short confirmation Over 10,000 miles or a mismatch: routed here instead.
Missing-miles claim resolved by rule

Facts and miles come from systems and rules. The agent reads the document and gathers evidence, so a misread costs a review, not a wrong credit.

2 · A partner earning file

Partner file matched and posted A card partner sends a monthly file. The intake validates the format, matches lines to members on identifiers, applies the partner's earning rules and posts, and lists unmatched or suspicious lines for the partnerships team. Partner file Intake Match Earn engine Ledger Partnerships 12M lines, signed file validate format, totals, signature match to members 11.96M matched, 40k unmatched apply partner earn rules post credits + batch key posted unmatched list, 300 flagged lines resolve, approve exceptions
Partner file matched and posted

Matching and earning are deterministic. A model may help explain unmatched lines, but it cannot post or release them.

3 · An award redemption with a fraud check

Redemption with risk scoring and step-up A member redeems miles for an award. The redemption service gets the price from the rules, the fraud model scores the request, a medium score triggers step-up verification, and only after the member passes does the redemption post. A high score would hold the redemption and open a case. Member Redemption Pricing rules Fraud scoring Ledger Fraud analyst redeem award, LHR to JFK price the award 62,500 miles, reason score: new device, large balance medium risk 0.62 step-up: one-time code code verified debit 62,500 + key posted confirmation High risk: hold, case opened, member told.
Redemption with risk scoring and step-up

The price is a rule. The score decides how much proof to ask for, never whether a member is a fraudster.

4 · An offer decision and send

Offer decided by rules, checked for consent and sent Decisioning picks eligible members within budget and caps. A model ranks within the eligible set and fills an approved template. The consent service is checked per member at send time, and only consenting members receive the message. Decisioning Propensity model Copy template Marketer Consent service Messaging eligible set within budget and caps rank eligible members ranked list fill approved template, segment draft for approval approved consent per member, channel, purpose 2.1M allowed, 0.4M not send to allowed members A withdrawn consent stops the send.
Offer decided by rules, checked for consent and sent

Rules decide who may be contacted. The model only ranks within that set and fills a template a person has approved.

5 · An account takeover attempt

Account takeover caught at login and redemption A login from a new device in a new country is scored as risky. Step-up fails, the account is held for a short time, and an analyst reviews the case with the evidence. The genuine member is released after verifying through a known channel. Attacker Login Fraud scoring Ledger Fraud analyst Member login, stolen password score: new device and country high risk 0.91 step-up: code to phone on file wrong code time-limited hold, 72 h case with factors and history contact via email on file that was not me keep hold, reset credentials
Account takeover caught at login and redemption

The hold is short and reviewable. The member is contacted through a channel the attacker does not control.

6 · The service copilot answers from the program terms

Service copilot grounded in the program terms An agent asks whether a member's miles expire. The copilot retrieves the expiry clause for the member's tier and date, reads the balance and activity through the tool gateway, answers with the citation, and declines to promise an extension, which is a person's decision. Agent Service copilot Terms index Tool gateway Ledger Program manager do this member's miles expire? expiry clause, tier Gold, today clause 4.3, 36 months balance and last activity read 48,000, active in 14 months result, audited no expiry yet, cites clause 4.3 can we extend anyway? needs approval, drafts a request exception request
Service copilot grounded in the program terms

Answers carry a citation or an honest gap. Exceptions are a request to a person, not something the copilot grants.

Build this for your business

This example is a loyalty platform for an airline, but the same pattern, deterministic financial rules, a governed gateway, runtime security, consent-aware personalisation and measured quality, fits any program that holds a customer balance and makes offers. We can scope a pilot on your own systems.

Book a discovery call