While many MVP features (title, excerpt, alt text) live within the post editor, we also need to consider how site owners may want to use AI in more conversational or exploratory ways. This could take the form of:
- A global “AI Workspace” screen in wp-admin, styled after the modern Site Editor, where users can engage with a chatbot-style interface.
- The ability to run multi-step AI interactions that go beyond a single field or content object (e.g., “help me configure my site navigation,” or “generate a campaign outline across multiple posts”).
- Using upcoming WordPress admin design directions such as DataViews or DataForms to make this workspace feel like a natural part of core rather than a standalone tool.
- Allow for this experience to be triggered both outside and inside the site/block editors.
This approach provides a bridge between single-field helpers and broader conversational AI workflows, giving users more freedom in how they experiment with AI. It also opens a design question: how to ensure consistency between editor-embedded features and this global workspace so users don’t feel like they are moving between two different products.
Expected usage here could range from the simple “Please generate sample titles for my latest post” all the way to more complex requests like “Build a custom 404 page that leverages an URL parameters or invalid slugs to find the 3 most likely posts being searched for, render those in nice post card layouts, after that show an option to display our site search experience in case the rendered results above are not what they were searching for, and then finally provide a listing of my 5 most popular posts in the last 24hrs”.
Product Requirement: Global AI Workspace (Chat)
Feature Overview & Value
- Summary: This feature introduces a dedicated, conversational interface within the WordPress admin: the "AI Workspace”, where users can engage in multi-step, context-aware interactions with AI.
- Unlike the task-specific tools (like Title Generation), this workspace allows for open-ended exploration, content planning, and site-wide operations.
- It has context awareness, meaning AI has read-access to the site’s content, structure, and taxonomy, allowing it to provide answers grounded in the actual reality of the user's WordPress installation.
Use Cases
Users often need to "zoom out" to plan content calendars, analyze gaps in their existing library, or generate complex code snippets (like HTML patterns) that don't fit into a single block. This workspace bridges the gap between discrete editorial tasks and broader site management.
- Strategic Content Planning (Context-Aware): "Look at my last 10 published posts. What are three related topics I haven't covered yet that would fit my site's specific tone?"
- Multi-Post Generation: "I need to launch a series on 'Remote Work.' Please generate titles and short excerpts for a 5-part series, and create draft posts for each."
- Technical/Design Assistance: "Write the HTML for a custom 404 page that lists my most popular categories, and style it using Tailwind CSS classes".
- Site Querying: "Find all posts tagged 'Updates' published in 2023 that have no featured image."
User Interaction Flow
- Overview: The experience lives in a top-level admin screen designed to feel like a modern tool (similar to the Site Editor or DataViews), rather than a classic settings page. It persists conversation history within the session but clearly delineates between "chatting" and "doing."
- Entry Point (Full Screen App perhaps?)
- Primary: A submenu item labeled AI Workspace appears under AI Experiments. Clicking this launches a full-screen React application (similar to the Site Editor interface), removing the standard WP Admin sidebar to maximize space for DataViews.
- Secondary: An "Open in Workspace" action is available in the Block Editor toolbar, allowing users to seamlessly hand off complex tasks to the full workspace.
- Triggering this passes the current post's context (ID, content, and meta) to the Workspace, initializing the session so the user can immediately query or manipulate that specific post.
- The Interface
- Main Chat Area: A central feed displaying the conversation history.
- Context Scope: A subtle indicator or selector showing what the AI uses as its source of truth.
- Default: "Site Context" (RAG-enabled). The AI prioritizes the user's WordPress content, tags, and structure.
- Option: "General Knowledge" (Base Model). The AI ignores site-specific data and relies solely on its pre-trained knowledge (standard LLM behavior). Note: This does not include live web browsing in Phase 1.
- Input Field: A prominent text area supporting multi-line prompts.
- Output & Actions
- The AI responds with text, code blocks, or structured data lists.
- Actionable Artifacts: When AI generates useful content, the UI provides specific actions:
- For Text: "Copy" or "Create Draft Post" (if the output looks like a post).
- For Code: "Copy Code."
- For Data: If the AI lists posts (e.g., "Here are 5 posts needing updates"), the list is rendered using the DataViews component, allowing the user to click through to edit those posts directly.
- Session Management
- Users can clear the chat to start a "New Topic."
- MVP: History is local/session-based.
- Future: Saved threads (e.g., "SEO Strategy Thread").
Technical Requirements (High-Level)
- AI Input Requirements (Context Window):
- User prompt.
- System Prompt / Tools: The AI must be equipped with "Tools" (Function Calling) to query the WordPress database safely.
- The AI does not ingest the entire database at once; it queries relevant data based on the user's prompt (RAG-lite approach).
- AI Output Requirements:
- Markdown support for formatting.
- Structured JSON when requested (to facilitate the "Create Draft" features).
- Architecture & Security (Middleware Layer)
- Sandboxing: The AI model never accesses the database directly. All requests must pass through a PHP middleware layer.
- Permission Enforcement: The middleware explicitly checks
current_user_can() capabilities before executing any tool.
- Example: If a user asks "List private posts," the middleware checks
edit_private_posts. If false, the system returns a "permission denied" error to the AI, which then informs the user, preventing unauthorized data access.
- Context & Token Management (RAG-lite)
- Retrieval Strategy: The AI uses a two-step process to manage costs and latency. First, it uses a Search Tool to identify relevant content headers. Second, it retrieves the full content of only the most relevant items.
- Hard Limits:
- Max Search Results: The Search Tool returns a maximum of 20 titles/excerpts per query.
- Max Context Processing: The AI can only read the full body content of 5 posts simultaneously. Requests to "Audit all 500 posts" will be rejected with a user-friendly message to prevent timeout errors.
- Model Selection:
- Requires a model capable of strong reasoning and function calling to handle context querying effectively.
Editorial Handling
- Tone: The workspace should feel like a "Co-pilot". It should ask clarifying questions if a request (like "Delete bad posts") is ambiguous or dangerous.
- Safety: The AI should never execute destructive actions (Delete/Erase) directly. It should only list items for the user to delete manually.
Open Questions / Design Notes
- Action Confirmation: If the AI suggests creating 5 drafts, do we show a modal confirmation summary before the actual
wp_insert_post calls happen? (Recommendation: Yes).
- Context Token Limits: How much site data is too much? If a user asks "Summarize all 5,000 posts," we need a graceful failure state or a "process the last 50 only" fallback.
- Mobile Experience: How does this complex workspace degrade on mobile screens? This is likely not an MVP functionality.
User Flows for Design
1. Access and Entry Points
- Admin Sidebar Entry: The user navigates to the workspace via a top level menu item in the WP Admin sidebar similar to the Site Editor.
- Editor Handoff: The user is working in the Block Editor and clicks an "Open in AI Workspace" action to move their current task into the broader conversational interface.
2. Core Chat Interface and Context Selection
- Standard Chat Loop: The user enters a prompt and receives a text response. This includes states for empty state, typing, loading, and streaming the response.
- Context Scoping: The user toggles or confirms the AI context scope to determine if AI is looking at the entire site content or just general internet knowledge.
3. Site Querying and DataViews
- Querying Content: The user asks a question about existing content such as "Find my most popular posts."
- Data Presentation: The system renders the results not just as text but as a structured list or table using the WordPress DataViews component.
- Direct Manipulation: The user clicks an item in the generated list to edit the post or perform a bulk action directly from the chat interface.
4. Multi Step Content Creation
- Campaign Generation: The user asks to generate a content plan or multiple post outlines.
- Artifact Creation: The AI proposes multiple drafts or pages. The user reviews the proposal and clicks a "Create Drafts" button.
- Success Feedback: The system confirms the creation of the new objects and provides links to edit them.
5. Technical and Code Generation
- Code Request: The user asks for a specific template or code snippet such as a custom 404 page layout.
- Code Block Interaction: The system displays the code in a formatted block with a "Copy" or "Insert" action.
6. Mobile Experience
- Responsive Chat: The user accesses the workspace from a mobile device. The layout adapts to show the chat feed and input field clearly while managing screen real estate for complex data views or lists. If this is reasonably achievable, ok fine, but otherwise fine to punt this as non-MVP.
Credits
Props to @linawiezkowiak, @lwoodmansee, and @rachaelcortellessa for the product definition, and @dkotter for technical review.
While many MVP features (title, excerpt, alt text) live within the post editor, we also need to consider how site owners may want to use AI in more conversational or exploratory ways. This could take the form of:
This approach provides a bridge between single-field helpers and broader conversational AI workflows, giving users more freedom in how they experiment with AI. It also opens a design question: how to ensure consistency between editor-embedded features and this global workspace so users don’t feel like they are moving between two different products.
Expected usage here could range from the simple “Please generate sample titles for my latest post” all the way to more complex requests like “Build a custom 404 page that leverages an URL parameters or invalid slugs to find the 3 most likely posts being searched for, render those in nice post card layouts, after that show an option to display our site search experience in case the rendered results above are not what they were searching for, and then finally provide a listing of my 5 most popular posts in the last 24hrs”.
Product Requirement: Global AI Workspace (Chat)
Feature Overview & Value
Use Cases
Users often need to "zoom out" to plan content calendars, analyze gaps in their existing library, or generate complex code snippets (like HTML patterns) that don't fit into a single block. This workspace bridges the gap between discrete editorial tasks and broader site management.
User Interaction Flow
Technical Requirements (High-Level)
current_user_can()capabilities before executing any tool.edit_private_posts. If false, the system returns a "permission denied" error to the AI, which then informs the user, preventing unauthorized data access.Editorial Handling
Open Questions / Design Notes
wp_insert_postcalls happen? (Recommendation: Yes).User Flows for Design
1. Access and Entry Points
2. Core Chat Interface and Context Selection
3. Site Querying and DataViews
4. Multi Step Content Creation
5. Technical and Code Generation
6. Mobile Experience
Credits
Props to @linawiezkowiak, @lwoodmansee, and @rachaelcortellessa for the product definition, and @dkotter for technical review.