Context Pipeline
The Context Pipeline is PriveTag’s system for understanding user needs and providing relevant recommendations.The 8 Golden Points
We capture 8 key data points that drive recommendation quality:1. Travel Type
Family, couple, solo, business, friends
2. Nationality
Cultural preferences and language
3. Interests
Activities user enjoys
4. Budget
Spending preferences
5. Age Group
Activity difficulty matching
6. Location
Current or target area
7. Weather
Real-time conditions
8. Time
Time of day relevance
Pipeline Architecture
Data Flow Example
Input: API Request
Step 1: Enrichment
The pipeline enriches the request with external data:Step 2: Ground Truth Lookup
Query historical data for similar profiles:Step 3: Scoring
Each activity is scored on multiple factors:Step 4: Output
Scoring Factors Explained
1. Profile Match (30%)
How well does the activity match user preferences?2. Ground Truth (25%)
Real visit data from similar users:Ground Truth Scoring: Activities that similar profiles actually visited (and verified via NFC/QR) get higher scores than those only booked.
3. Weather Match (20%)
Real-time weather appropriateness:4. Time Match (15%)
Activity timing relevance:5. Budget Match (10%)
Price alignment with stated budget:Context Logging
Every recommendation request creates a context log:Why Context Logging Matters
When a user later books and visits an activity: This feedback loop is what makes PriveTag’s recommendations improve over time.Customization Options
Filters
Override automatic scoring with explicit filters:Boosting
Boost specific factors for the request:Performance
Best Practices
Always provide lat/lon when available
Always provide lat/lon when available
Location coordinates enable weather-aware recommendations. Without them, we default to city-level weather which may be less accurate.
Include all known user attributes
Include all known user attributes
More context = better recommendations. Even if optional, providing nationality, age_group, and budget significantly improves relevance.
Use context_log_id for bookings
Use context_log_id for bookings
Pass the log_id when booking to complete the feedback loop. This is how Ground Truth data improves over time.
Don't over-filter
Don't over-filter
Let the scoring algorithm work. Excessive filters can eliminate good options that would score highly.
Next Steps
Ground Truth
How verified behavior data works
API Reference
Implement recommendations