/
v3.0.11Get access

sendBettingMateChatMessage

Sends a user message to an existing BettingMate AI chat session and returns the assistant's reply. Requires an active sessionId from createBettingMateChatSession.

Request parameters:

NameDescriptionTypeValuesDefault
sessionId
Session ID returned from createBettingMateChatSessionstring--
message
The user's message textstring--
This method is usually used with these methods:

Call example:

sendBettingMateChatMessage({
  sessionId: '5e6af8d1-6e71-4fa3-b753-5fe8f3e06159',
  message: 'Hello'
})

Response examples:

{
  error: '',
  isLoading: false,
  data: {
    result: 0,
    details: {
      session_id: '5e6af8d1-6e71-4fa3-b753-5fe8f3e06159',
      message: "<p>Hello! I'm here to help you analyze sports data...</p>",
      timestamp: '2026-06-08T10:46:51.415578Z',
      recommendations: [{
        sport: 1,
        sport_alias: 'Football',
        region: 10001,
        region_alias: 'World',
        competition: 3042,
        competition_name: 'International Friendlies',
        game: 29935545,
        home_team_name: 'France',
        away_team_name: 'Northern Ireland',
        start_time: '2026-06-08T19:10:00Z',
        market: 2282737922,
        market_type: 'P1XP2',
        tag: 999,
        selections: [6787814713, 6787814714, 6787814715],
        selection_prices: [],
        is_player_market: false,
        reason: null
      }],
      metadata: {
        action: 'agent',
        tools_used: [],
        iterations: 1,
        session_id: '5e6af8d1-6e71-4fa3-b753-5fe8f3e06159',
        timestamp: '2026-06-08T10:46:51.351064+00:00',
        warning: null,
        user_id: 285523160,
        error: null
      }
    }
  }
}

Response parameters:

NameDescriptionTypeValues
session_id
ID of the current chat sessionstring-
message
AI assistant's reply — may contain HTML tags (rendered via StringToHTML)string-
timestamp
When the response was generated (ISO 8601 UTC)string-
metadata
Internal AI execution info (see below)object
└─ action
AI execution mode (e.g. "agent") string-
└─ tools_used
List of internal AI tools used to generate the responsearray-
└─
string-
└─ iterations
Number of reasoning iterations the AI tooknumber-
└─ session_id
Session ID (mirrors details.session_id) string-
└─ timestamp
Internal processing timestampstring-
└─ user_id
Authenticated user IDnumber-
└─ warning
Any warning from the AI enginestring-
└─ error
Any error from the AI enginestring-
recommendations
Betting suggestions attached to the reply — can be emptyarray-
└─
object
└─ game
Swarm game ID number-
└─ sport
Sport IDnumber-
└─ sport_alias
Sport namestring-
└─ region
Region IDnumber-
└─ region_alias
Region namestring-
└─ competition
League IDnumber-
└─ competition_name
League namestring-
└─ home_team_name
Home team namestring-
└─ away_team_name
Away team namestring-
└─ start_time
Match start time in ISO 8601 UTCstring-
└─ market
Swarm market IDnumber-
└─ market_type
Market type key (e.g. "P1XP2", "OverUnder")string-
└─ selections
Swarm selection IDsarray-
└─
number-
└─ selection_prices
Odds per selection — can be empty [] when prices aren't resolved yetarray-
└─
number-
└─ tag
Internal AI tagnumber-
└─ is_player_market
Whether this is a player-specific marketbooleantrue / false
└─ reason
AI explanation for the pick (currently always null)string-