.. SPDX-License-Identifier: GPL-2.0-or-later .. SPDX-FileCopyrightText: Netresearch DTT GmbH .. include:: /Includes.rst.txt ============ Introduction ============ .. note:: **Proof of concept.** This extension explores a concrete question: is agent-like behavior possible within the TYPO3 backend? It is not intended to answer whether this is the right architectural approach — the space is moving fast, and the tradeoffs between MCP, tool-calling, browser-side agents, and custom integrations are far from settled. The goal here is to show that it *works*, and to invite feedback from anyone thinking about the same problem. If you have thoughts, `open an issue `__. What does it do? ================ AI Chat lets administrators and editors work with an AI assistant directly in the TYPO3 backend. The chat opens from the chat icon in the top bar, as a panel or as a column beside the page tree. The module **AI > AI Chat** gives an overview: whether the chat works for you, how it is configured, and how it was used. Using the tools nr-llm registers, the assistant can read and modify TYPO3 content -- pages, content elements, records -- from natural language instructions. All processing happens server-side via CLI commands, keeping the web server responsive. .. figure:: /Images/AgentDemo.gif :alt: AI agent creating a page, adding content, and optimizing SEO in TYPO3 :class: with-shadow The AI agent creates a page, adds content, optimizes SEO fields, and evaluates the result — all via natural language in the TYPO3 backend. Key features ============ .. card-grid:: :columns: 2 .. card:: Chat on every backend page A chat panel from the top bar, or a column beside the page tree. Send messages, approve changes and manage conversations without leaving TYPO3. The module **AI > AI Chat** shows readiness, settings and usage. .. card:: Tools from nr-llm The chat runs on nr-llm's agent runtime and tool registry: builtin read and write tools, plus any MCP server configured in nr-llm's *MCP Servers* module. .. card:: Conversation history Conversations are persisted in the database. Resume previous chats, pin important ones, or let the system auto-archive inactive conversations. .. card:: Floating chat panel A toolbar button opens a resizable bottom panel that stays visible across all module navigation. Chat while working in the page tree without switching context. .. card:: File attachments Attach PDF, DOCX, TXT, and XLSX files to your messages. Text is extracted server-side when needed, so all formats work regardless of the LLM provider. Vision-capable providers also accept images -- which ones depends on the provider (PNG, JPEG, GIF and WebP everywhere, HEIC and HEIF on Gemini). .. card:: Markdown rendering AI responses are rendered as rich Markdown -- headings, lists, code blocks, and tables -- using marked.js with DOMPurify for XSS safety. .. card:: Missing alt texts One list of every image without an alt text, on pages and in records, that you may fix. A purely decorative image is marked as such and is output with an empty alt text. .. card:: Secure by design Access is restricted to configured backend user groups. Messages are length-limited, concurrent conversations are capped, and API keys are never exposed to the browser. Example interactions ==================== Once a provider is configured in nr-llm, you can ask the assistant to perform tasks like: * "Show me all pages under the homepage" * "Create a new text content element on page 42 with the heading 'Welcome'" * "What content elements exist on page 15?" * "Move the news page to be a subpage of 'About Us'" * "List all hidden pages in the site" What it can actually do depends on which tools nr-llm makes available: its builtin set reads the installation and makes bounded editorial writes (new pages and content elements arrive hidden, as drafts), and an MCP server registered under **AI > Operation > MCP Servers** adds whatever tools that server offers. With every tool switched off, the chat still works as a general-purpose assistant on the configured LLM provider, but cannot see or change TYPO3 content. Acknowledgments =============== This extension builds on the work of others: `nr-llm `__ The Netresearch LLM abstraction layer for TYPO3 that provides provider-agnostic access to language models. `nr-vault `__ Secure credential storage for TYPO3, used to protect API keys for LLM providers.