/
v3.0.11Get access

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.

Request parameters:

NameDescriptionTypeValuesDefault
gameIds
Game ids are Swarm sport game IDs that tell the AI assistant which specific matches to focus the conversation on. array--

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
    }
  }
}

Response parameters:

NameDescriptionTypeValues
session_id
ID of the current chat session string-
user_id
ID of the authenticated usernumber-
language
Session language (e.g. "en")string-
created_at
When the session was originally created (ISO 8601)string-
last_activity
Timestamp of the latest activity in the session (ISO 8601) string-
messages
array-
predefined_messages
Suggested quick-reply messages (game-specific questions)array-
express_ods_count
Express odds count — null when not applicable number-
recommendations
AI-suggested bets for the games in this sessionarray-
└─
object
└─ game
Game ID number-
└─ sport
Sport IDnumber-
└─ sport_alias
Sport aliasstring-
└─ region
Region IDnumber-
└─ region_alias
Region aliasstring-
└─ competition
Competition IDnumber-
└─ competition_name
Competition namestring-
└─ home_team_name
Home team namestring-
└─ away_team_name
Away team namestring-
└─ start_time
Match start time in ISO 8601 UTC string-
└─ market
Market IDnumber-
└─ market_type
Market type key (e.g. "P1XP2", "OverUnder")string-
└─ tag
Internal AI tag number-
└─ selections
Swarm selection IDs (empty when market not yet resolved)array-
└─ recsys_game_rank
RecSys ranking score for the game number-
└─ recsys_market_score
RecSys score for the specific market number-
└─ recsys_top_market_score
RecSys top market score number-