gen_ai.completed_query - Fluid Topics - Latest

Integrate the Fluid Topics API

Category
Technical Notes
Audience
public
Version
Latest

This server event occurs when a query using a generative AI profile is 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 generative AI profile used for the query.
id The generative AI profile's id.
name The generative AI profile's name.
customPrompt The custom prompt of the generative AI profile.
queryId The query's unique identifier.
result The response to the query.
  • 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": 1174,
        "parameters": {
            "param1": "value1",
            "param2": "value2"
        },
        "profile": {
            "id": "3095337e-213f-430c-838d-5a03d2a8e853",
            "name": "Suggested keywords",
            "customPrompt": "My custom prompt"
        },
        "queryId": "5696aaf2-3873-4c10-bdea-8a5647f83c9e",
        "result": "The genAI response"
    }
]