LogoMkSaaS Docs
LogoMkSaaS Docs
HomepageIntroductionCodebaseVideo TutorialsGetting StartedEnvironment Setup
Configuration

Integrations

DatabaseAuthenticationEmailNewsletterStoragePaymentCreditsCron JobsAIAnalyticsNotificationCaptchaChatboxAffiliates

Customization

MetadataFontsThemesImagesi18nBlogDocsComponentsCustom PagesLanding PageUser ManagementAPI Key Management

Codebase

IDE SetupProject StructureFormatting & LintingUpdating the Codebase
X (Twitter)

Chatbox

Learn how to set up and use Crisp Chatbox in MkSaaS

MkSaaS supports integrating Crisp Chatbox for real-time website messaging.

Setup

Create a Crisp Account

Create a Crisp account if you haven't already.

Get Website ID

Go to Crisp Dashboard > Settings > Workspace Settings > Setup & Integrations. Copy Website ID and paste it into the environment variables file:

.env
NEXT_PUBLIC_CRISP_WEBSITE_ID=YOUR-CRISP-WEBSITE-ID

Enable Crisp Chat in Configuration

Set enableCrispChat to true in website.tsx config (default is false):

src/config/website.tsx
export const websiteConfig: WebsiteConfig = {
  features: {
    enableCrispChat: true,
  },
}

If you are setting up the environment, now you can go back to the Environment Setup guide and continue. The rest of this guide can be read later.

Environment Setup

Set up environment variables


Usage

The Crisp chatbox is automatically loaded on your website when enableCrispChat is enabled and the environment variable is set. No additional code is required.

If you want to customize or conditionally render the chatbox, you can import and use the component directly:

src/app/layout.tsx
import CrispChat from '@/components/layout/crisp-chat';

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <CrispChat />
      <body>{children}</body>
    </html>
  );
}

References

  • Crisp Official Website
  • How do I install Crisp Live Chat on Next.js?

Video Tutorial

Next Steps

Email

Configure email services

Authentication

Configure user authentication

Analytics

Configure analytics

Storage

Configure storage

Table of Contents

Setup
Create a Crisp Account
Get Website ID
Enable Crisp Chat in Configuration
Usage
References
Video Tutorial
Next Steps