Documentation
DocSahayak Documentation
Everything you need to integrate and use DocSahayak in your applications.
Getting Started
DocSahayak is an AI-powered document assistant that lets you upload documents and get instant answers via chat, voice, or embeddable widget.
Quick Start Guide
- Sign up for a free account at the signup page
- Upload your first document (PDF, DOCX, or TXT)
- Start chatting with your documents immediately
- Enable voice mode for hands-free interaction
- Embed the widget on your website (Pro plan)
Uploading Documents
DocSahayak supports multiple file formats and processes them automatically using advanced AI.
Supported Formats
Upload Methods
Drag and drop files directly into the Knowledge Base page, or click to browse.
Use our REST API to upload documents programmatically (see API Reference).
Processing Time
Documents are processed within 1-5 minutes depending on size. You'll see a "Processing" status while the AI indexes your content.
Chat Interface
The chat interface lets you ask questions in natural language and receive accurate answers sourced from your documents.
Features
Natural Language: Ask questions as you would to a human expert
Source Citations: Every answer includes references to the source document
Context Aware: Follow-up questions understand the conversation context
Fast Responses: Answers delivered in under 2 seconds
Example Queries
"What is the refund policy?""Summarize the key points from the Q3 report""How do I request time off according to the HR policy?"Voice Support
DocSahayak supports voice input and output for hands-free document interaction.
How to Use Voice
- 1Click the microphone icon in the chat interface
- 2Speak your question clearly
- 3Wait for the AI to process and respond with audio
Supported Languages
Voice support currently works best with English. We support Hinglish (Hindi-English mix) for Indian users.
Website Widget
Embed the DocSahayak chat widget on your website to provide 24/7 AI-powered customer support.
Installation
Add the following script tag to your website's HTML, just before the closing </body> tag:
<script
src="https://your-domain.com/widget.js"
data-user-id="YOUR_USER_ID"
data-theme="dark"
data-position="bottom-right"
></script>Configuration Options
| Attribute | Type | Description |
|---|---|---|
data-user-id | string | Your DocSahayak user ID (required) |
data-theme | light | dark | Widget color theme |
data-position | bottom-right | bottom-left | Widget position on screen |
data-primary-color | hex color | Custom primary color |
Customization
You can customize the widget appearance including colors, welcome message, and bot avatar from the Widget page in your dashboard.
API Reference
Use our REST API to integrate DocSahayak into your applications programmatically.
Authentication
All API requests require authentication via API key in the header:
Authorization: Bearer YOUR_API_KEYEndpoints
/api/chatSend a message and receive an AI response
{
"message": "What is the refund policy?",
"conversationId": "optional-conversation-id"
}/api/documentsList all uploaded documents
/api/documents/uploadUpload a new document (multipart/form-data)
/api/documents/:idDelete a document by ID
Admin Panel
The admin panel provides tools to manage your documents, monitor usage, and configure settings.
Dashboard Features
📊 Analytics
View chat usage, popular questions, and response times
📚 Knowledge Base
Upload, view, and delete documents from your knowledge base
🎨 Widget Customization
Customize colors, messages, and appearance of your chat widget
👥 Team Management
Invite team members and manage permissions (Pro & Enterprise)
Need Help?
Can't find what you're looking for? Our support team is here to help.
