SDK Examples

Production-ready examples showcasing serverCompose(), useCompose(), and flowBuilder(). Each example demonstrates schema validation, provider switching, and real-world implementations.

Next.js AI Example
Next.js
TypeScript
Streaming
Zod

Complete Next.js app with serverCompose() and useCompose() for streaming AI responses. Includes authentication, database, and deployment config.

SDK Features Demonstrated

  • serverCompose() integration
  • useCompose() streaming hook
  • Schema validation
  • Provider switching
  • Mock mode for demos
Multi-Agent Workflow
Multi-Agent
flowBuilder
Workflows

Showcase flowBuilder() with multiple AI agents handling sales, support, and analytics workflows in coordination.

SDK Features Demonstrated

  • Sales qualification agent
  • Customer support agent
  • Analytics & insights agent
  • Workflow orchestration
  • Error handling & retries
E-commerce AI Assistant
E-commerce
Recommendations
Support

AI-powered e-commerce with product recommendations, customer support, and inventory insights using structured outputs.

SDK Features Demonstrated

  • Product recommendation engine
  • AI customer support chat
  • Inventory analysis
  • Order processing automation
  • Schema-validated responses
Customer Support Bot
Support
Sentiment
Workflows

Advanced support bot with ticket triage, sentiment analysis, and escalation workflows using provider-agnostic AI.

SDK Features Demonstrated

  • Intelligent ticket triage
  • Sentiment analysis
  • Auto-escalation rules
  • Multi-provider support
  • Response templates
Business Analytics AI
Analytics
Insights
Reporting

Transform business data into insights with AI-powered analysis, reporting, and visualization using structured outputs.

SDK Features Demonstrated

  • Data analysis automation
  • Insight generation
  • Report creation
  • Trend identification
  • Structured data outputs
Content Generation Suite
Content
Marketing
SEO

Complete content creation platform with blog posts, product copy, and marketing materials using schema validation.

SDK Features Demonstrated

  • Blog post generation
  • Product copy creation
  • SEO optimization
  • Content templates
  • Brand voice consistency

Ready to Build with the SDK?

Explore these examples and build your AI application with confidence. All examples include comprehensive documentation, schema validation, and provider switching.

pnpm add @actionpackd/sdk-core zod