How to Add AI to Your WordPress Website
To add AI to WordPress in 2026, connect one provider under Settings > Connectors and enable only the features you need. What works on community sites, developer code for the AI Client and Abilities API, and how to protect member data.

To add AI to your WordPress website in 2026, update to WordPress 7.0 or later, install one AI provider plugin (Anthropic, Google or OpenAI), paste your API key once under Settings > Connectors, and then turn on only the AI features you need, either from the official AI plugin or from a plugin that is built on the core AI Client. That one connection is shared by every plugin that uses it, so you no longer paste a separate key into five different settings screens.
On a community site the useful jobs are narrower than the marketing suggests: catching spam and abuse before a moderator sees it, summarising long threads, drafting replies a member can edit, and making search understand meaning. Each of those sends member-written content to a model, so the privacy decision comes before the feature decision. This guide was rewritten by our team and checked on 18 November 2026 against WordPress 7.1.4 (the current release), the make.wordpress.org developer notes and the WordPress.org plugin directory.
If you only need a chat widget on a brochure site, skip to the chatbot section. If you run a BuddyPress, forum or membership community, read the whole thing, because the order you set things up in decides who can spend your API budget and where your members’ words end up.
How do you add AI to your WordPress site?
The short version is five steps. Do them in this order and you avoid most of the problems people report in the support forums.
- Update WordPress. The core AI Client and the Connectors screen arrived in WordPress 7.0 (May 2026). WordPress 7.1.4 is the current release as of 18 November 2026, and the official AI plugin now requires 7.0.3 or newer.
- Install one provider plugin. WordPress core ships no AI provider. The WordPress AI team publishes AI Provider for Anthropic, AI Provider for Google and AI Provider for OpenAI. A community plugin, AI Provider for Ollama, connects a model you run yourself.
- Add your key once. Go to Settings > Connectors and paste the API key from your provider account. Plugins built on the AI Client read it from there.
- Pick features, not a plugin pile. Turn on one feature that answers a real problem (spam, summaries, alt text) and leave the rest off.
- Set limits and a budget. Decide which roles may trigger AI, and set a spending cap in your provider dashboard. Your provider bills you per request; the WordPress plugins themselves are free.
That is the whole setup for most sites. The sections below explain what each piece does, where community sites differ from blogs, and what goes wrong.
How do you integrate AI in WordPress the new way, through the AI Client and Connectors?
WordPress 7.0 added a provider-neutral AI Client to core. A plugin asks for text, an image or structured JSON through one function, wp_ai_client_prompt(), and WordPress routes the request to whichever provider the site owner connected. The plugin never touches your API key and never needs to know which company’s model answers.
Before 7.0, integrating AI in WordPress meant every plugin shipped its own OpenAI settings page, its own HTTP code and its own key field. A site with a chatbot, an SEO helper and an alt text tool held three copies of the same secret and three bills you could not see in one place. The Connectors screen fixes that by giving the key one home.
Piece | What it is | Where it lives | Since |
|---|---|---|---|
AI Client | PHP API that sends prompts to the connected model and returns text, images or JSON | WordPress core | 7.0 |
Connectors | Admin screen where the owner adds provider API keys | Settings > Connectors | 7.0 |
Provider plugins | Adapters for Anthropic, Google, OpenAI (official) and others | Separate plugins | Feb 2026 onward |
Abilities API | A registry of things a site can do, with input and output schemas and a permission check | WordPress core | 6.9 |
MCP Adapter | Turns public abilities into tools that outside AI agents can call | Separate plugin | Listed on WordPress.org Oct 2026 |
AI plugin | Opt-in AI features and experiments from the WordPress AI team | Separate plugin, Settings > AI | Dec 2025 |
The AI Client developer note is blunt about one point that trips people up: installing WordPress 7.0 does not mean AI works. No request leaves the site until an owner connects a provider and some code asks for a result. Plugins are told to check support first and to keep working when no provider is configured.
What the AI plugin adds once a connector is set
The official AI plugin (version 1.5.0, 60,000+ active installs, checked on 18 November 2026) turns nothing on by default. Under Settings > AI you enable items one at a time. Image generation and editing is the only item labelled a stable Feature; everything else is an Experiment that may change. The list that matters for a community or content site includes comment moderation, content summarization, excerpt and title suggestions, alt text generation, content classification (tag and category suggestions), translation of paragraph and heading blocks, a suggest-reply action on the Comments screen, AI request logging and a key encryption experiment.
Two of those run on their own once enabled. Comment moderation checks every new comment, including comments from logged-out visitors, and type-ahead text suggests words while you write. Everything else waits for someone to click a button. That difference matters for cost and for privacy, and the plugin marks automatic items as “Runs automatically” in its settings so you can see it before you switch them on.
How do you use AI with WordPress on a community site?
Use it where volume beats your people. A forum with 20 posts a day does not need a model reading each one; a moderator with a coffee can do it. A community with 500 posts a day, three time zones and two volunteer moderators does. The jobs below are the ones we see pay off on community builds, ranked by how quickly they earn their cost.
1. Spam and abuse triage
A model scores each new post or reply, clear spam is held or marked, borderline content waits in a queue with a short reason, and everything else publishes. This is the best first AI feature for most communities because it saves moderator hours every single day and the output is a decision a human can check. Keep humans on the final call for anything that removes a real member’s words. We wrote about how teams split that work in community moderation with AI tools and human teams.
2. Thread and discussion summaries
Long threads lose newcomers. A short neutral summary at the top of a 90-reply discussion lets someone join without reading everything. Generate summaries on demand or on a schedule, cache the result, and regenerate only when the thread grows, otherwise you pay for the same summary every page view.
3. Reply suggestions members can edit
Suggested replies help shy members post their first comment. They must stay drafts: the member picks one, edits it and posts it as their own. A suggestion that posts by itself is a bot speaking in a member’s name, and communities notice.
4. Search that understands meaning
Keyword search fails when a member types “can’t log in after password reset” and the answer is titled “authentication loop fix”. Semantic search uses embeddings to match meaning. Be aware that embeddings are not part of the core AI Client yet, so plugins that offer semantic search still need their own embedding provider and key.
5. Feed ranking and tagging
Ranking an activity feed by what each member engages with, or suggesting tags for a new post, is useful once there is history to learn from. On a new community with little engagement it adds cost and changes very little, so leave it for later.
Job | Runs | Member content sent to the model | Good first feature? |
|---|---|---|---|
Spam and abuse triage | Automatically on every new post | Every new post and reply | Yes, for busy communities |
Thread summaries | On demand or scheduled | The thread being summarised | Yes, for long-thread forums |
Reply suggestions | When a member clicks | The post and recent replies | Maybe, set a per-member daily cap |
Semantic search | On index and on search | Post text for embeddings | Later, needs a separate embedding key |
Feed ranking | Per viewer | Often none, engagement signals only | Later, needs engagement history |
What does WordPress and AI integration look like for developers?
For a developer, WordPress AI integration now has two halves. The Abilities API describes what your plugin can do, with typed input, typed output and a permission check. The AI Client sends prompts to whatever model the owner connected. Put them together and the same ability can be called from PHP, from the REST API and, through the MCP Adapter, by an outside AI agent.
Here is a minimal ability that summarises a discussion thread. The hooks, argument names and REST namespace come from the Abilities API developer note for WordPress 6.9, checked on 18 November 2026. The loader function is a placeholder for your own code.
add_action( 'wp_abilities_api_categories_init', function () {
wp_register_ability_category( 'community', array(
'label' => __( 'Community', 'my-plugin' ),
'description' => __( 'Abilities that work with community content.', 'my-plugin' ),
) );
} );
add_action( 'wp_abilities_api_init', function () {
wp_register_ability( 'my-plugin/summarize-thread', array(
'label' => __( 'Summarize a discussion thread', 'my-plugin' ),
'description' => __( 'Returns a short, neutral summary of one thread.', 'my-plugin' ),
'category' => 'community',
'input_schema' => array(
'type' => 'object',
'properties' => array( 'thread_id' => array( 'type' => 'integer' ) ),
'required' => array( 'thread_id' ),
),
'output_schema' => array( 'type' => 'string' ),
'execute_callback' => 'my_plugin_summarize_thread',
'permission_callback' => function () {
return current_user_can( 'moderate_comments' );
},
'meta' => array( 'show_in_rest' => true ),
) );
} );The callback then asks the AI Client for text. Builder methods in the WordPress wrapper are snake_case, and is_supported_for_text_generation() checks for a usable provider without making an API call, as described in the AI Client developer note.
function my_plugin_summarize_thread( $input ) {
$text = my_plugin_get_thread_text( (int) $input['thread_id'] ); // your own loader
$builder = wp_ai_client_prompt(
"Summarize this community discussion in three neutral sentences.\n\n" . $text
)->using_temperature( 0.2 );
if ( ! $builder->is_supported_for_text_generation() ) {
return new WP_Error( 'ai_unavailable', __( 'No AI provider is connected.', 'my-plugin' ) );
}
return $builder->generate_text(); // a string, or WP_Error on failure
}Four rules keep this safe on a live community:
- Gate on capability, every time. The developer note recommends one REST endpoint per AI feature with its own permission check, and prompt handling on the server. Do not hand logged-in members a generic “send any prompt” endpoint.
- Use the prevent filter for site policy. The
wp_ai_client_prevent_promptfilter lets you block prompts by role or context. A blocked prompt makes no call, the support check returns false and generation returns aWP_Error. - Cache results. A summary of a thread that has not changed should never be generated twice. Store it in post meta with the reply count it was built from.
- Fail soft. Most sites are still on older WordPress versions or have no provider connected. Your feature should hide or fall back, not throw a fatal error.
If you build on BuddyPress, the same pattern sits on top of its REST endpoints and hooks. Our BuddyPress REST API guide covers the routes your ability can wrap.
How do AI bots interact with WordPress?
AI bots reach a WordPress site in two very different ways, and it helps to keep them apart. Crawlers read your public pages, the same as a search engine. Agents act on your site through an API with permission, which is new.
Crawlers fetch public posts and pages. You control them with robots.txt like any other crawler. The AI plugin also has a Markdown Feeds experiment that publishes clean Markdown versions of public posts for machine readers. None of this touches private groups or member-only content, as long as that content is really behind a login and not just hidden with CSS.
Agents use the Model Context Protocol. The official MCP Adapter (version 0.7.1, 70,000+ active installs, checked on 18 November 2026) turns registered abilities into tools an agent such as a desktop AI assistant can discover and call, over HTTP or WP-CLI. Abilities are private by default in the adapter; you opt each one in, and every call still runs the ability’s own permission check. For a community site that means you can let a moderator ask an assistant to “list today’s held posts” without giving the assistant a database login.
Expose read-only abilities first. An agent that can approve, ban or delete deserves the same scrutiny you would give a new human moderator.
How do you add an AI chatbot to a WordPress website?
Install a chatbot plugin, connect a provider, feed it your own help content, and test it as a stranger before you put it in front of members. The chatbot is the most visible AI feature and the one that disappoints most often, because a bot that answers with confident nonsense is worse than no bot.
Among WordPress.org plugins, AI Engine is the established option: 90,000+ active installs, a 4.9 out of 5 average from 879 ratings, PHP 8.1 or newer, last updated 12 November 2026, checked on 18 November 2026. It provides a chatbot and its own MCP server. Jetpack (3,000,000+ installs) also bundles AI tools, now listed on WordPress.org under the name “AI Agents & MCP, Security, Backup & Analytics”. If what you really need is people talking to people, a live chat or member messaging plugin is often the better answer; we compared those in our WordPress chat plugins roundup.
Three settings decide whether a community chatbot helps:
- Grounding. Point it at your FAQ, rules and docs. A general model guessing your refund policy is a liability.
- Scope. Keep it on public help topics. It should not read private groups or direct messages to answer a question.
- A human exit. Every answer needs a visible way to reach a person or post in the help forum.
Who sees your members’ data when you add AI?
Your AI provider does. Any feature that reads posts, replies, profiles or messages sends that text from your server to the provider’s servers for processing, unless you run the model yourself. On a public blog that is mostly public text already. On a private community it can be health questions, workplace complaints or messages members believed only a few people would read.
Work through these before you switch on any automatic feature:
- Map what leaves the site. For each feature, write down which fields are sent: post body, author name, email, IP address. Strip what the model does not need. A spam check needs the text, not the email.
- Read your provider’s data terms. Check how long inputs are retained and whether they are used for training on your plan. Terms differ by provider and by account type, so read the current page for your account rather than trusting a blog post, including this one.
- Update your privacy policy. Name the provider and the purpose. Members of EU and UK communities have rights over processing of their data, and a sub-processor you never disclosed is the kind of thing a complaint is built on.
- Keep private spaces private. Exclude private groups and direct messages from summaries and search indexes unless members opted in.
- Protect the key. Core stores connector keys in the database. The AI plugin offers a Key Encryption experiment, and its own description notes that turning it off restores plaintext keys, so treat database backups as secrets.
- Consider running the model yourself. With a self-hosted model through Ollama, text never leaves your infrastructure. The trade-off is server cost and usually weaker answers than the large hosted models.
Which AI setup fits your WordPress site?
Your situation | Start with | Watch out for |
|---|---|---|
Blog or brochure site, one editor | AI plugin: excerpts, alt text, titles | Generated text reads generic; edit before publishing |
Busy forum or BuddyPress community | Automatic spam and abuse triage, then thread summaries | Every post goes to the provider; disclose it |
Private or regulated community | Self-hosted model (Ollama) or no automatic features | Server cost; weaker models miss subtle abuse |
Support-heavy membership site | Chatbot grounded on your docs, with a human exit | Confident wrong answers about billing or access |
Developer building a community product | Abilities API plus the AI Client, MCP for admin tools | Permission checks on every ability and endpoint |
Where do our community products fit?
Our team builds two community products that use AI, and we will say plainly where they fit and where they do not.
BuddyNext is our newer community plugin for WordPress, built to run without BuddyPress. BuddyNext Pro adds AI moderation that scores new posts before they go live, smart reply suggestions with a per-member daily cap, AI feed ranking and semantic search. Moderation and smart replies use the provider you connect under Settings > Connectors, so they need WordPress 7.0 or later. The honest limits: every AI feature is off by default and needs configuring, semantic search needs its own OpenAI embedding key today, and feed ranking does little on a new community without engagement history.
Jetonomy is our forum plugin. Jetonomy Pro scores posts and replies for spam, checks content against a plain-English moderation policy, drafts reply suggestions and summarises long threads. It works with OpenAI, Anthropic, any OpenAI-compatible endpoint, or a self-hosted Ollama model, so a privacy-first forum can keep every word on its own server, and a site-wide daily budget stops a runaway loop from draining your account. The limit: AI is a Pro feature; the free plugin has pattern-based spam detection only.
If your community already runs on BuddyPress with a theme like BuddyX or Reign, you do not need to switch anything to try AI. The official AI plugin and a provider connector work alongside BuddyPress for blog-side features, and a forum plugin with AI moderation covers the discussion side. Our guide to WordPress community plugins compares the wider options.
Common mistakes people report
These come up again and again in the AI plugin support forum and the WordPress/ai GitHub issues, checked on 18 November 2026.
- “The plugin says it needs a connector.” The AI plugin does nothing without a provider plugin and a key under Settings > Connectors. One bug that showed a false “requires an AI Connector” message in the editor was fixed in August 2026, so update before you debug.
- Keys set in wp-config.php were not detected. Sites that defined the key as a constant saw the plugin report no credentials, fixed in May 2026. Old versions still behave this way.
- Generated text with chatty prefixes. Early versions returned excerpts starting with “Here’s an excerpt suggestion:” and titles with meta text. Those reports (#395, #399) are closed, but always read output before it goes live.
- Expecting it to work in a page builder. The AI plugin requires the Block Editor; Classic Editor and builder screens are not supported, which is a recurring forum question.
- Output in the wrong language. Users on non-English sites reported English-only generated text (forum thread). Test with your site language before rolling out.
- No role limits. Owners ask how to limit AI use to certain roles after the bill arrives. Decide who can trigger AI on day one, and use the
wp_ai_client_prevent_promptfilter if a plugin does not offer the setting.
How do you measure whether AI is earning its place?
Pick one number per feature before you turn it on, and check it after 30 days.
- Spam triage: moderator minutes per day and the number of false positives members complain about.
- Summaries: replies from new members on long threads, compared with the month before.
- Reply suggestions: share of suggestions edited versus posted as-is. Many unedited posts means the community voice is fading.
- Chatbot: help tickets per week and the share of chats that ended at the human exit.
- All features: the provider bill. The AI plugin’s request logging experiment helps you see what each feature costs.
A feature that does not move its number after a month is costing money and member trust for nothing. Switch it off. Large communities also feel the extra load from background AI calls, so pair any automatic feature with the caching advice in our BuddyPress performance guide.
Frequently asked questions
Do I need WordPress 7.0 to add AI to my site?
No, but it is the easiest path. Older sites can still use plugins that carry their own provider code and key fields, such as AI Engine. From 7.0 onward the Connectors screen and AI Client give every plugin one shared, owner-controlled connection, and the official AI plugin requires 7.0.3 or newer.
Is AI in WordPress free?
The core AI Client, the AI plugin and the official provider plugins are free. The AI provider charges you for usage under your own account. A self-hosted model through Ollama has no per-request fee but needs a server that can run it.
Can I run AI on a WordPress site without sending data to OpenAI or Google?
Yes. Connect a self-hosted model through the community AI Provider for Ollama plugin, or use a plugin such as Jetonomy Pro that talks to Ollama directly. Text then stays on infrastructure you control. Expect slower and less accurate results than the large hosted models on modest hardware.
Will AI features slow down my community?
Requests to a provider take seconds, so they must never run inside a normal page load. Good plugins run them in the background or on a button click and cache the result. Test page speed before and after enabling any automatic feature.
Should AI delete posts on its own?
Only for clear spam above a high threshold. For anything involving a real member, let AI hold the post with a reason and let a person decide. Members forgive a slow moderator far more readily than a machine that silently removed their words.
What is the difference between the Abilities API and the MCP Adapter?
The Abilities API, in core since WordPress 6.9, is where plugins register what the site can do, with schemas and permission checks. The MCP Adapter is a separate plugin that publishes the abilities you opt in as tools for outside AI agents. You need the first to use the second.
Start with one feature that fixes a problem your members or moderators feel every day, connect one provider, and write down where member data goes before anything runs automatically. That order keeps both your budget and your members’ trust intact.


