AI Agent for Directus
Transform your Directus CMS with intelligent automation, smart data interpretation, and natural language processing.
Features
-
Natural Language Commands
Interact with your Directus CMS using plain English prompts. -
Data Insights & Querying
Use AI to read, analyze, and summarize collections, relations, and metadata. -
Semantic Understanding
AI understands schema, relationships, and context β allowing you to insert, update, and link data intelligently. -
Smart Automation
Automate workflows based on AI decision trees. -
Prompt-to-Action
Instantly convert prompts into structured actions and queries within Directus.
TESTED WITH OPENAI GPT-4o MODEL
AI can make mistakes use it with your own risk.
Extension Type
This is a Bundle Extension that includes:
Moduleβ Frontend UI (Chat interface, Settings, and Help)Endpointβ Backend AI agent server (OpenAI / OpenRouter-based)
Installation
1. Install via npm
npm install directus-extension-ai-agent
Or clone manually:
https://github.com/Uncw3b-Software/directus-extension-ai-agent
Configuration
No need for .env editing.
The extension creates a settings collection after install.
- Enter your OpenAI / OpenRouter API key
- Choose provider (
openai,openrouter, etc.) - Adjust model, temperature, and stream settings
Settings panel is embedded in the UI.
How to Use
Open the AI Agent module in Directus. Use prompts like:
Show me the total sales from last monthAdd a new user named John with role editorSummarize all feedback from last 7 daysCreate 3 product entries with dummy valuesWhat is the average age of users in Germany?
AI will process the prompt and return or execute it with context awareness.
Security & Sandbox
100% compatible with Directus Cloud sandbox
No direct file system access
All remote calls routed via sandbox-safe fetch
Uses openaiandopenrouterpublic endpoints only
Screenshots
About the Developer
This extension is built by Uncw3b Software, a boutique AI & Web3 development agency.
Website: https://uncw3b.com
Telegram: https://t.me/cryptoraichu
Looking for custom AI integrations or Directus development? Reach out to us.
License
MIT License Β© Uncw3b Software








Hi Nik, I'm glad you liked the extension! The extension is built using Directus' official MCP server, and the limitations are outlined on this page: https://community.directus.io/t/transform-your-directus-cms-with-intelligent-automation-smart-data-interpretation-and-natural-language-processing/639 While it supports many operations such as creating, deleting, and reading items, unfortunately, chart generation is not currently available. Still, donβt hesitate to explore it, there are plenty of powerful features to try out!
β uncw3b-softwareCould you give me a brief idea what would be needed to return visuals or run code, which produces these visuals, interactively? (The link you provided points to this page)
β NikI think I paste wrong link, correct link is here https://directus.io/docs/guides/ai/mcp/tools you will see the list of the methods that you can use with the official Directus MCP server. This extension using directus MCP server so the methods on the link available. About your case I can answer if you tell me what you want to achieve. You can reach me out on telegram or discord
β uncw3b-software