Quickstart
Get up and running with the RAG Chatbot Platform in 5 minutes.
Step 1: Create an Account
- Visit
http://localhost:3000/auth/register - Fill in your email and password
Step 2: Create a Project
- After logging in, click New Project
- Enter a project name (e.g., "My Support Bot")
- Configure allowed origins (where the widget will be embedded)
- Click Create Project
Step 3: Get API Credentials
- Navigate to your project settings
- Copy your API Key (starts with
chat_) - Note your Project ID
Step 4: Add Documents
Via Dashboard
- Go to your project page
- Click Add Source
- Upload a PDF or enter a URL
- Wait for processing to complete
Via API
# Upload a file
curl -X POST "http://localhost:8000/sources/upload" \
-H "X-API-Key: your-api-key" \
-F "file=@document.pdf"
# Or add a URL
curl -X POST "http://localhost:8000/sources/url" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/page"}'
Step 5: Get a Widget Token
curl -X POST "http://localhost:8000/tokens/widget" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"project_id": "your-project-id",
"origin": "https://example.com"
}'
Response:
{
"token": "eyJhbGciOiJIUzI1NiIs...",
"expires_in": 86400
}
Step 6: Embed the Widget
<script src="https://widget.yourdomain.com/embed.js" defer></script>
<div id="chatbot-container"></div>
<script>
window.ChatbotWidget.init({
container: '#chatbot-container',
token: 'your-widget-token',
projectId: 'your-project-id'
});
</script>
Step 7: Chat!
The widget is now live. Type a question related to your documents and get AI-powered answers with citations.
What's Next?
- Widget Embedding Guide - More embedding options
- API Keys Guide - Manage API keys