Getting Started
Out-of-the-box Digital Employee Pilot Kit with event-driven, plugin-based architecture, supporting multiple frontend frameworks
What is AaaS?
AaaS (Agent as a Service): Based on Baidu Intelligent Cloud Keyue PaaS platform, integrating AI capabilities such as customer service, outbound calls, and digital humans, providing developers with ready-to-use Digital Employee services.
AaaS Pilot Kit seamlessly integrates AI Agent, ASR, and Digital Human rendering services with full-chain observability and trackable key points, creating a truly smooth and natural Digital Employee experience. Supports Web platforms including Vanilla JS, React, and Vue 3, with Mini Program plugins coming soon 🚧.
Features
- 📦 Out-of-the-box - Build a Digital Employee in minutes through configuration
- 🔗 Multi-stack Support - Compatible with mainstream frontend frameworks, React / Vue3 / Svelte plug-and-play, supports custom UI development
- 🌐 Cross-platform - Unified experience across Web, H5, Mini Programs, and APPs
- 🧩 Pluggable & Extensible - Plugin-based design for RTC and Agent Service, extend capabilities in hours and register to replace built-in features
- 🧭 Observable - Full-chain tracing + key point error reporting, issues visible and quickly locatable
Platform Support
🌐 Web Platform (Available)
Provides three technology stack solutions: Vanilla JS, React, and Vue 3 to meet different project needs.
Vanilla JavaScript - Native JavaScript SDK, no framework dependencies
Installation
npm:
npm install @bdky/aaas-pilot-kit
yarn:
yarn add @bdky/aaas-pilot-kit
Use Cases
- Cross-framework Reuse - In projects with multiple technology stacks (e.g., React + Vue + native JS hybrid), serves as a unified Digital Employee underlying SDK
- Custom Technology Stack Projects - Using non-mainstream frameworks (e.g., Svelte, SolidJS) or self-developed build systems, avoiding additional dependencies
- Lightweight or Performance-sensitive Scenarios - Avoiding framework runtime overhead, suitable for landing pages or embedded components with strict loading performance requirements
💡 As the core underlying capability, all framework wrappers are built on this, with UI completely customizable by developers.
React - React Hooks + Context Provider
Installation
npm:
npm install @bdky/aaas-pilot-kit-react
yarn:
yarn add @bdky/aaas-pilot-kit-react
Features
- React Hooks API wrapper
- Context Provider state management
- Full TypeScript support
- Completely customizable UI, providing only data and state management capabilities
💡 Suitable for quick integration into React projects, get state and controllers through Hooks, UI layer completely customizable by developers.
React Widget - Out-of-the-box UI Component Library
Installation
npm:
npm install @bdky/aaas-pilot-kit-react-widget
yarn:
yarn add @bdky/aaas-pilot-kit-react-widget
Features
- Out-of-the-box UI components (conversation list, subtitle, control panel, etc.)
- Auto-responsive for PC/Mobile
- Supports style override and custom rendering
- Built on React SDK, sharing the same underlying API
💡 Perfect for rapid deployment scenarios, build a complete interactive interface in 5 minutes, 80% default + 20% customization meets most requirements.
Vue 3 - Composition API + Dependency Injection
Installation
npm:
npm install @bdky/aaas-pilot-kit-vue3
yarn:
yarn add @bdky/aaas-pilot-kit-vue3
Features
- Composition API wrapper
- Dependency injection support
- TypeScript support
- Completely customizable UI, providing only reactive state and controller capabilities
💡 Suitable for quick integration into Vue 3 projects, get reactive state and controllers through Composables, UI layer completely customizable by developers.
Vue 3 Widget - Out-of-the-box UI Component Library
Installation
npm:
npm install @bdky/aaas-pilot-kit-vue3-widget
yarn:
yarn add @bdky/aaas-pilot-kit-vue3-widget
Features
- Out-of-the-box UI components (conversation list, subtitle, control panel, etc.)
- Auto-responsive for PC/Mobile
- Supports style override and custom rendering
- Built on Vue 3 SDK, sharing the same underlying API
💡 Perfect for rapid deployment scenarios, build a complete interactive interface in 5 minutes, 80% default + 20% customization meets most requirements.
📱 Mini Program Platform (Planned 🚧)
Mini Program SDK is under development and will support mainstream Mini Program platforms:
- WeChat Mini Program (priority support)
- Baidu Smart Mini Program
- ...
💡 Mini Program platform will provide consistent API design with Web platform, allowing your Digital Employee services to seamlessly cover all platforms.
Expected release: Q4 2025
Android Native SDK (Planned 🚧)
Android Native SDK is in planning and will prioritize Android native application scenarios while maintaining core capabilities consistent with Web / Mini Program platforms:
- Provides full-chain capability encapsulation for real-time speech recognition, Agent scheduling, and Digital Human rendering
- Supports custom development extensions and custom UI
💡 Android platform also adopts a unified controller and event model, facilitating cross-platform business logic reuse.
Expected release: End of Q4 2025 (tentative)
Workflow
The complete interaction flow of AaaS Pilot Kit is shown below, demonstrating the full-chain processing from user voice input to Digital Employee voice broadcast:
Architecture Design
AaaS Pilot Kit adopts a layered architecture design based on dependency injection and event-driven patterns:
Core Features:
- 🔌 Plugin-based Architecture: Based on InversifyJS dependency injection, Service layer is pluggable and replaceable (currently only supports Agent Service)
- 📡 Event-driven: Emittery async event bus, enabling full-chain state synchronization
- 🎨 Framework-agnostic: Core SDK is independent, React/Vue layers are just lightweight wrappers
- 🔄 Streaming Processing: Agent SSE streaming response, real-time conversation content updates
Future Roadmap
- 📱 Mini Program Plugins: Q4 2025 release WeChat Mini Program (priority), Baidu Smart Mini Program version (TBD), unified API design
Android Native SDK: End of Q4 2025 (tentative) release Android native application support, providing full-chain capabilities for real-time speech recognition, Agent scheduling, and Digital Human rendering
- 🎨 Digital Human Edge Rendering: Q4 2025 support for edge 2D/3D avatar rendering, relying on edge computing power, zero bandwidth consumption, reducing cloud costs
- 🔧 More Service Plugins: RTC, ASR, etc. replaceable, providing more flexible customization capabilities for Service layer
- ⚡ Continuous Performance Optimization: Bundle size reduction, rendering performance improvement, memory footprint reduction, creating ultimate loading experience
Related Links
- Emittery - Modern async event bus, driving full-chain event communication and state synchronization
- Inversify - Lightweight, strongly-typed dependency injection container, supporting plugin architecture and module decoupling
- Ky - Simple and reliable HTTP client for Agent and SSE service communication
- starling-dhiframe - Baidu Intelligent Cloud cloud-based Digital Human rendering component