Documentation
Chat
- Getting Started
- Installation
- Core Concepts
- Escalation System
- Widget Keys
- Secret Keys (sk_)
- REST API
- Channels & Integrations
- Messaging Platform API
Voice
- Voice Agent
- Setup Guide
- Phone Numbers
- Outbound Campaigns
Platform
- Billing & Pricing
- Glossary
- FAQ
Installation
Get your development environment set up to work with Sampan.club.
Prerequisites
- Node.js 18+ or higher
- npm or yarn package manager
- A modern web browser
- A Sampan.club account
Web Embed Installation
The easiest way to add a chatbot to your website is using our embed script.
<script>
window.sampanChatConfig = {
widgetKey: "wk_your_key_here",
version: "stable"
};
</script>
<script src="https://cdn.sampan.club/stable/widget.stable.js" async defer></script>Replace wk_your_key_here with your actual widget key from the dashboard.
The version parameter supports: stable (recommended), v1 (locked), or latest (bleeding edge).
React Installation
For React applications, install our npm package:
npm install @sampanclub/react-widget
Then import and use in your component:
import { SampanWidget } from '@sampanclub/react-widget';
export default function App() {
return (
<SampanWidget
widgetKey="wk_your_key_here"
position="right"
/>
);
}Done! Your chatbot is now installed. Visit the Core Concepts section to learn more.
