createBettingMateChatSession
Initializes a new BettingMate AI chat session for one or more sport games. Called once when the user opens the AI chat — returns a session ID required for all subsequent
messages, along with initial game-specific predefined questions and betting recommendations.
Documentation
Try it now
Request parameters:
Call example:
createBettingMateChatSession({
command: 'process_ai_assistant',
params: {
command_name: 'create_chat_session',
params: {
game_ids: [1, 2]
}
}
})Response examples:
{
error: '',
isLoading: false,
data: {
result: 0,
details: {
session_id: '4b9f80b0-cc19-480c-ad84-deba140b36cf',
user_id: 285523160,
language: 'en',
created_at: '2026-06-01T12:47:16.371267',
last_activity: '2026-06-01T12:47:16.371267',
messages: [],
predefined_messages: [
'How many corners does team Turkiye take on average at home?',
'What do analysts say about the outcome of this match?',
'How likely is it that there will be a red card (sending-off) in the match?'
],
recommendations: [{
sport: 1,
sport_alias: 'Football',
region: 10001,
region_alias: 'World',
competition: 3042,
competition_name: 'International Friendlies',
game: 29873543,
home_team_name: 'Turkiye',
away_team_name: 'North Macedonia',
start_time: '2026-06-01T17:30:00Z',
market: 0,
market_type: 'P1XP2',
tag: 999,
selections: [],
recsys_game_rank: null,
recsys_market_score: null,
recsys_top_market_score: null
}],
express_ods_count: null
}
}
}