Skip to content

Getting Started

This guide will help you add Supprt to your website in under 5 minutes.

Prerequisites

Before you begin, you'll need:

  1. A Supprt account (sign up here)
  2. A project with at least one integration (Discord, Slack, or AI)
  3. Your project's Public Key (found in project settings)

Step 1: Create a Project

  1. Log in to your Supprt Dashboard
  2. Click New Project
  3. Enter a name for your project
  4. Copy your Public Key from the project settings

Step 2: Add an Integration

Connect at least one channel to receive messages:

Discord

  1. Go to IntegrationsAdd IntegrationDiscord
  2. Click Add to Discord to install the bot
  3. Select a channel for receiving messages

Slack

  1. Go to IntegrationsAdd IntegrationSlack
  2. Click Add to Slack to install the app
  3. Select a channel for receiving messages

AI

  1. Go to IntegrationsAdd IntegrationAI
  2. Configure your AI preferences
  3. Let AI automatically respond to your customers

Step 3: Install the Widget

Choose your preferred installation method:

Script Tag (Easiest)

Add this line before your closing </body> tag:

html
<script
  src="https://unpkg.com/@supprt/widget"
  data-public-key="pk_xxx"
></script>

Replace pk_xxx with your actual public key.

npm Package

Install the package:

bash
npm install @supprt/widget
bash
yarn add @supprt/widget
bash
pnpm add @supprt/widget
bash
bun add @supprt/widget

Initialize in your app:

javascript
import { init } from '@supprt/widget'

init({
  publicKey: 'pk_xxx'
})

Step 4: Test It

  1. Open your website
  2. Look for the chat bubble in the bottom-right corner
  3. Click it and send a test message
  4. Check your Discord/Slack channel for the message

TIP

If you don't see the widget, check the browser console for errors. Common issues:

  • Invalid public key
  • Project has no active integrations
  • Script blocked by ad blockers

Next Steps

Now that you have the basic setup working:

Troubleshooting

Widget not appearing

  1. Check that the script is loaded (Network tab in DevTools)
  2. Verify the public key is correct
  3. Ensure the project has at least one active integration
  4. Check for JavaScript errors in the console

Messages not being delivered

  1. Verify your integration is connected and active
  2. Check that the bot has permission to post in the channel
  3. Look at the integration logs in the dashboard

Styling issues

The widget uses Shadow DOM for isolation. If you see styling issues:

  1. Ensure your CSS doesn't use !important on * selectors
  2. Check for browser extensions that might interfere
  3. Try disabling other chat widgets

Need more help? Open an issue on GitHub.