ai.completed_query - Fluid Topics - Latest

Fluid Topics Analytics Guide

Category
Reference Guides
Audience
public
Version
Latest

This server event occurs when a query using an AI profile is submitted to an AI provider and completed.

This event contains the following fields:

Field Description
durationMs The amount of time it took to reply to the query. The duration is in milliseconds.
parameters The optional parameters for the query. The parameters are expressed as key/value pairs.
profile The AI profile used for the query.
id The AI profile's ID.
name The AI profile's name.
type The type of AI profile. Possible values are chatbot, completion, and translation.
chatbotDetails / completionDetails / translationDetails An object containing details based on the AI profile type.
provider The provider's name.
model / engine The LLM model name for a chatbot or completion profile. The translation engine's name for a translation profile.
queryId The query's unique identifier.
  • The ai.completed_query event is triggered by the answer to the query. A completed query is thus comprised of a query and its answer. For more information, see the event triggers section.
  • The most commonly returned HTTP status codes are 200 when authenticating successfully and 401 if the system detects invalid credentials.

A table for the most common fields is in Analytics events.

Example:

[
  {
    "durationMs": 1731,
    "parameters": {
      "param1": "param1",
      "param2": "param2"
    },
    "profile": {
      "id": "3095337e-213f-430c-838d-5a03d2a8e853",
      "name": "example_name",
      "type": "chatbot",
      "chatbotDetails": {
        "provider": "openai",
        "model": "gpt-4.1"
      }
    },
    "queryId": "a9bdeff3-9331-41b2-ac41-be3b20bf70b3"
  },
  {
    "durationMs": 1731,
    "parameters": {
      "param1": "param1",
      "param2": "param2"
    },
    "profile": {
      "id": "3095337e-213f-430c-838d-5a03d2a8e853",
      "name": "example_name",
      "type": "completion",
      "completionDetails": {
        "provider": "openai",
        "model": "gpt-4.1"
      }
    },
    "queryId": "a9bdeff3-9331-41b2-ac41-be3b20bf70b3"
  },
  {
    "durationMs": 6169,
    "parameters": {
      "sourceLanguage": "en-GB",
      "destinationLanguage": "fr-FR"
    },
    "profile": {
      "id": "c25b9ebb-21b9-4b4a-8ca0-151a162ff456",
      "name": "Summarize",
      "type": "translation",
      "translationDetails": {
        "engine": "ai.text.translate.deepl.api",
        "provider": "intento"
      }
    },
    "queryId": "97f3ee86-d717-4065-85b0-3821fd8baf58"
  }
]