Skip to content

AI for ProcessWire

AI (trk/processwire-ai) is the complete multi-provider AI gateway, editorial copilot, localization engine, RAG agent runtime, and Model Context Protocol (MCP) server for ProcessWire 3. Manage encrypted API key pools across 10 provider drivers, author grounded editorial rules and brand voices, localize pages with protected glossaries, embed a grounded visitor chat widget, and expose governed tools over HTTP or stdio MCP from Setup -> AI.

Setup -> AI unifies provider health, latency and spend telemetry, privacy governance, and active editorial assistants in one workspace.

10-Provider Gateway & Tier Routing

Connect openrouter, gemini, anthropic, openai, deepseek, mistral, xai, ollama, openai-compatible, and deepl with encrypted SecretBox key pools, failover or round-robin rotation, and 7 ModelTier routes.

Grounded Editorial Studio & Bulk Ops

Draft, rewrite, compose structured blocks, and run queued bulk editorial batches with diff-and-apply ProposalApplier, reusable Markdown rules, brand voices, and field-scope guardrails.

Translation, Vision, Audits & Artifacts

Localize multi-language pages with protected glossaries, analyze or generate images, run deterministic + AI pre-publish audits, and render visual brochures or QR artifacts.

RAG Agents, Visitor Chat & MCP Server

Index pages and entries into SQLite, File, or Qdrant vector stores, embed renderChatWidget() (/_ai/chat), and serve governed JSON-RPC 2.0 MCP tools over /_ai/mcp or vendor/bin/wire ai:mcp.

Requirement Minimum Version Notes
PHP 8.4+ Requires ext-curl, ext-pdo_sqlite (default vector store), and ext-openssl / ext-sodium for SecretBox.
ProcessWire 3.0.271+ Lazy 'autoload' => false boot with pull-discovery metadata (reactCapabilities, entriesBlueprints, entriesHooks).
Required Modules Inertia, React, Entries Backed by 7 Entries blueprints and 3 telemetry/audit tables (ai_usage_logs, ai_conversations, ai_mcp_logs).
Companion Modules ProcessAi, InputfieldAiChat Installed alongside Ai for Setup -> AI and embedded page/entry editor AI chat drawers.

Next steps