Free Tools (16) Pricing
0 credits
Add Credits
Dashboard Free Tools

Using the AI Chat Assistant in Component Studio

6 min read min read
Updated Feb 26, 2026
Intermediate
Quick Answer

The AI Chat sidebar in Component Studio lets you describe changes in plain English and the AI updates your component code directly in the editors. Each message deducts credits based on the model selected.

The AI Chat sidebar in Component Studio provides a conversational interface for building and refining components. Describe what you want in plain English and the AI applies changes to the HTML, CSS, and JavaScript editors directly. The AI maintains the context of the entire conversation as you iterate, so each message builds on what came before.

Opening the Chat

Click the AI Chat button in the Component Studio header toolbar. The sidebar opens on the right side. Your current component's HTML and CSS are automatically sent as context with every message—the AI always knows what it is working with.

Sending Messages

Type your request in the input field and click the send button or press Enter. While the AI processes your request, the send button shows a loading indicator and the input is disabled to prevent double-sends. When the response arrives, any code changes are applied to the editors and a notification confirms what was updated.

Examples of effective requests:

  • "Create a hero section with a headline, subheadline, and a CTA button"
  • "Make the card grid responsive for mobile"
  • "Add a fade-in animation when cards enter the viewport"
  • "Use my brand colors for the buttons"
  • "Convert the two-column layout so the image stacks above the text on mobile"
  • "Add a JavaScript counter that animates numbers on scroll"
  • "Fix the overflow issue on small screens"

Attaching Images

Click the image attachment button next to the input field to include screenshots, mockups, or design references with your message. The AI will use the image as a visual reference when generating code. Up to 4 images can be attached per message — attaching images increases the credit cost for that message.

Model Selection

Two AI models are available, selectable via radio buttons below the chat input:

  • Haiku — faster, fewer credits per message. Best for simple changes and quick iterations.
  • Sonnet — more capable, more credits. Best for complex layouts, large rewrites, or when Haiku does not produce the intended result.

Undoing AI Changes

The chat sidebar maintains a local undo stack for AI-applied code changes within the session. Click Undo above the chat input to revert the last set of changes applied by the AI. Multiple undo steps are available.

Conversation Context

The AI uses the last 10 messages from the session as context for each new message. You can reference earlier decisions ("go back to the layout from before") without re-explaining everything. Conversation history is saved per component and reloads when you return to that component.

Quick Suggestions

After each AI response, the sidebar may display two or three quick-action suggestions based on what was just built. Clicking a suggestion sends it as your next message, making it faster to continue iterating.

Metadata Auto-Fill

When the AI generates or significantly redesigns a component, it may suggest a name, description, and category. If so, the fields in the Create tab sidebar are auto-filled automatically. Auto-fill only populates empty fields—anything you have already typed is not overwritten.

Credits

Each message deducts credits based on the selected model and whether images are attached. Your current balance is shown at the bottom of the chat sidebar. If the balance is too low to send a message, the send button is disabled and a recharge prompt appears.

Common Questions

Does the AI have access to my WordPress site?

No. The AI only sees the HTML and CSS from the current component editors, plus any images you explicitly attach. It does not access your database, other pages, or other components.

Can I paste code into a chat message?

Yes. Pasting code works well. Say "replace the button with this:" followed by your pasted code and the AI will incorporate it into the component.

What happens to the conversation when I close Component Studio?

Conversation history is saved to the component's post meta (or a session transient for new unsaved components) and reloads automatically when you return to that component.

Next Steps

Was this article helpful?