/bolt-ai-integration

Bolt.new AI and WordPress integration: Step-by-Step Guide 2025

Guide to integrating Bolt.new AI with WordPress in 2025. Follow simple steps to boost automation, speed, and site performance.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to integrate Bolt.new AI with WordPress?

To integrate Bolt.new with WordPress, you do not integrate “Bolt itself.” Instead, you integrate the app you build inside Bolt with WordPress using normal, real web integration methods: WordPress REST API, custom endpoints, webhooks, or plugin-based bridges. Bolt.new is simply your development workspace — it generates and runs backend code (Node/Next.js/Python) that can talk to a real WordPress site over HTTP.

 

Direct, clear answer

 

You integrate Bolt.new with WordPress by building an app inside Bolt that communicates with WordPress through the WordPress REST API (or a custom plugin/API you create). You authenticate using Application Passwords for WP-Admin accounts, or via OAuth/JWT if you want a more secure production setup. Your Bolt backend sends HTTP requests to WordPress to read/create/update/delete posts, users, media, etc. WordPress can also call your Bolt app through webhooks (using plugins like WP Webhooks) if you need two-way sync.

 

How the integration actually works (real, practical)

 

WordPress exposes a real REST API: your Bolt.new backend calls it the same way any external app would. There is no hidden “AI connector” — you wire it manually through API calls, environment variables, and a secure auth mechanism.

  • Bolt.new side: you write JavaScript/TypeScript/Python to call WordPress endpoints.
  • WordPress side: you enable Authentication (Application Passwords recommended for quick setup).
  • Security: keep credentials in Bolt.new environment variables (never hardcoded).

 

Step-by-step: Fastest working integration

 

This is the simplest, real, working setup you can build in a Bolt project.

  • Create a WordPress Application Password (WP-Admin → Users → Profile → Application Passwords).
  • Store username and app password in Bolt.new environment variables.
  • Call WP REST API from Bolt backend.

 

// Example: Next.js API route inside Bolt.new
// File: pages/api/createPost.js

export default async function handler(req, res) {
  const { title, content } = req.body;

  const wpUser = process.env.WP_USER;          // WordPress admin username
  const wpPass = process.env.WP_APP_PASSWORD;  // WordPress application password
  const auth = Buffer.from(`${wpUser}:${wpPass}`).toString("base64");

  const response = await fetch("https://YOUR-WP-SITE.com/wp-json/wp/v2/posts", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "Authorization": `Basic ${auth}`
    },
    body: JSON.stringify({
      title,
      content,
      status: "publish"
    })
  });

  const data = await response.json();
  res.status(200).json(data);
}

 

That code is valid, real, and directly usable in Bolt.new. It creates posts on your WordPress site.

 

How WordPress can call Bolt (optional two-way integration)

 

If you want WordPress to notify your Bolt app (e.g., when a post is updated), you use a webhook plugin such as WP Webhooks. WordPress then sends POST requests to your Bolt backend. No magic — just HTTP.

  • Install WP Webhooks plugin.
  • Create a webhook that sends JSON to your Bolt route.
  • Bolt receives it in a normal API endpoint.

 

// File: pages/api/wpWebhook.js
export default async function handler(req, res) {
  // WordPress will POST data here
  console.log("Webhook from WP:", req.body);
  res.status(200).json({ ok: true });
}

 

When to build a custom WordPress plugin

 

You only need a plugin if:

  • You must expose new custom endpoints.
  • You need advanced authentication like JWT or OAuth2.
  • You need to trigger WP actions or filters on events.

Otherwise, the built-in WP REST API is enough.

 

How to structure this cleanly inside Bolt.new

 

  • Create a services/wordpress.js file with reusable API client functions.
  • Use environment variables for WP credentials.
  • Test API calls directly in Bolt’s in-browser server environment.
  • When deploying outside Bolt, keep the exact same env vars and code.

 

Summary

 

Bolt.new does not “plug into” WordPress by itself. You create an app in Bolt that talks to WordPress over the REST API, authenticated with Application Passwords or OAuth/JWT. That’s the real, secure, production-valid way. Everything is standard HTTP and environment variables — no proprietary connectors, no hidden magic.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022