The ai.completed_query event is triggered differently based on the type of AI profile.
Below is a description of how events are triggered based on the AI profile type:
| Profile type | Trigger |
|---|---|
| Completion profile | Each completion query triggers a ai.completed_query event with the profile type COMPLETION. |
| Chatbot profile | Each query followed by an answer from the chatbot triggers one or multiple ai.completed_query events with the associated profile type CHATBOT. |
| Translation profile | Each item translated generates one ai.completed_query event with the associated profile type TRANSLATION. Note that each usage of the On-demand translation component triggers multiple events as each translated item (table of contents, document title, topic titles, topics loaded in the Reader page) is the result of a query to the LLM/MT. |
Cached items only trigger a ai.completed_query event upon first translation.