Overview
The AI Chat Extension SDK (@sleek/ai-chat-extension-sdk) enables browser extensions to integrate intelligent, context-aware AI chat capabilities. The SDK automatically detects shopping-related websites and queries (Google, ChatGPT) and provides users with a beautiful chat interface featuring AI-powered recommendations and your offers.
Key capabilities
- Automatic query classification: Detects shopping intent on supported platforms (Google Search, ChatGPT)
- Platform controls: Choose which platforms to enable (ChatGPT and Google are enabled by default), including any merchant sites you allowlist (e.g. macys.com)
- Chat badge: Displays suggested prompts when shopping queries are detected
- Chat panel: Full-featured 400px sidebar with AI conversation interface
- Event system: Comprehensive events for all user interactions
- Data integration: Display offer redirect urls and cashback offers in conversations
- Full customization: Brand colors, logos, and UI styling
Extension Permissions
The correct extension permissions must be requested for the SDK to function. SDK requires the following permissions be requested by your browser extension:tabsscripting
Host permissions (manifest v3 only)
In addition to permissions for extensions using manifest v3, SDK requires your extension to operate on the correct URLs in the browser. In manifest v2, you specify host permissions along with other API permissions in thepermissions
array.
Installation
1
Configure npm registry
Add the Sleek registry to your
.npmrc file:.npmrc
Contact [email protected] to receive your authentication token.
2
Install the package
3
Configure manifest permissions
Update your
manifest.json to include required permissions:The
web_accessible_resources section is only required if you enable the chat badge or chat panel UI features.4
Copy SDK static files
After building your extension, copy the SDK’s static files to your output directory:
Quick start
Here’s a minimal example to get the SDK running in your browser extension:Next steps
Configuration
Learn about all available configuration options
Events
Understand the event system and available events
Data providers
Integrate offer redirect urls and cashback data
Customization
Customize branding, colors, and UI styles
Getting help
- Email support: [email protected]
- Sales inquiries: [email protected]

