Count the conversations of the members of a spot with its AI coach over a period of 366 days at most: conversations

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://help-api.meltingspot.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "API MCP server": {
    "url": "https://help-api.meltingspot.io/mcp"
  }
}

Close
GET /v1/coachConversations~count

Count the conversations of the members of a spot with its AI coach over a period of 366 days at most: conversations, questions, answers, sources, handoffs, feedbacks and the members behind them. Only the Live conversations are counted by default, and the Onboarding ones are left out unless asked for. With groupBy, the counts are also split by a single dimension. The handoff and source counters are reliable since 2026-09-14.

Query parameters

  • createdAt object

    Period of the messages. Both bounds are required (createdAt[after] and createdAt[before]), included, 366 days apart at most.

    Hide createdAt attributes Show createdAt attributes object
    • createdAt[after] integer

      Start of the period, included: only the messages written at or after this date (Unix timestamp format). Required.

    • createdAt[before] integer

      End of the period, included: only the messages written at or before this date (Unix timestamp format). Required.

  • mode object
    Hide mode attribute Show mode attribute object
    • mode[in] array[string]

      Only the conversations of one of these modes: Live (real members), Test (an admin testing the coach), Preview (an admin impersonating a member). Live only when omitted.

      Values are Live, Test, or Preview.

  • triggerType object
    Hide triggerType attribute Show triggerType attribute object
    • triggerType[in] array[string]

      Only the conversations started by one of these triggers. Every trigger but Onboarding when omitted.

      Values are Welcome, Resume, Discover, Recommend, UserInitiated, PlaybookIntent, or Onboarding.

  • role object
    Hide role attribute Show role attribute object
    • role[in] array[string]

      Only the conversations of the members having one of these roles now (their current role, whatever their custom role)

      Values are Member or Admin.

  • groupId object
    Hide groupId attribute Show groupId attribute object
    • groupId[in] array[string(uuid)]

      Only the conversations of the members of one of these groups, 20 at most

  • spotMemberId object
    Hide spotMemberId attribute Show spotMemberId attribute object
    • spotMemberId[in] array[string(uuid)]

      Only the conversations of these members (spot member ids), 20 at most

  • groupBy string

    The single dimension to group the counts by: a granularity of the message date (day, week, month: every bucket of the period by date ascending, 0 without activity, in UTC, weeks from Monday), the member, its current role, the trigger type or the intent of the conversation (the 100 biggest groups first). Totals only when omitted.

    Values are day, week, month, member, role, triggerType, or intent.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • conversationCount integer Required

      The number of conversations with at least one message over the period

    • engagedConversationCount integer Required

      The number of conversations with at least one question of the member

    • coachOnlyConversationCount integer Required

      The number of conversations with coach messages only, no question

    • questionCount integer Required

      The number of questions asked to the coach

    • uniqueMemberCount integer Required

      The number of distinct members with a conversation

    • askingMemberCount integer Required

      The number of distinct members who asked a question

    • askingMemberDistribution array[object] Required

      The asking members by number of questions: every range (1, 2, 3-5, 6-10, 11+), in order

      Hide askingMemberDistribution attributes Show askingMemberDistribution attributes object
      • range string Required

        The range of the number of questions asked over the period

        Values are 1, 2, 3-5, 6-10, or 11+.

      • memberCount integer Required

        The number of members who asked a number of questions in the range

    • answerCount integer Required

      The number of answers of the coach

    • answerWithSourceCount integer Required

      The number of answers with at least one card (a cited source). Reliable since 2026-09-14.

    • handoffCount integer Required

      The number of answers where the coach handed the member off. Reliable since 2026-09-14.

    • handoffCountByReason object Required

      The number of handoffs by reason

      Hide handoffCountByReason attributes Show handoffCountByReason attributes object
      • NoSource integer Required

        Handoffs because no source was relevant enough

      • LowConfidence integer Required

        Handoffs because the coach was not confident

      • HumanRequest integer Required

        Handoffs asked for by the member

      • OutOfScope integer Required

        Handoffs because the topic was out of scope

    • feedbackUpCount integer Required

      The number of answers voted up by the member

    • feedbackDownCount integer Required

      The number of answers voted down by the member

    • reliableSince string Required

      The first day the handoffs and the sources are stored reliably (YYYY-MM-DD)

    • periodStartsBeforeReliableSince boolean Required

      True when the period starts before reliableSince: the handoff and source counters are under-counted

    • items array[object] Required

      The groups of the groupBy dimension. By day, week or month: every bucket of the period, by date ascending. By any other dimension: the 100 biggest first, by number of conversations; grouped by member or role, the members who left the spot are left out. Empty without groupBy.

      Hide items attributes Show items attributes object
      • conversationCount integer Required

        The number of conversations with at least one message over the period

      • engagedConversationCount integer Required

        The number of conversations with at least one question of the member

      • coachOnlyConversationCount integer Required

        The number of conversations with coach messages only, no question

      • questionCount integer Required

        The number of questions asked to the coach

      • uniqueMemberCount integer Required

        The number of distinct members with a conversation

      • askingMemberCount integer Required

        The number of distinct members who asked a question

      • askingMemberDistribution array[object] Required

        The asking members by number of questions: every range (1, 2, 3-5, 6-10, 11+), in order

        Hide askingMemberDistribution attributes Show askingMemberDistribution attributes object
        • range string Required

          The range of the number of questions asked over the period

          Values are 1, 2, 3-5, 6-10, or 11+.

        • memberCount integer Required

          The number of members who asked a number of questions in the range

      • answerCount integer Required

        The number of answers of the coach

      • answerWithSourceCount integer Required

        The number of answers with at least one card (a cited source). Reliable since 2026-09-14.

      • handoffCount integer Required

        The number of answers where the coach handed the member off. Reliable since 2026-09-14.

      • handoffCountByReason object Required

        The number of handoffs by reason

        Hide handoffCountByReason attributes Show handoffCountByReason attributes object
        • NoSource integer Required

          Handoffs because no source was relevant enough

        • LowConfidence integer Required

          Handoffs because the coach was not confident

        • HumanRequest integer Required

          Handoffs asked for by the member

        • OutOfScope integer Required

          Handoffs because the topic was out of scope

      • feedbackUpCount integer Required

        The number of answers voted up by the member

      • feedbackDownCount integer Required

        The number of answers voted down by the member

      • key string Required

        The value of the dimension: start of the day, week or month in ISO 8601 (UTC), member id, role, trigger type or intent id

      • label string | null Required

        The readable name of the group: date, name of the member, role or trigger type. Null for an intent.

      • member object Required

        The member of the group, grouped by member only

        Hide member attributes Show member attributes object
        • id string Required

          The id of the member in the spot

        • firstname string Required

          The first name of the member

        • lastname string Required

          The last name of the member

        • role string Required

          The current role of the member

          Values are Member or Admin.

        • customRoleId string | null Required

          The id of the custom role of the member, null without one

  • 400

    Malformed payload, unknown groupBy, too many members or groups, missing or too long period

GET /v1/coachConversations~count
curl \
 --request GET 'https://openapi.meltingspot.io/v1/coachConversations~count'
Response examples (200)
{
  "conversationCount": 42,
  "engagedConversationCount": 42,
  "coachOnlyConversationCount": 42,
  "questionCount": 42,
  "uniqueMemberCount": 42,
  "askingMemberCount": 42,
  "askingMemberDistribution": [
    {
      "range": "1",
      "memberCount": 42
    }
  ],
  "answerCount": 42,
  "answerWithSourceCount": 42,
  "handoffCount": 42,
  "handoffCountByReason": {
    "NoSource": 42,
    "LowConfidence": 42,
    "HumanRequest": 42,
    "OutOfScope": 42
  },
  "feedbackUpCount": 42,
  "feedbackDownCount": 42,
  "reliableSince": "string",
  "periodStartsBeforeReliableSince": true,
  "items": [
    {
      "conversationCount": 42,
      "engagedConversationCount": 42,
      "coachOnlyConversationCount": 42,
      "questionCount": 42,
      "uniqueMemberCount": 42,
      "askingMemberCount": 42,
      "askingMemberDistribution": [
        {
          "range": "1",
          "memberCount": 42
        }
      ],
      "answerCount": 42,
      "answerWithSourceCount": 42,
      "handoffCount": 42,
      "handoffCountByReason": {
        "NoSource": 42,
        "LowConfidence": 42,
        "HumanRequest": 42,
        "OutOfScope": 42
      },
      "feedbackUpCount": 42,
      "feedbackDownCount": 42,
      "key": "string",
      "label": "string",
      "member": {
        "id": "string",
        "firstname": "string",
        "lastname": "string",
        "role": "Member",
        "customRoleId": "string"
      }
    }
  ]
}