@synthome/ai: AI SDK Integration

New package: @synthome/ai
Lets AI agents generate and execute media workflows. Designed to work with Vercel AI SDK.
The Problem
Before this, integrating Synthome with AI agents meant:
- Writing your own Zod schemas
- Crafting system prompts that teach the AI the plan format
- Handling validation manually
Now it's one import.
What's Included
Two tools:
executePlanTool- AI generates a workflow plan and executes it immediately. Returns the result URL.buildPlanTool- AI generates a plan without executing. You save it, review it, run it later.
One prompt:
planSystemPrompt- Pre-built system prompt. Covers all operation types, available models, and the JSON format. The AI knows what to do.
Usage
Loading...
User says "create a video" → AI generates the execution plan → Synthome runs it → you get a URL.
When to Use Each Tool
executePlanTool: Real-time generation. User asks for content, AI makes it happen.
buildPlanTool: Workflow design. User describes a complex pipeline, AI returns the JSON, you store it for batch processing or review.
Use both together and let the AI decide based on user intent.
Install
Loading...
Docs
Full guide: AI Agents