/bolt-ai-integration

Bolt.new AI and Smooch (now Zendesk Sunshine Conversations) integration: Step-by-Step Guide 2025

Step-by-step guide to integrate Bolt.new AI with Zendesk Sunshine Conversations in 2026 and streamline automated, efficient customer support.

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 Smooch (now Zendesk Sunshine Conversations)?

To integrate Bolt.new with Smooch (now Zendesk Sunshine Conversations), you don’t “connect Bolt itself” — you build a normal backend inside Bolt.new that talks to the Sunshine Conversations REST API using your app’s API Key + Secret. Incoming user messages arrive via a webhook you expose in your Bolt.new project, and outgoing messages are sent via Sunshine’s messages API. The whole integration is just standard HTTPS, webhooks, environment variables, and auth headers. Once you create the Sunshine Conversations app in Zendesk, you take the keys, wire the webhook, and then your Bolt backend becomes the middleware between users and your AI logic.

 

What You Actually Do (the real, correct integration pattern)

 

You integrate Bolt.new AI with Smooch / Sunshine Conversations by creating a server endpoint inside Bolt that receives messages from Sunshine via webhooks, then you call the Sunshine Conversations REST API to send messages back. Authentication is done using API Key and API Secret provided in the Sunshine Conversations dashboard. Bolt projects simply store these in environment variables. Sunshine Conversations doesn’t offer any automatic “AI agent” integration — you wire it manually like any other messaging API.

  • You expose a Bolt API route like /webhooks/smooch.
  • You register that route as a webhook in Sunshine Conversations.
  • Your endpoint receives all inbound messages from any connected channel (WhatsApp, Messenger, webchat, etc.).
  • Your code processes the message, runs your AI logic, then sends a reply via POST /v2/apps/{appId}/conversations/{conversationId}/messages.

 

Step-by-step Explanation (simple + correct)

 

Below is the real flow you follow when building this inside Bolt.new.

  • Create a Sunshine Conversations app in the Zendesk dashboard.
  • Copy the App ID, Key ID, and Secret.
  • In Bolt.new, open project settings and add environment variables like: SUNSHINE_APP_ID, SUNSHINE_KEY_ID, SUNSHINE\_SECRET.
  • Expose a webhook route in your backend (Node.js in most Bolt templates).
  • Take the public URL of that webhook (Bolt provides it automatically when running) and paste it into Sunshine Conversations → Webhooks.
  • Implement outbound messages using Sunshine’s REST API with HTTP basic auth (Key ID + Secret).

 

Minimal Real Example (Node.js backend inside Bolt.new)

 

// routes/smooch.js
import express from "express";
import axios from "axios";

const router = express.Router();

// Sunshine Conversations REST API base URL
const BASE_URL = "https://api.smooch.io/v2/apps";

// Inbound webhook from Sunshine Conversations
router.post("/webhooks/smooch", async (req, res) => {
  const event = req.body;

  // Validate inbound event type
  if (event.trigger === "message:appUser") {
    const appId = process.env.SUNSHINE_APP_ID;
    const { conversation } = event;
    const { text } = event.messages[0]; // The user's message

    // Call your AI logic here
    const aiReply = await runAI(text); // You implement runAI()

    // Send reply back to user via Sunshine API
    await axios.post(
      `${BASE_URL}/${appId}/conversations/${conversation.id}/messages`,
      {
        role: "appMaker",
        type: "text",
        text: aiReply
      },
      {
        auth: {
          username: process.env.SUNSHINE_KEY_ID,
          password: process.env.SUNSHINE_SECRET
        }
      }
    );
  }

  // Sunshine requires fast 200 response
  res.status(200).send("ok");
});

// Example stub for your AI logic
async function runAI(userText) {
  // Call your AI provider here
  return "Thanks! I received: " + userText;
}

export default router;

 

Important Notes

 

  • Sunshine Conversations uses Basic Auth, not OAuth.
  • Your webhook must respond in under ~3 seconds or Sunshine may consider it failed. Do not block on slow AI calls — keep it fast or async.
  • You can test easily in Bolt because the dev server URL is publicly accessible.
  • Channels like WhatsApp, Messenger, Telegram all flow through the same webhook — Sunshine normalizes them.
  • No magic: it’s all just HTTPS in/out.

 

Summary

 

Integrating Bolt.new with Smooch (Sunshine Conversations) is simply creating a normal backend that handles a webhook from Sunshine for inbound messages and uses their REST API with basic auth to send outgoing messages. You store your Sunshine creds in environment variables, expose a webhook route in Bolt, register it in Sunshine’s dashboard, and wire your AI response flow inside that route. This is the correct, real, production pattern.

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