PRD-38.4: SDK Foundation
Executive Summary
The Vision
Customer Website Automatos Cloud
───────────────── ───────────────
┌─────────────────────┐ ┌─────────────────────┐
│ │ │ │
│ <script src= │ ◀──────▶ │ Widget API │
│ "automatos.js"> │ Secure │ - Chat │
│ │ WebSocket │ - RAG │
│ ┌───────────────┐ │ + REST │ - NL2SQL │
│ │ Automatos │ │ │ - 863+ Tools │
│ │ Chat Widget │ │ │ - Agents │
│ │ │ │ │ - Memory │
│ └───────────────┘ │ │ │
│ │ └─────────────────────┘
└─────────────────────┘Key Deliverables
Deliverable
Description
1) Goals & Success Metrics
Goals
ID
Goal
Description
Success Metrics
Metric
Target
Measurement
2) Repository Structure
New Repository: automatos-widgets
automatos-widgets3) Package Specifications
3.1 @automatos-ai/core
3.2 @automatos-ai/react
3.3 @automatos-ai/vanilla
⚠️ Security Warning: API Keys in Client-Side HTML
Recommended: Server-Mediated Token Exchange
4) API Endpoints
Widget API (Backend)
5) Security
API Key Management
Security Measures
Measure
Implementation
CORS Configuration
6) CDN & Distribution
Cloudflare Setup
Versioning Strategy
7) Implementation Plan
Week 8: Core Package + API
Day
Task
Week 9: React Package
Day
Task
Week 10: Vanilla Package + CDN
Day
Task
8) Files to Create
In automatos-widgets repo:
In main automatos-ai repo:
9) Example Integrations
Next.js Integration
WordPress Integration
Plain HTML Integration
10) Testing Checklist
Core Package
React Package
Vanilla Package
Security
11) Success Criteria
12) References
Last updated

