modAI

Generative AI for MODX Revolution

Creator: Jan Peca (theboxer)

Need help installing this extra?

Screenshots

About modAI

Stop wasting hours creating and optimizing content. ⏱️

modAI brings the power of generative AI directly into your MODX manager with just one click of the “sparkle button” (✦). Transform your content workflow by instantly generating SEO-optimized meta titles, descriptions, summaries, full articles, images, and alt tags that actually convert.

When deadlines loom and creativity runs dry, modAI becomes your reliable partner, eliminating frustration and delivering professional results every time.

Simply connect your preferred AI provider (ChatGPT, Google Gemini, Anthropic Claude, or custom services), and watch as modAI seamlessly integrates with popular Extras like image+ and SEO Suite to amplify your site’s performance.

Join the web professionals who’ve reclaimed their time and enhanced their results with modAI – the MODX Extra that turns content challenges into opportunities. 🚀

Information

Released
May 14, 2025

Supported Database
MySQL, SQL Server

License
GNU AGPL v3.0

Supported Versions
3.0 - Current

Downloads
371

Documentation
modAI Documentation

Instructions

modAI adds a “sparkle button” (✦) to relevant fields in your MODX Manager. Clicking this button triggers the AI to generate content based on pre-defined prompts and your chosen AI provider. You can easily review, edit, and insert the generated content directly into your website. See the configuration section of the documentation for customizing modAI behavior and prompts.

New in 0.12.0-pl

0.12.0-pl - 2025-05-14

🚀 Features

  • Default global.text.model system setting to gpt-4o-mini (6b54015)
  • Add basic tools support (5f22a3f)
  • Add base model to configure agents and store conversations (#15) (2718b51)
  • Add usage data to the service parsers (18fa71b)
  • Separate attachments and contexts (400d6f2)
  • Add tool support via DB (8d49728)
  • Agent prompt & agent selector (6ca5545)
  • Add support for context providers (8a83bbf)
  • Add support to override model in an agent (e8a9cf2)
  • Add CMP to manage context providers (bc3487b)
  • Add CMP to manage tools (f582428)
  • Use yes/no renderer on boolean columns (1478da8)
  • Add CMP to manage agents (ddb248d)
  • Ui to select agent (0bf2149)
  • Add basic modx tools (30b26b1)
  • Add markdown parser for assistant messages (f6d7966)
  • Allow html in makrdown content (021584f)
  • Persist selected agent (bbbb50b)
  • Add search adn better triggers to agent/tools/cps combos (4fa8011)
  • Add advanced config to the agent (2902da4)
  • Add support for openrouter.ai (08c2fd9)
  • Add model info to the response msg (6280e64)
  • Add ACLs for client & backend (489ee77)
  • Add permissions check to tools (74d2337)
  • Add user groups permissions to agents (4916dd0)
  • Improve scrolling for new messages (766b794)
  • Add global modAI button with IndexedDB as persist layer (b1c015f)
  • Use bot icon for the global button (03b8365)
  • Add an option to index elements into vector db (a2d5cbb)
  • Make sure user has file_create permission and save policy on source when downloading an image (1e71d3c)
  • Allow to override path in download image endpoint (f29a942)
  • Add indexing script (33c7dad)
  • Hide agent select button if no agents are available (d1d6300)
  • Update openai API to use developer instead of system, max_completion_tokens instead of max_tokens and add an ability to disable temperature (8fe8444)
  • Renderer for selection context (8f28184)
  • Add tooltip to the agent selector (7c9ebcb)
  • Add title to the global button (0263cd5)
  • Accept json encoded list of provider/tool classes (5c3631b)
  • Rename tool's description to prompt and add internal description to tools & context providers (97590df)
  • Allow to customize tool's prompt (3bcb3d2)
  • Add a seed script (8365ef6)
  • Add description to the prompt & description fields (f28031d)
  • Improve chat scrolling to show max 3 lines of last user message (f2582db)
  • Add EditChunk and EditTemplate tools (6e4c49b)
  • Adjust image endpoint to support the new gpt-image-1 model (3761cc1)
  • Make the modal resizable (b7dca8c)
  • Add support for multipart/form-data endpoints like editing an image from openai (e5804df)
  • Add maximize/minimize button to the header (f73c1f5)
  • Store modal's position to the local storage (9f4546d)
  • Define default font (7323daf)

🐛 Bug Fixes

  • Remove modx dependency from composer.json (77c06bf)
  • Add default usage stats for streaming (b5fd29a)
  • Reenable pinecone config (9ef6dd1)
  • Create/update/delete agents (78d82eb)
  • Correct typo in agent prompt description (4241ada)
  • Dispatch input event when setting value to the textarea (6830a6a)
  • Dealy shadow's onload by 1ms to fix occasion no-scroll on first open (88c1eef)
  • Prevent error saving duplicate templates and chunks (2801e3d)
  • Correct prompt description to refer to editing a chunk instead of creating one (f0efe4b)
  • Enforce strict array typing for runTool method arguments (4958e1a)
  • Add missing lexicons (c17204d)

🚜 Refactor

  • Refactor service parsers and streaming handlers (4c13dc3)
  • Improve descriptions and behavior for consistency (8e22bf3)
  • Update parameter 'parameters' to 'arguments' for consistency with ToolInterface (09a8734)

📚 Documentation

🎨 Styling

⚙️ Miscellaneous Tasks

  • Fix commit links in the changelog (1a58beb)
  • Apply phpcs fixes (112d5bc)
  • Add tables to build (57dc306)
  • Use lexicons for error message (6eec864)
  • Remove unused scripts (70e87b5)
  • Refactor system settings and AI services (15bb714)
  • Refactor plugins (9e0df6c)
  • Move APIException under Exceptions namespace (03ce874)
  • Move global.d.ts under @types dir (50cdaf9)
  • Mark the mgr namespace in executor as deprecated, will be removed in major release (c8888cb)
  • Separate type imports (95c697c)
  • Remove test seed script & delete category tool (26ab011)
  • Add Debug helper class (10495e7)
  • Add EditChunk and EditTemplate tools to seed script (eb70146)

Current releases

0.12.0-pl
View | Download
May 14, 2025
3.0 - Current