Recommend
B2A API
Recommend
Get context-aware activity recommendations
POST
Recommend
Get Recommendations
This endpoint returns activities ranked by Ground Truth data - real user behavior, not assumptions.
Use This Endpoint When
User asks about activities
- “What should we do today?”
- “Any family activities nearby?”
- “Things to do in Bangkok”
Context-aware needs
- “It’s raining, what’s good?”
- “Romantic dinner for tonight”
- “Kid-friendly activities”
Request
User preferences and characteristics
User’s current or target location
Additional filtering options
Maximum number of recommendations (1-20)
Include same-day flash deals (30-50% off)
Response
Whether the request was successful
Examples
Family Trip in Bangkok
Rainy Day Recommendations
When lat/lon is provided, the API automatically fetches weather data:Response Example
Relevance Score Factors
Therelevance_score (0-100) is calculated from:
| Factor | Weight | Description |
|---|---|---|
| User Profile Match | 30% | How well activity matches travel_type and interests |
| Ground Truth Data | 25% | Real visit data from similar user profiles |
| Weather Appropriateness | 20% | Indoor/outdoor suitability for current weather |
| Time Appropriateness | 15% | Activity timing (morning activity, dinner spot, etc.) |
| Price Match | 10% | Budget alignment |
Ground Truth Advantage: Our recommendations improve over time as we collect more NFC-verified visit data. The more your users book and visit, the better the recommendations become.
Error Responses
| Code | Description |
|---|---|
INVALID_LOCATION | City not found or coordinates out of service area |
INVALID_PROFILE | Missing required user_profile fields |
NO_ACTIVITIES | No activities found matching criteria |
Next Steps
Execute Booking
Once user selects an activity, execute the booking