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:
- Enter a prompt into the AiPrompt component.
- Your prompt is sent to the selected Team, which continues an existing chat conversation or creates a new one.
- The first Agent constructs a
$findWithRelatedquery based on your prompt using the RelatedQueryTool and with reference to the project's SchemaDefinition. - The second Agent runs the query using the SearchRelatedItemsTool and returns the results.
- The third Agent takes the response items and presents them with a summary.
- A callback function extracts the element ids from the chat and passes them to a
$findWithRelatedquery 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: