Customization

In the Chatbots tab, you can switch the toggle from Chatbots to Themes. There, you can modify the default themes that come with AI Engine using a no-code editor.

AI Engine chatbot themes editor with the Glass theme and preview

You can customize pretty much everything for the built-in themes (ChatGPT, Messages, Timeless, Foundation and Glass) using the visual editor. The preview on the right opens with a short sample conversation, so you can see your changes on real messages. That sample is never saved or sent to the AI. But if you want to change something specific in an existing theme, you can use the Custom CSS section to adjust just that part instead of writing your whole theme from scratch.

Glass puts coloured light under frosted glass. Its Mode can be Night (the default), Light, or Follow the visitor’s device, which switches between the two based on the visitor’s system setting. Pick the four lights and everything follows: the visitor’s bubbles, the glow, the ring around the avatar and the launcher.

Timeless and Messages also got fresher defaults (larger text, rounder corners, a white pane), and Messages no longer has bubble tails. If you already customized one of these themes, your own values are kept.

Timeless theme editor with the Custom CSS section open

If you want more customization, you can create your own theme by clicking the + button. This will open a CSS editor where you can manually use AI Engine’s chatbot class definitions to build your own custom design. Default CSS gives you a starting point, and Magic CSS writes a whole theme for you from a short description (for example, “dark mode with purple accents”).

Custom chatbot theme with its CSS editor and Magic CSS button

If you prefer to keep your CSS in your WordPress theme or in a snippet, load it like any other style. Each chatbot has an ID on its container (#mwai-chatbot-default for the Default chatbot), so you can target one chatbot only:

add_action( 'wp_head', function () {
  echo '<style>
    #mwai-chatbot-default {
      --mwai-fontSize: 15px;
    }
  </style>';
} );

These themes can also be used in the AI Forms.

Icons & Avatars

The icon refers to the chatbot pop-up image, which is only visible when your chatbot is configured as a pop-up, either because you’ve enabled that setting or are using the Site Wide Chatbot. The avatar, on the other hand, refers to the image displayed inside the chat itself, serving as the “profile image” of the chatbot and the user.

Settings

Make sure to enable the Popup option in the Appearance section. Then open the Popup & Launcher section: under Launcher Icon, you can pick one of the icons, or click the … button to enter an emoji or the URL of your own image.

To change the avatars, check the Avatar boxes in the Appearance section. For the AI, pick an image under AI Avatar (or use … for your own). For logged-in users, AI Engine uses their Gravatar. Guests can have their own avatar too.

Appearance section with Popup and Avatar options
Popup and Launcher section with the launcher icon picker

Shortcode

Using the shortcode of the chatbot, you can specify the icon param, with the URL of your icon, like this:

[mwai_chatbot id="default" icon="https://mywebsite.com/icon.png"]

To set the avatars, turn them on and give the URL of each image:

[mwai_chatbot id="default" ai_avatar="true" ai_avatar_url="https://mywebsite.com/ai-avatar.png"]
[mwai_chatbot id="default" ai_avatar="true" ai_avatar_url="https://mywebsite.com/ai-avatar.png" guest_avatar="true" guest_avatar_url="https://mywebsite.com/guest-avatar.png"]

You can get the URL directly from your Media Library by clicking the “Copy URL to clipboard”.

For logged-in users, user_avatar="true" shows the Gravatar (or the avatar already set in WordPress) of that user. When an avatar is off, the name is shown instead (by default “User:” and “Guest:”).

Displayed Texts

The chatbot displays various text elements inside and around the chat interface: the AI name, the user name, a name for guest users, a compliance text shown below the chatbot, an Icon text above the chatbot when it’s in pop-up mode, a Start Sentence to have a first message in the chat, and an Empty State Hint shown under the avatar when the conversation is empty and there is no first message. You can customize most of these values in the chatbot settings under the Appearance section (the Icon text is in Popup & Launcher).

Settings

Simply change these values in the Appearance settings and check the preview on the right side to see how your modifications look. The Send and Clear settings correspond to the text inside the respective buttons. Depending on your selected theme, this text might not be visible. For example, the Timeless theme uses icons instead of button text.

Appearance section of the chatbot settings

The User Name field accepts placeholders filled with the logged-in user’s data: {FIRST_NAME}, {LAST_NAME}, {DISPLAY_NAME} and {USER_LOGIN}. Generally, you would want to use {DISPLAY_NAME}, which is what the user would expect to see.

New chatbots start with these texts in your site language. The other texts the chatbot shows on its own (errors, buttons, upload messages and so on) are translated too, and you can change any of them with the mwai_chatbot_texts filter. See Translate or Change Chatbot Texts.

If you want to change the text that appears above the popup launcher, go to the Popup & Launcher section and fill in Icon Text. You can also choose when it appears (Icon Text Delay), hide it after a few seconds (Hide After), and decide how long it stays away once a visitor closes it (Remember Dismissal).

Popup and Launcher section of the chatbot settings
Chatbot launcher with its icon text

You can style it by using its class : .mwai-icon-text.

You can use the UI Builder section to change specific parts of the chatbot window (Container, Header, Messages, Input and Footer). New popup chatbots open in the MacOS frame and header. Existing chatbots keep the frame they already have.

UI Builder section with the MacOS container and header

The MacOS header shows the Popup Title (in Popup & Launcher) in its title bar. Leave it empty and the bar stays empty.

Popup chatbot in the MacOS frame with its popup title

Shortcode

You can change all of these settings through the shortcode as well. Here is an example. You can refer to the image of the settings above, as the parameter names in the shortcode are the same as those used in the settings, make sure to use snake case for each of them. For instance “Icon Text” will be “icon_text”.

[mwai_chatbot id="default" user_name="{DISPLAY_NAME}: " guest_name="Jon Meow: "]

Positioning

If you haven’t noticed already from the other screenshots, there’s a position setting available in the Popup & Launcher section.

Settings

Position options of the popup chatbot

Shortcode

[mwai_chatbot id="default" icon_position="bottom-left"]

Custom positioning

If you want to position the chatbot popup in a custom location, you can use custom CSS targeting the .mwai-window class or directly using the chatbot ID. Here’s how:

If you are not using the Default chatbot, make sure the ID is matching the chatbot you are trying to modify.

  1. First, locate the chatbot container by its ID. It will look something like #mwai-chatbot-default ( id=”mwai-chatbot-default” )
  2. Then, apply your desired position using CSS. For example:
#mwai-chatbot-default {
  top: 30px;
  bottom: inherit;
  right: 30px;
}

This will move the popup to 30px from the top and right.

Advanced Customization

This lists the CSS classes used in the AI Engine chatbot theme structure, organized hierarchically from the outermost container to the innermost elements.

Root Container

.mwai-chatbot (+ theme class)

The root container for the entire chatbot. Combined with a theme class like .mwai-foundation-theme, .mwai-chatgpt-theme, .mwai-timeless-theme, .mwai-messages-theme, or .mwai-glass-theme.

Modifiers:

  • .mwai-window: Popup/floating chat window mode
  • .mwai-fullscreen: Fullscreen mode
  • .mwai-open: Window is currently open
  • .mwai-opening: Window is animating open
  • .mwai-closing: Window is animating closed
  • .mwai-bubble: Bubble-style trigger icon
  • .mwai-bottom-left, .mwai-bottom-right, .mwai-top-left, .mwai-top-right: Window position
  • .mwai-center-open: Center the window when open
  • .mwai-form-container: AI Forms mode

Window Mode Structure

.mwai-trigger

The clickable icon/button that opens the chat window (only visible when window is closed).

Children:

  • .mwai-icon-text-container: Container for the optional text bubble
    • .mwai-icon-text: The text bubble message
    • .mwai-icon-text-close: Close button for the text bubble
  • .mwai-icon-container: Container for the trigger icon
    • .mwai-icon: The actual icon image
    • .mwai-emoji: Emoji icon alternative

.mwai-window-box

Wrapper for window animation transitions. Contains the header and body.


Header

.mwai-header

The header bar of the chat window (visible in window mode).

Children:

  • .mwai-name: Chat title/name display
  • .mwai-buttons: Container for window control buttons
    • .mwai-resize-button: Fullscreen toggle button
    • .mwai-close-button: Close window button

.mwai-mobile-header

Mobile-specific header shown when chat is fullscreen on mobile devices.

Children:

  • .mwai-mobile-header-title: The title text
  • .mwai-mobile-header-close: Close button

Body

.mwai-body

Main body container holding all chat content. Uses flexbox column layout.

Children (in order):

  • .mwai-shortcuts: Quick action shortcuts (optional)
  • .mwai-conversation: The message thread
  • .mwai-blocks: Dynamic content blocks (cards, widgets, etc.)
  • .mwai-files: File upload previews
  • .mwai-input: The input area
  • .mwai-footer: Footer with tools and compliance text

Shortcuts

.mwai-shortcuts

Container for quick action buttons.

Children:

  • .mwai-shortcut: Individual shortcut button
    • .mwai-icon: Shortcut icon

Modifiers:

  • .mwai-success, .mwai-danger, .mwai-warning, .mwai-info: Color variants

Conversation / Messages

.mwai-conversation

Scrollable container for all chat messages. Supports custom scrollbar styling.

Modifiers:

  • .mwai-terminal: Terminal/CLI display mode

.mwai-reply

Individual message container (both user and AI messages).

Modifiers:

  • .mwai-user: User’s message
  • .mwai-ai: AI’s response
  • .mwai-system: System message
  • .mwai-error: Error message
  • .mwai-fade-out: Fade-out animation state

Children:

  • .mwai-name: Sender name/avatar area
    • .mwai-name-text: The name text
    • .mwai-avatar: Avatar image container
      • .mwai-svg: SVG avatar modifier
  • .mwai-text: The message content
  • .mwai-reply-actions: Action buttons (copy, download)
    • .mwai-copy-button: Copy to clipboard
    • .mwai-download-button: Download content

Message Content

.mwai-text

The text content area within a message. Contains markdown-rendered content.

Notable children:

  • .mwai-image: Inline images
  • .mwai-filename: File attachment display
  • .mwai-typewriter: Typewriter animation wrapper
  • .mwai-gallery: Image gallery grid
  • pre, code: Code blocks with syntax highlighting (.hljs-* classes)
  • Standard HTML: h1–h6, p, ul, ol, table, a

Terminal Mode

.mwai-terminal (on .mwai-conversation)

Transforms the conversation into a terminal/CLI interface.

Children:

  • .mwai-terminal-line: Individual terminal line
    • .mwai-terminal-user: User input line
    • .mwai-terminal-user-typing: Currently typing line
    • .mwai-terminal-assistant: AI response line
    • .mwai-terminal-system: System message line
  • .mwai-terminal-prompt: The command prompt icon (chevron)
  • .mwai-terminal-text: Line text content
  • .mwai-terminal-input-wrapper: Wrapper for input text
  • .mwai-terminal-typed: Currently typed text
  • .mwai-terminal-cursor: Blinking cursor
    • .mwai-terminal-cursor-active: Active/focused cursor
    • .mwai-terminal-cursor-typing: Typing state
    • .mwai-terminal-cursor-inactive: Inactive state

Dynamic Blocks

.mwai-blocks

Container for dynamically injected content blocks (rendered HTML).

Children:

  • .mwai-block: Individual block wrapper

File Uploads

.mwai-files

Container for file upload previews before sending.

Children:

  • .mwai-file-preview: Individual file preview
    • .mwai-file-content: Content wrapper
    • .mwai-file-thumbnail: Image thumbnail
    • .mwai-file-icon: Document type icon
    • .mwai-file-info: File details
      • .mwai-file-name: Filename
      • .mwai-file-size: File size
    • .mwai-file-progress: Upload progress bar
      • .mwai-file-progress-bar: Progress indicator
    • .mwai-file-remove: Remove file button

Input Area

.mwai-input

Container for the text input and submit button.

Modifiers on .mwai-input-text:

  • .mwai-blocked: Input is blocked/disabled
  • .mwai-dragging: File is being dragged over

Children:

  • .mwai-input-text: Text input wrapper
    • textarea: The actual text input
    • .mwai-microphone: Voice input button
    • .mwai-file-upload-icon: File upload trigger
      • .mwai-lucide: Lucide icon variant
      • .mwai-upload-count: Upload count badge
  • .mwai-input-submit / button: Submit button

.mwai-file-upload

File upload functionality wrapper.

.mwai-file-upload-icon

The upload icon with sprite-based states:

  • .mwai-idle-add: Default add state
  • .mwai-image-add, .mwai-image-up, .mwai-image-del, .mwai-image-ok: Image upload states
  • .mwai-document-add, .mwai-document-up, .mwai-document-del, .mwai-document-ok: Document upload states

Footer

.mwai-footer

Footer area containing tools and compliance text.

Children:

  • .mwai-tools: Tool buttons container
    • .mwai-file-upload: Upload button
    • .mwai-file-upload-icon: Upload icon
  • .mwai-compliance: Legal/compliance text

Realtime Voice

.mwai-realtime

Container for real-time voice conversation UI.

Children:

  • .mwai-visualizer: Audio visualization
    • .mwai-animation: Animated bars
  • .mwai-controls: Voice control buttons
    • .mwai-push-to-talk: Push-to-talk button
    • .mwai-active: Recording active state
    • .mwai-talk-hint: Helper text
  • .mwai-last-transcript: Last transcribed text
  • .mwai-statistics: Usage stats display
  • .mwai-options: Additional options
    • .mwai-option: Individual option toggle

Discussions (Chat History)

.mwai-discussions

Container for the discussions/history panel.

Children:

  • .mwai-header: Panel header
    • .mwai-refresh-btn: Refresh list button
  • .mwai-body: Discussion list container
  • .mwai-discussion: Individual discussion item
    • .mwai-discussion-content: Content wrapper
    • .mwai-discussion-title: Discussion title
    • .mwai-discussion-info: Metadata
      • .mwai-info-item: Individual info piece
    • .mwai-discussion-actions: Action buttons
      • .mwai-menu-icon: Menu trigger
    • .mwai-active: Currently selected discussion
  • .mwai-pagination: Pagination controls
    • .mwai-page-indicator: Page number display
  • .mwai-loading-overlay: Loading state
    • .mwai-spinner: Loading spinner

Debug / Stream Events

.mwai-chunks

Debug display for streaming events.

Modifiers:

  • .mwai-chunks-collapsed: Collapsed state

Children:

  • .mwai-chunks-header: Header with controls
    • .mwai-chunks-title: Section title
    • .mwai-chunks-status: Status indicator
    • .mwai-chunks-toggle: Expand/collapse button
  • .mwai-chunk: Individual event chunk
    • .mwai-chunk-header: Chunk header
      • .mwai-chunk-time: Timestamp
      • .mwai-chunk-type: Event type badge
      • .mwai-chunk-data: Data preview
      • .mwai-chunk-expand: Expand icon
    • .mwai-chunk-details: Expanded details
      • pre: JSON/raw data

Context Menu

.mwai-context-menu-portal

Portal container for context menus (appears at document body level).

Children:

  • .mwai-context-menu: The menu container
    • .mwai-menu-item: Individual menu item
      • .mwai-danger: Destructive action style

Utility Classes

Transitions

  • .mwai-transition: Element with opacity transition
  • .mwai-transition-visible: Visible state (opacity: 1)

Visibility

  • .mwai-hidden: Hidden element (used with reply actions)

Buttons

  • button.mwai-busy: Loading state with spinner

CSS Custom Properties (Variables)

These variables control the theme appearance:

VariableDescription
--mwai-spacingBase spacing unit (padding/margins)
--mwai-fontSizeBase font size
--mwai-lineHeightLine height for text
--mwai-borderRadiusCorner radius
--mwai-borderColorBorder color
--mwai-widthChatbot width
--mwai-maxHeightMaximum height (window mode)
--mwai-iconSizeTrigger icon size
--mwai-fontFamilyFont family
--mwai-fontColorPrimary text color
--mwai-headerColorHeader text color
--mwai-primaryColorAccent/primary color
--mwai-accentColorSecondary accent color
--mwai-backgroundPrimaryColorMain background
--mwai-backgroundSecondaryColorSecondary background
--mwai-backgroundHeaderColorHeader background
--mwai-backgroundAiColorAI message background
--mwai-bubbleColorBubble trigger color
--mwai-iconTextColorIcon text bubble text color
--mwai-iconTextBackgroundColorIcon text bubble background
--mwai-conversationsBackgroundColorDiscussions panel background
--mwai-conversationsTextColorDiscussions text color
--mwai-errorBackgroundColorError message background
--mwai-errorTextColorError message text color
--mwai-lineColorDivider line color
--mwai-terminal-active-colorTerminal active element color

AI Forms

When Should I Use AI Forms?

If you have a scenario where you need to generate a custom response based on user input, whether it’s a quiz or a decision tree, AI Forms can be a great solution.

It’s much easier than trying to train a chatbot step by step to reach a single outcome.

Barebone Example

How To Use AI Forms ?

To build AI Forms, you first need to enable the Forms module. You will find it in the Modules tab, under Frontend Extras.

Forms module enabled in the Frontend Extras section of the Modules tab

AI Forms are built using Gutenberg Blocks. Each component of the form is its own block with its own settings, and they can reference each other, act as parents, and create conditional logic between them.

Since this relies on Gutenberg, if you’re using a third-party builder you won’t be able to create a form directly within your post. In that case, you can use the Forms tab to build forms there and then embed them in your posts using the related shortcode. To get this tab, enable Forms Editor in Settings → Others.

Forms Editor option in Settings, Others, User Interface

Fields Showcase

Here is a form built directly on this page so you can see all the different types of inputs you play with.

The Submit button will be disabled as long as the required field is empty.





AI Form Blocks

Once you have the AI Forms feature enabled, you will have access to new blocks. You can search for “AI” and find them all listed.

Form Submissions

If you want to see the data submitted through your forms by your users, enable the “Queries Form Data” option to display it in the Insights tab. This will let you review exactly what information is being sent in each form submission.

First, enable the Insights module in the Modules tab (under Tools & Insights).

Insights module enabled in the Tools and Insights section of the Modules tab

Then, in Settings → Others, the Insights section lets you turn on Queries Form Data.

Insights settings with Queries Data and Queries Form Data

If you want to receive email notifications whenever a form is submitted, instead of checking the queries manually, you can use the Notifications addon. It will automatically send you an email each time a new submission is received.

Form Structure

When creating a new form, you should start with a container. Without it, the form will appear like raw HTML without any styling.

The container also provides a pre-made template you can use to get started quickly. We will use that default template to explain how it works.

Each block has its own settings. Select a block by clicking on it, and in the right-side panel you’ll find all the available settings you can modify.

The flow should be as follows: the container holds all fields, all inputs are referenced in the submit prompt (your instructions sent to the AI), and the submit defines where the output should be written (the output field).

[ Container ]
      |
      ├── [ Input Field 1 ]
      ├── [ Input Field 2 ]
      ├── [ Input Field 3 ]
      |
      └── [ Submit Prompt ]
              |
              ├── uses → {Input Field 1}
              ├── uses → {Input Field 2}
              ├── uses → {Input Field 3}
              |
              └── sends to AI
                       |
                       ▼
                [ AI Response ]
                       |
                       ▼
                [ Output Field ]

Building a Prompt

Building an AI form prompt is done in the Submit field. You’ll find a text area where you can create your prompt template.

To include user inputs in the prompt, simply add the field name in curly brackets, like {WORD}. It will automatically be replaced with the user’s input.

For example, if the field WORD has the value cat, then:
Word: {WORD} → Word: cat

You are not limited to your own form fields. You can also use query selectors.

For example, if you have a predefined value on your page, you can target it using ${#myfield}. This could be another form’s output, allowing you to reuse a previous result as an input in a different form.

Form Output

Each Submit field should have an output defined. In the Submit field settings, you’ll find an “Output Element” option that needs to be filled.

This field expects a query selector, which means you can display the output anywhere on your page. For now, you can simply use the AI Forms Output field as your target.

When using an Output field, you can simply copy and paste the purple ID into the Output Element of your Submit field.

Make sure you don’t forget the #, as this is a query selector, not just a field name reference.

While the AI is working, the Submit button shows how many seconds have passed. If the reply reaches the Max Tokens limit, it ends with a short note saying it was cut, instead of stopping in the middle of a sentence. When you are logged in as an admin, the note also shows the current value, so you know what to raise (in the Submit block, or in the chatbot when you use Chatbot Mode). If something goes wrong on the server, visitors see a simple error message, and the real error goes to your PHP error logs.

Advanced Forms

You can also use other AI Forms blocks to create more advanced prompts and behaviors.

Model and Context Params

In the Submit block, where you define your prompt, you can also adjust the context and model parameters.

You can:

  • Choose which model to use for the prompt
  • Decide whether to use a Knowledge environment
  • Select MCP servers if needed

If you already have everything configured in a chatbot and want to reuse that setup, you can enable Chatbot Mode and select it. This will run the form’s final prompt through your chatbot instead of using the parameters of the Submit block: the form uses the chatbot’s model, temperature, Max Tokens and Knowledge, as well as its functions and MCP servers.

Conditionals

Conditional blocks can be used to check the value of one or multiple fields. If all conditions are met, they will display their child blocks (not only AI Forms fields, but any block inside them).

For example, you could have two conditionals checking the value of an input like “word”:

  • If the value is “cat”, you show a submit with prompt specific to that case
  • If the value is “dog”, you show a completely different submit with its own prompt as well

This way, it’s almost like having two forms in one, each with its own logic and behavior depending on the user input.

Here we use conditionals to display different Submit fields, but you can also make fields depend on other fields. For example, one input can appear only if another field has a specific value.

Filters

AI Forms also sends an event when a form is submitted, so you can create your own custom behavior based on that submission using this filter:

MwaiAPI.addFilter('ai.formReply', function (reply, args) {
  const { formId, sessionId, contextId } = args;
  return reply + ' For more information, visit [Meow Apps](https://meowapps.com).';
});

This requires some technical knowledge, but it allows you to build very specific behaviors.

For example, you can react to a form submission, check the result, and then dynamically display new fields. This could include showing another Submit block with a new prompt based on the previous output.

Here is how it is done here:

setTimeout(function () {
  const field1 = document.querySelector('#mwai-k0rq100s6');
  const field2 = document.querySelector('#mwai-b0xxjn4al');

  if (field1) field1.style.display = 'none';
  if (field2) field2.style.display = 'none';

  MwaiAPI.addFilter('ai.formReply', function (reply, args) {
    const { formId, sessionId, contextId } = args;

    if(formId != "f5a26dbe26cb08f2486ea274ea16dcaf") return reply;

    const field1 = document.querySelector('#mwai-k0rq100s6');
    const field2 = document.querySelector('#mwai-b0xxjn4al');
    const fieldToHideAfterSubmit = document.querySelector('#mwai-24mndzrb3');

    if (field1) field1.style.display = '';
    if (field2) field2.style.display = '';

    if (fieldToHideAfterSubmit) {
      fieldToHideAfterSubmit.style.display = 'none';
    }

    return reply;
  });
}, 1000);

Autofill

You can also autofill values if you already have predefined content available, such as user information.

Here is an example: when clicking the button, it automatically sets the input value based on the current page content, but it could really be anything depending on your use case.

My name is Nyao

Form fields are actually wrapped inside <fieldset> elements, not direct <input> elements themselves.

So to dynamically update the value, you first need to find the actual <input> or <textarea> inside the fieldset before modifying it.

Here’s a code example:

<span id="custom-content">My name is Nyao</span>

<button style="margin-left: 15px"id="copy-btn">Copy to input</button>

<script>
  document.getElementById('copy-btn').addEventListener('click', function() {
    var span = document.getElementById('custom-content');
    var fieldset = document.getElementById('mwai-0xl7ikx7s');

    if (!span || !fieldset) return;

    var text = span.innerText.trim();

    var input = fieldset.querySelector('textarea') || fieldset.querySelector('input[type="text"]') || fieldset.querySelector('input');

    if (!input) { alert('No input found inside fieldset'); return; }

    input.focus();
    input.value = text;
    input.dispatchEvent(new Event('input', { bubbles: true }));
    input.dispatchEvent(new Event('change', { bubbles: true }));
  });
</script>

Voice

You can set your chatbot Mode to Realtime (in the Chatbot section of the chatbot editor) to use OpenAI’s voice-to-voice models. Your visitors talk to the chatbot, and it answers with its voice.

Chatbot section with the Mode set to Realtime

Then open the AI Model section. A Realtime chatbot needs its own Environment (an OpenAI or Azure one, the Default environment is not enough) and a realtime model, such as GPT Realtime 2.1 or the cheaper GPT Realtime 2.1 Mini. If one of them is missing, the chatbot won’t work.

AI Model section of a Realtime chatbot with the GPT Realtime models

In the same section, you can pick the Voice of your chatbot and the Talk Mode: Hands-Free (the chatbot listens all the time and answers when you stop talking) or Hold to Talk (the visitor holds the button while speaking).

Your visitors start the conversation with the play button. Under it, small icons let them show the speakers, show captions (a written transcript of the conversation) and see some statistics. They can also type a message instead of speaking. Functions attached to the chatbot work in voice conversations too.

Realtime chatbot with its play button

Text To Speech

With the regular chatbot, text-to-speech is not supported natively by AI Engine, but some freelancers have developed AI Engine addons that handle this functionality.

Speech To Text

A regular chatbot can support voice input to write messages instead of typing. Note that this does not rely on any AI transcription model, nor is this a feature of the plugin itself. This uses your web browser’s built-in Web Speech API, so the result and the supported languages you get from it depend on your current device.

You can enable this by going to Settings > Chatbot and checking Speech Recognition next to Web Speech API.

Web Speech API setting with Speech Recognition enabled

This will add a microphone icon in the message input section of your chatbot:

Chatbot input with the microphone icon

File Upload (PDF, PNG…)

Upload PDFs, DOCx, and more

Most models can now read files directly, so a regular chatbot is all you need. Pick a model that supports files, then tick File Upload in the AI Model section of your chatbot.

File Upload option in the AI Model section

A File Uploads section then appears. There, you set how many files can be sent with one message (Max Files) and which file types are accepted (Allowed Mime Types, or click Select to pick them from a list).

The OpenAI Assistants (and their File Search option) were removed from AI Engine in version 3.7.5, after OpenAI shut down the Assistants API. A regular chatbot with File Upload replaces them.

Upload Images

This is the same process as File Upload. The File Uploads section tells you what the selected model accepts: images, documents (PDF, etc.), or both. If it says This model may not support file uploads, pick another model.

Message telling which files the selected model supports

Uploaded media have to be stored on your WordPress server first so they can be sent through in the chatbot query. As for replies, if they contain a file or an image, that file also needs to be saved on your server so your users can download it.

You can go to Settings > Files & Media to choose where these files are stored (filesystem or Media Library) and when they expire.

Files and Media settings for uploaded and generated files

How visitors send a file

Visitors can click the paperclip icon, drag a file onto the chatbot, or simply paste a file (or a screenshot) into the message field. Before they send, the chatbot shows the attached file with its name and a button to remove it.

If an upload fails, the chatbot says why. For example, when the file is too large, it tells the visitor the size limit, and when the type is not allowed, it says so.

Uploaded files stay in the conversation: the visitor can ask more questions about the same file in the next messages, with OpenAI as well as with Claude and other providers.

Upload multiple files

Not all models are compatible with multi-file upload. If not, you will probably get an error if you try to send multiple files in a single query. Go to your chatbot settings, and in the File Uploads section, set Max Files to the maximum number of files that can be uploaded per message (1 means a single file).

File Uploads section with Max Files and Allowed Mime Types

Knowledge (Embeddings)

If you need your chatbot to rely on specific information and not only on its general AI training, AI Engine can help you build a knowledge base for tailored responses. Please read this documentation to get started: Knowledge Base.

Create & Edit Images

Chatbot

You can choose to set your chatbot to “image” mode and it will generate images for each message you send.

If you want your chatbot to work with text responses and generate images only when asked, the recommended method is to use the Chat Mode with the Image Generation tool (in Tools & Capabilities), compatible with most recent models.

If your model is compatible, you can simply select it and it will be used automatically, just like function calling. This approach runs entirely on OpenAI’s side ( or Google / Anthropic ), so there are no settings in AI Engine to tweak the results. However, it’s a simple solution that needs no code. (Developers can still adjust the request sent to OpenAI, like the image quality, with the mwai_openai_body filter.)

Image Generation in the chatbot Tools and Capabilities



If you are using a model that cannot run the out-of-the-box Image Generation tool, you can also use function calling to let the chatbot generate the image by itself by creating your own logic.

Yes, it is really just two lines of code, and now any chatbot can generate images:

function generate_image( $prompt ) {
    global $mwai;
    return $mwai->simpleImageQuery( $prompt );
}

AI Forms

If you need to tailor your users’ prompts with predefined choices, using AI Forms might be the best solution. You can learn everything about them in this documentation: Your First Form.

To generate Images with forms you just need to select a model that generates images instead of a regular text-based model:

You can try it yourself below: the prompt is already predefined; it should generate something that looks familiar…

Image Studio

First, in the Modules tab, under Content Creation → Generators, make sure the Images Generator is enabled.

Generators in the Modules tab

This adds an Images button to the header of AI Engine. It opens the Image Studio.

Content, Images, Videos and Playground buttons in the AI Engine header

The Image Studio has three parts:

  • Your images on the left: every image you create or bring in, with all its versions, so you can come back to it later.
  • The canvas in the middle: describe the image you want at the bottom and pick how many to generate at once (1 to 4). You can also start from a photo: Upload a photo or pick one From the Media Library. Short on ideas? Click one of the suggestions.
  • Model and Presets on the right: choose the environment, the model, the size and the quality. A preset saves the prompt, the model, the size and the quality together, so you can reuse them later.
Image Studio

Each image you generate can be downloaded or saved to your Media Library, with its filename and alt text.

Image Edits

With a model that can edit images (like GPT Image), you can refine any image step by step in the Image Studio. To edit an image from your Media Library, switch the Media Library to the list view and use the Edit link with the magic wand icon, or use From the Media Library in the Image Studio.

AI Engine Edit link in the Media Library

The image opens in the Image Studio. Every edit becomes a new version, listed on the right, and the original is never touched. From the toolbar above the image:

  • Edit this image (at the bottom): describe a change, like warmer light or no car, and get a new version.
  • Brush: paint over the area you want to change, then describe what goes there. Only the painted area changes.
  • Compare: see a version next to the one it came from (before and after).
  • Variations: get a fresh take on the image, with the same subject, framing and style.
An image opened in the Image Studio, with its versions
Brush edit in the Image Studio

If the selected model can create images but not edit them, the Image Studio tells you so.

Image Edits In Chatbot

You can also enable image editing behavior within a discussion thread by taking advantage of the Image Generation tool. Enable File Upload in the AI Model section so your visitors can send an image. If you’re using a vision-enabled model, you can create a workflow where the model first visualizes the image, generates a description of it, and then uses your prompt along with that description to generate a new image that appears as an edit of the original.

Chatbot AI Model settings with File Upload

Insights (Limits)

First, you need to enable the Insights feature. Go to the Modules tab of AI Engine and enable Insights (in the Tools & Insights card):

Insights module in the Modules tab

This will add a new tab in AI Engine settings. Now you can go to the “Insights” tab. Here, you will find a list of all the queries that are being made to your chatbots and tools, with their tokens and price, and an Activity chart. Click a query to see its details, including the cached tokens (input tokens the provider billed at a lower rate). You can also enable the limits here.

By the way, if you want to see the logs of any of these queries, you will need to go to Settings > Others and enable the “Queries Data” option in the Insights block. Retention, in the same block, sets how long the logs are kept.

Insights block in Settings, Others, with Queries Data

Once you have enabled the limits, you have different settings that you can tweak, such as the number and type of credits (Queries, Tokens, and Dollars). You can also set the Timeframe for each of these limits to reset. With Absolute checked, the timeframe follows the calendar (Day means today, Month means this month). Without it, it is a rolling window (Day means the past 24 hours).

Limits card with credits, type and timeframe

Be careful, there are three different settings tabs here: User, Guests, and System. Take a look at the message that will be sent by the chatbot when the user reaches its limit for each of those.

The “System” setting will apply to every type of user. It’s kind of like your website’s maximum limit, so make sure to set this up correctly as well.

If you want to customize the limits based on your users’ roles or any meta data, you can use the PHP Filters such as mwai_stats_credits and mwai_stats_coins. See the examples below.

How to check user’s usage

The usage is not a value you can see directly, as it’s not a meta that’s stored per user: it’s calculated on the fly whenever your user makes a query. The system compares the number of queries in the user’s history to the max credits allowed over the specified timeframe.

You can visualize that by using the following shortcodes:

[mwai_stats display="debug"]
[mwai_stats_current display="usage"]

All the available parameters for the shortcode:

  • display: debug, usage
  • display_who: true, false
  • display_queries: true, false
  • display_tokens: true, false (the older display_units still works, and shows the old “Units” label)
  • display_price: true, false
  • display_usage: true, false
  • display_coins: true, false

Non credits limitation

If you are looking for ways to block access from different parameters, such as time (only available from 2 p.m to 4 p.m), currently, there are no out-of-the-box features to accomplish this. However, you can achieve it yourself by using AI Engine filters. By using the mwai_ai_allowed($allowed, $query, $limits) function, you can check the timing of the user’s query and return an error message if the timeframe is not suitable for you.

Rather than using filters, you can completely overwrite the chatbot shortcode so that it only displays under specific conditions, such as within a certain time range, user role, or other custom logic.

To learn more about how to do this, check out this documentation: Shortcode Overwrite & Conditional Logic

This approach gives you full control over when and how the chatbot appears on your site.

You can also come up with a solution on the client side. Using JavaScript, you can check the current time and then select the chatbot using its ID to disable it. You can do this by either hiding it or disabling the input with CSS, or even deleting the DOM element.

Can I use a membership plugin?

You can define a limit on the number of credits (queries, tokens, or dollars) a user can spend over a given time frame (month, day, year). When a query is made, the plugin checks the history of queries during that period and verifies whether the number of queries, tokens, or dollars exceeds the chosen value. That’s it.

The plugin doesn’t need to know whether you’re using a third-party plugin to manage roles or access. It just needs to know the number of credits you allow to be used. This value can be dynamically adjusted using filters:

  • mwai_stats_credits($credits, $userId) → modifies the number of credits (allows you to create your own system)
  • mwai_stats_coins($price, $stats, $atts) → modifies the coins (lets you convert the price you personally pay to OpenAI into your own system of coins that you share with your users)

So in your case, you can use the mwai_stats_credits filter to fetch the user’s metadata and return its value. This will override the credits you set manually in the Limits settings. Then, when the plugin checks the query history over the timeframe, it will compare the number of credits (X, your WooCommerce metadata) against the credits used in recent queries.

add_filter( 'mwai_stats_credits', function ( $credits, $userId ) {
  $user = get_userdata( $userId );
  if ( !empty( $user->roles) && is_array( $user->roles ) ) {
    foreach ( $user->roles as $role) {
      if ( $role === 'premium' ) {
        return 50;
      }
      if ( $role === 'standard' ) {
        return 10;
      }
    }
  }
  // This will be basically the default value set in the plugin settings
  // for logged-in users.
  return $credits;
}, 10, 2);

Let’s assume your user has a corresponding “custom_credits” value. When a user purchases credits, you just need to add them to this number.

add_filter( 'mwai_stats_credits', function ( $credits, $userId ) {
    $user = get_userdata( $userId );
    if ( !empty( $user->custom_credits ) ) {
        $credits = $user->custom_credits;
    }

    return $credits;
}, 10, 2);

For more details on all available filters, check the PHP Filters reference.

About timeframes: there is no built-in subscription window (limits that reset on the anniversary of each user’s subscription). The timeframes are either calendar periods (Absolute) or rolling windows. If you need subscription logic, use the mwai_stats_credits filter above, or the mwai_ai_allowed filter below with your own counter.

Build your own logic

You can also use the mwai_ai_allowed filter while disabling the built-in limit system to create your own custom logic for determining whether a query should be allowed.

Here are a few quick examples to get you started:

add_filter( 'mwai_ai_allowed', function( $allowed, $query, $limits ) {

    // Only apply to text queries
    if ( ! ( $query instanceof Meow_MWAI_Query_Text ) ) {
        return $allowed;
    }

    // Always allow a specific chatbot, free to use / limitless
    if (
        isset( $query->botId ) &&
        $query->botId === 'chatbot-free'
    ) {
        return true;
    }

    return $allowed;

}, 10, 3 );
add_filter( 'mwai_ai_allowed', function( $allowed, $query, $limits ) {

    // Only apply to text queries
    if ( ! ( $query instanceof Meow_MWAI_Query_Text ) ) {
        return $allowed;
    }

    // If guest user, keep default behavior
    if ( ! is_user_logged_in() ) {
        return $allowed;
    }

    $user_id = get_current_user_id();
    $available = (int) get_user_meta( $user_id, 'available_messages', true );

    // Block if no messages left
    if ( $available <= 0 ) {
        return false;
    }

    // Decrement and save
    update_user_meta( $user_id, 'available_messages', $available - 1 );

    return $allowed;

}, 10, 3 );

Assistants (OpenAI)

OpenAI shut down the Assistants API on August 26, 2026, and AI Engine removed the Assistants module in version 3.7.5. Assistants no longer work in AI Engine.

What to use instead

Most people used Assistants for a chatbot that answers from their documents. You can do the same with Knowledge and an OpenAI Vector Store environment: upload your files, select the environment in your chatbot, and it works with the regular OpenAI models (and with Claude, Gemini and other providers too).

If your assistant relied on custom actions, have a look at function calling, which lets your chatbot call your own code.

If the module is still switched on

On sites that had Assistants enabled before the update, the option still shows in the Modules tab (in the Deprecated section), only so you can turn it off. Switch the chatbots that were in Assistant mode back to Chat mode, pick a model, then disable the Assistants module.