Skip to main content
Version: v5.1

AI chat overview

Use the AI chat pane to select model elements in the viewer based on your prompt. This is achieved with the following steps:

  1. Enter a prompt into the AiPrompt component.
  2. Your prompt is sent to the selected Team, which continues an existing chat conversation or creates a new one.
  3. The first Agent constructs a $findWithRelated query based on your prompt using the RelatedQueryTool and with reference to the project's SchemaDefinition.
  4. The second Agent runs the query using the SearchRelatedItemsTool and returns the results.
  5. The third Agent takes the response items and presents them with a summary.
  6. A callback function extracts the element ids from the chat and passes them to a $findWithRelated query which retrieves the elements and their properties and selects them in the model.

Feature resources#

In order to acheive this, your project requires the following additional resources:

  • AiPrompt component
  • AI Service:
    • Team
    • Agents
    • Tools
      • RelatedQueryTool
      • SearchRelatedItemsTool
  • Item Service:
    • SchemaDefinition
  • Passport Service:
    • LLM secret key

For more information, see the following sections: