An adapter is a piece of code that acts as a bridge between two systems. In the context of Bet Suggestions, an adapter connects your data source (such as a backend API or database) to the Suggested Bets feature in the Bet Concierge displayed to users.
For more general information about Sportradar adapters see Adapter Overview.
When you register an adapter, it listens for specific endpoints from the widget:
| Adapter Endpoint | Description | Type |
|---|---|---|
availableMarketsForEvent | The Bet Concierge AI assistant will suggest bet from one of these markets based on conversation context. | AvailableMarketsForEvent |
market | Get full market information about market that AI suggested. Implement either this OR eventMarkets. | Market |
eventMarkets | Get full market information about market that AI suggested. Implement either this OR market. | EventMarkets |
betSlipSelection | Matches selections to the user's bet slip. Outcome on bet suggestion will be marked as selected | BetSlipSelection |
recommendedSelections | Will mark selection as recommended. Outcome on suggested bet market will be marked as suggested - use for the promotions. | RecommendedSelections |
calculateCustomBetXML | Prepares custom bet XML payload for UOF odds calculation. Endpoint for custom bet feature. | calculateCustomBetXML |
SIR Widgets supports two types of adapter implementations: