Produck SDK Documentation
One SDK to give your website AI superpowers β knowledge base, API actions, DOM reading, and a chat widget.
What is Produck SDK?
Produck SDK transforms any website into an AI-powered experience. Install it once and your site gets:
- Knowledge Base β Scrape your website or upload docs. The AI learns your product.
- API Schema β Attach your OpenAPI spec. The AI executes real API calls on behalf of users.
- DOM Context β The AI reads the current page on demand to answer page-specific questions.
- Chat Widget β A beautiful, pre-built widget that ties it all together.
Example
import { ProduckProvider, ProduckChat } from '@prodact.ai/sdk/react'
function App() {
return (
<ProduckProvider
sdkKey="pk_live_..."
apiSchema="/api/openapi.json"
apiAuth={{ type: 'cookie' }}
domContext={{ enabled: true, selectors: ['main'] }}
>
<ProduckChat />
</ProduckProvider>
)
}Now users can ask: "Cancel my subscription" β and the AI reads the API schema, finds DELETE /api/subscriptions/{id}, executes the call, and confirms.
Why Produck?
AI Knowledge Base
Scrape your website, upload docs, or paste text. The AI becomes an expert on your product in minutes.
API Actions
Provide an OpenAPI schema and the AI can execute real API calls β creating orders, updating settings, fetching data.
On-Demand DOM Reading
The AI reads the current page only when needed. Zero overhead. Privacy-first design.
Security First
Endpoint whitelisting, DOM scoping, proxy domain allowlists, and no persistent storage of sensitive data.
React First, Framework Agnostic
Optimized for React with hooks and components. Core SDK works with vanilla JS, Vue, Angular, and WordPress.
5-Minute Setup
Three lines of code to get started. No backend changes required. Works with any website.
Quick Start (5 Minutes)
Step 1: Install
npm install @prodact.ai/sdkStep 2: Add to Your App
import { ProduckProvider, ProduckChat } from '@prodact.ai/sdk/react'
export default function RootLayout({ children }) {
return (
<ProduckProvider sdkKey={process.env.NEXT_PUBLIC_SDK_KEY}>
{children}
<ProduckChat position="bottom-right" />
</ProduckProvider>
)
}Step 3: Add Your Knowledge Base
In the Produck Dashboard (opens in a new tab):
- Create an SDK project
- Add knowledge base sources (URLs, docs, or text)
- Copy your SDK key
That's it! Your AI assistant now knows your product and can answer user questions.
Read Full Getting Started Guide β
Common Use Cases
E-commerce
User: "What's the return policy?"
β AI looks up knowledge base β answers with your actual policySaaS Dashboard
User: "Cancel my subscription"
β AI reads API schema β calls DELETE /api/subscriptions/{id} β confirmsDocumentation Site
User: "What's on this page?"
β AI reads DOM context β summarizes current page contentCustomer Support
User: "I need help with billing"
β AI retrieves billing docs β opens support ticket via APIDocumentation
Getting Started
Account setup, installation, and first integration
Knowledge Base
Teach the AI about your product
API Schema
Let the AI execute real API calls
DOM Context
On-demand page reading for the AI
Security
Whitelisting, scoping, and data handling
API Reference
Complete SDK method documentation
Need Help?
- Getting Started β Step-by-step tutorial
- Troubleshooting β Common issues & fixes
- FAQ β Frequently asked questions
- Email Support β Direct support