Getting Started
This guide will help you add Supprt to your website in under 5 minutes.
Prerequisites
Before you begin, you'll need:
- A Supprt account (sign up here)
- A project with at least one integration (Discord, Slack, or AI)
- Your project's Public Key (found in project settings)
Step 1: Create a Project
- Log in to your Supprt Dashboard
- Click New Project
- Enter a name for your project
- Copy your Public Key from the project settings
Step 2: Add an Integration
Connect at least one channel to receive messages:
Discord
- Go to Integrations → Add Integration → Discord
- Click Add to Discord to install the bot
- Select a channel for receiving messages
Slack
- Go to Integrations → Add Integration → Slack
- Click Add to Slack to install the app
- Select a channel for receiving messages
AI
- Go to Integrations → Add Integration → AI
- Configure your AI preferences
- 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/widgetbash
yarn add @supprt/widgetbash
pnpm add @supprt/widgetbash
bun add @supprt/widgetInitialize in your app:
javascript
import { init } from '@supprt/widget'
init({
publicKey: 'pk_xxx'
})Step 4: Test It
- Open your website
- Look for the chat bubble in the bottom-right corner
- Click it and send a test message
- 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
- Check that the script is loaded (Network tab in DevTools)
- Verify the public key is correct
- Ensure the project has at least one active integration
- Check for JavaScript errors in the console
Messages not being delivered
- Verify your integration is connected and active
- Check that the bot has permission to post in the channel
- Look at the integration logs in the dashboard
Styling issues
The widget uses Shadow DOM for isolation. If you see styling issues:
- Ensure your CSS doesn't use
!importanton*selectors - Check for browser extensions that might interfere
- Try disabling other chat widgets
Need more help? Open an issue on GitHub.