AI Assistant

Usage

Learn how to use AI Assistant to interact with your Directus instance through natural conversation.

This guide covers how to use AI Assistant effectively in your daily workflow.

Opening AI Assistant

AI Assistant button in Directus header

Click the AI Assistant button in the Directus right sidebar to open the chat panel. The panel appears on the right side of your screen and persists as you navigate.

Selecting a Model

Model selector dropdown

Click the model dropdown in the chat header to choose which AI model to use:

ModelBest For
GPT-5 Nano / Claude Haiku 4.5 / Gemini 3 Flash PreviewQuick tasks, simple queries
GPT-5 MiniBalanced speed and capability
GPT-5 / Claude Sonnet 4.5 / Gemini 3 Pro PreviewComplex operations, detailed analysis

Only models for configured providers appear in the dropdown.

Having a Conversation

Type your message and press Enter to send (Shift+Enter for new line). Responses stream in real-time with full Markdown formatting.

Adding Context

Attach context to your messages using the Add Content button (+) next to the input field. Context helps the AI understand what you're working with and provide more relevant responses.

Context menu showing Prompts and Content options

Click the + button to open the context menu where you can search and browse available content.

Prompts

Prompts list in context menu

Reusable prompt templates stored in your Directus instance. Prompts can include variables using {{variable}} syntax. A dialog appears to fill in values when needed.

Prompt variables dialog

"Write a blog post using our brand voice"

Prompts require MCP to be enabled and a prompts collection configured. See Prompts Collection for setup.

Content (Items)

Attach items from any collection as context. Select a collection, then choose items from the drawer. The item data is captured as a snapshot when you send your message.

"Make this product description match the style of the attached article"

Visual Elements

When using the Visual Editor, you can add page elements as context. Click the AI icon on any editable element to add it as context. Hovering over visual element cards in the pending context bar highlights the corresponding element on the page.

"Translate this heading to Spanish"

Visual element context persists while navigating within the Visual Editor but clears when leaving the module.

Pending Context Bar

Pending context bar with staged items

Selected context appears in a horizontal bar above the input. Each card shows an icon and display name—click the x to remove. You can add up to 10 context items per message.

Understanding Responses

AI Assistant displays several types of content in responses:

Text Messages

Standard conversational responses with Markdown formatting.

Reasoning Blocks

Reasoning block showing AI's internal thinking

Collapsible sections showing the AI's internal reasoning (extended thinking). Click to expand.

Tool Calls

Completed tool call showing results

When the AI performs an action, it displays a tool call card showing:

  • The tool being used
  • Input parameters
  • Results after execution

Tool Approval

All tools require approval by default. When a tool needs approval, review the action then choose Approve, Deny (Esc), or Always Allow.

Tool approval dialog showing approve, deny, and always allow options

Configure per-tool approval settings via the gear icon in the chat header. See Tool Behavior for details.

Tool settings menu with approval modes

Managing Conversations

Clearing the Conversation

Clear conversation button in chat header

Click the clear button (trash icon) in the chat header to start fresh. This resets:

  • Message history
  • Token usage tracking

Stopping a Response

While the AI is generating a response, the send button becomes a stop button. Click it to interrupt generation.

Retrying After an Error

If an error occurs, a retry button appears. Click to regenerate the last response.

Context Limits

Start a new conversation when switching topics. The AI performs better with focused, single-topic conversations. Long conversations may have older messages dropped automatically.

Data Storage

What's Stored in Your Browser

  • Conversation history
  • Selected model preference
  • Tool approval settings
  • Chat open/closed state

What's NOT Stored

  • Conversations are not saved to the Directus server
  • Conversations are not shared between users or devices
  • Closing the browser or clearing local storage deletes history

Permissions

The AI operates with your existing Directus permissions. If you don't have access to a collection or operation, neither does the AI. See Security for more details.

Next Steps

Available Tools

See what actions the AI can perform.

Tips & Best Practices

Get more out of AI Assistant with practical tips.

Security

Access control and data protection.

Get once-a-month release notes & real‑world code tips...no fluff. 🐰