Generate a passenger entertainment persona (Deep tier)
Drafts a behavioral persona from declared traveler attributes, subject to the platform’s policy, cost, and safety checks, normalizes it (canonical genre/retail vocabularies, clamped scores, genre affinities/retail categories/engagement/monetization propensity), embeds it, and saves an immutable-for-session persona record keyed to the server-resolved airline/session and the request’s seat/member locators. airline_id/session_id are never caller-supplied. Idempotent per session per member: a member that already has a generated persona gets that SAME record back (200, no second write) rather than a freshly drafted one — the record is written once per session and never overwritten.
Authentication
OAuth authentication of the form <token>.
Headers
The passenger-session locator (a within-tenant locator, never a trust assertion). A missing or key-unsafe value is rejected 400 before this handler runs.
Request
Coarse, self-declared age band (e.g. “18-24”, “35-44”) — an input signal only, never the authoritative age tier used for content gating (that is always resolved separately, server-side, during session setup).
The purpose of the trip, as free text; optional. Any text is accepted. Recommended values: business, leisure, visiting friends or family, adventure, first flight. Omit it, or send null, when it is not known. A value that is sent must not be blank and is at most 100 characters.
The traveler’s cabin, as free text; optional. Any text is accepted. Recommended values: economy, premium economy, business, first. Omit it, or send null, when it is not known. A value that is sent must not be blank and is at most 100 characters.
The traveler’s party, as free text; optional. Any text is accepted. Recommended values: solo, couple, family, friends, group. Omit it, or send null, when it is not known. A value that is sent must not be blank and is at most 100 characters.
Optional self-declared genre preferences: genre label to strength (0 to 100). Null when the traveler declared none. Normalized against the platform’s canonical genre vocabulary downstream — never trusted verbatim.
Self-declared retail interests. Normalized against the platform’s canonical retail-category vocabulary downstream — never trusted verbatim.
Response
Internal schema-versioning discriminator for this record’s feature shape.
AI-generated persona description. Never a fabricated placeholder — an unset value means the persona has not been generated yet.
Embedding for similarity lookup against archetypes/content.
Server-stamped generation time, epoch milliseconds.
The per-member key within the seat. A solo traveler (no shared seat roster) uses a reserved placeholder value rather than null.
Set only when the passenger has a persistent (opted-in) anonymous or identified profile; null for an anonymous, session-only visit.
Genre label to affinity strength, 0 to 100. Every canonical genre is present once computed — never a partial map. Null when not yet computed for this persona.
Ordered list of retail-category interest labels, most preferred first. Not padded to a full vocabulary (unlike genreAffinities). Null when not yet computed.
Monetization/retail propensity, 0 to 100. Null when not yet computed.