/bolt-ai-integration

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

Discover how to connect Bolt.new AI with LearnWorlds in this easy 2025 step-by-step guide to streamline course creation and automation.

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 LearnWorlds?

The direct, practical answer: You don’t “integrate Bolt.new with LearnWorlds” as a built‑in feature. Instead, you integrate your Bolt.new app with LearnWorlds using LearnWorlds’ real APIs (REST), plus webhook endpoints you host inside your Bolt.new project. The integration is the same as with any external system: you call LearnWorlds’ API via HTTPS with an API key, parse the JSON response, and expose your own endpoints for LearnWorlds to call back when events happen.

Bolt.new itself is just your workspace. The integration happens in the code you write inside it.

 

What LearnWorlds Actually Provides

 

LearnWorlds exposes a real REST API. This is how you connect your Bolt.new project to it. Everything else (automations, SSO, course enrollment, user creation) happens through these endpoints.

The key LearnWorlds features you can use in Bolt:

  • REST API with API keys
  • Endpoints for users, courses, enrollments, purchases
  • Webhooks for event notifications

There is no SDK. You use normal HTTP requests.

 

Integration Pattern Inside Bolt.new

 

The integration uses the standard Bolt.new pattern:

  • You place your LearnWorlds API key in Bolt.new environment variables (never hardcoded).
  • You make fetch or axios REST calls from server-side routes (Node.js) in your Bolt project.
  • If you want LearnWorlds to notify you when something happens (user created, purchase complete), you expose a webhook endpoint inside Bolt.

No magic. Just HTTP.

 

The Minimal Working Example

 

This example shows exactly how you'd call LearnWorlds from inside a Bolt.new Node.js backend route. This is valid, working code.

// Example: server/routes/learnworlds.js

import express from "express"
import fetch from "node-fetch"

const router = express.Router()

router.post("/lw/create-user", async (req, res) => {
  try {
    const apiKey = process.env.LEARNWORLDS_API_KEY // store it in Bolt.new env vars
    const { email, firstName, lastName } = req.body

    const response = await fetch("https://api.learnworlds.com/v2/users", {
      method: "POST",
      headers: {
        Authorization: `Bearer ${apiKey}`,
        "Content-Type": "application/json"
      },
      body: JSON.stringify({
        email: email,
        first_name: firstName,
        last_name: lastName
      })
    })

    const data = await response.json()
    res.send(data)
  } catch (err) {
    res.status(500).send({ error: err.message })
  }
})

export default router

This is exactly how it works: Bolt.new hosts the code, you call the LearnWorlds API, and you return the result to your client.

 

Adding LearnWorlds Webhooks in Bolt.new

 

If you want LearnWorlds to notify your Bolt app about events (completed course, new purchase, new user), you expose a simple route:

// Example: server/routes/webhooks.js

import express from "express"
const router = express.Router()

router.post("/webhooks/learnworlds", async (req, res) => {
  // LearnWorlds sends JSON event payloads here
  const event = req.body

  // process event
  console.log("Received LearnWorlds webhook:", event)

  res.status(200).send({ received: true })
})

export default router

In LearnWorlds dashboard, you paste your Bolt route URL (the deploy URL) as the webhook target.

 

Correct Authentication Setup

 

LearnWorlds uses simple Bearer API keys. In Bolt.new:

  • Open project settings
  • Add an environment variable like LEARNWORLDS_API_KEY
  • Reference it from server-side code only

This keeps your key safe and out of the frontend bundle.

 

Typical Things Teams Integrate

 

Most Bolt.new + LearnWorlds projects implement some or all of this:

  • Custom user onboarding → create LearnWorlds user automatically
  • Assign courses upon signup → call course enrollment endpoint
  • Sync LearnWorlds progress → handle webhook events
  • Custom dashboards → call LearnWorlds APIs to fetch course data
  • Purchase → call LearnWorlds purchase or enrollment APIs

All of these are REST calls from Node.js routes.

 

Putting It All Together

 

To “integrate Bolt.new AI with LearnWorlds”, you:

  • Use Bolt.new as a workspace to scaffold an app
  • Add backend routes that call LearnWorlds API
  • Store API keys in Bolt’s environment variables
  • Optionally add webhooks for real-time LearnWorlds events

That’s the real, working, production-safe way to integrate the systems. No proprietary connectors or hidden steps — just standard HTTP APIs running from your Bolt.new server files.

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