Overview
Een overzicht van de Assistant API en embeddable widget integratie.
Wat is dit?
Het Assistant platform biedt een API voor het bouwen van conversationele assistenten en een embeddable widget die op websites geplaatst kan worden. De typische architectuur scheidt secret-bearing server code van browser code door short-lived widget tokens uit te geven.
The Companin Widget is more than just a chat interface—it's a complete conversational AI platform that seamlessly integrates into your website. Built with modern web technologies (Next.js, React, TypeScript), it provides enterprise-grade reliability while maintaining simplicity for developers.
Unlike traditional chat widgets that require complex backend setup, Companin handles all the infrastructure for you. Authentication, message storage, conversation management, and AI processing are all managed through our secure API, allowing you to focus on creating great user experiences.
Core Concepten
Understanding these core concepts will help you make the most of the Companin Widget:
- Assistenten: Configureerbare persona's met specifieke kennis en gedragingen.
- Sessies: Conversationele contexten die state behouden over interacties.
- Kennis: Database van geïndexeerde informatie voor accurate antwoorden.
- Widget: Chat interface die op websites embedded kan worden.
- Auth: JWTs of API key pair headers (X-API-Key + X-API-Secret).
💡 Key Insight
The widget configuration acts as the single source of truth for all appearance and behavior settings. This means you can update your widget's look and feel without changing any code on your website—just update the configuration in your dashboard and changes take effect immediately.
Hoe het werkt (high level)
- Server eindpunten accepteren JWTs of API key header pairs en passen organization-level rate limits toe.
- Widget tokens worden uitgegeven met korte levensduur voor browser gebruik.
- Conversaties worden behouden met volledige context over sessies.
Volgende stappen
Volg de Quickstart om de widget te embedden, dan raadpleeg de API Reference voor details.