@doclessai/sdk
v0.4.0
Published
Plug-and-play AI assistants infrastructure as a service.
Downloads
67
Maintainers
Readme
DoclessAI SDK
Plug-and-play AI assistants infrastructure as a service. Seamlessly integrate intelligent AI-powered chat assistants into your applications.
Homepage: doclessai
🚀 Features
- ✨ Ready-to-use Chat Widget - Drop-in React component for instant chat functionality
- 📄 Media Upload Support - Allow users to upload images for AI analysis
- 🎨 Markdown Support - Rich text responses with formatting
- 🔔 Toast Notifications - User-friendly feedback for errors and interactions
- 📱 Responsive Design - Works seamlessly on desktop and mobile
- 🎯 Type-Safe - Full TypeScript support with types included
- 🔧 Flexible Client - Use the DoclessClient directly for custom integrations
- 🌐 Less Configuration - Works out of the box with minimal setup
📦 Installation
Install the package using npm, yarn, or pnpm:
npm install @doclessai/sdk🎯 Quick Start
Using the Chat Widget
The easiest way to add AI chat to your application: React:
import { ChatWidget } from '@doclessai/sdk';
export default function App() {
return (
<div>
<h1>My App</h1>
<ChatWidget appKey="your-app-key-here" name="YOUR_ASSISTANT_NAME" />
</div>
);
}Html:
<script
src="https://cdn.jsdelivr.net/npm/@doclessai/[email protected]/dist/loader.standalone.js"
data-app-key="your-app-key-here"
data-name="YOUR_ASSISTANT_NAME"
></script>Using the DoclessClient
For more control, use the client directly:
import { DoclessClient } from '@doclessai/sdk';
const ai = new DoclessClient({
appKey: 'your-app-key-here'
});
// Send only query
const res = await ai.ask(userQuery);
// Send query with user Image
const res = await ai.ask(userQuery, ImageFile);
// Response format
{
res: string, // AI response
image: string|null, // image URL if relevant
route: string|null, // app route for navigation
elementId: string|null // UI element to highlight
}
🔗 Resources
- Homepage: doclessai
- GitHub: github.com/Dattatray8/doclessai-sdk
- NPM Package: @doclessai/sdk
👥 Author
Dattatray - GitHub Profile
🙏 Support
If you encounter any issues or have questions, please:
- Check the documentation
- Search existing issues
- Create a new issue with detailed information
Built with ❤️
