Multi-provider LLM routing, prompt versioning, agent orchestration, and HeyGen AI avatar video production.
Centralized AI operations layer: multi-provider LLM routing across 6 vendors (OpenAI, Gemini, Cloudflare AI, RunPod, Together AI, OpenRouter) with real-time utilization percentage assignment per use case, 3-step fallback chains, prompt versioning with history restore, dynamic prompt execution, AI agent lifecycle management, and direct HeyGen integration for AI avatar video creation with scene and camera-angle configuration.
import { useState } from 'react';
import { AiWidget, AiInput, AiTextarea, CardIcon } from '@cleen/cleen-components';
import { useAgentChain, usePrompts } from '@/hooks/useAi';
export function AIPromptStudio({ agentChainId }) {
const { chain, steps, runStep } = useAgentChain(agentChainId);
const { prompts } = usePrompts();
const [input, setInput] = useState('');
return (
<div className="ai-studio">
<h1>{chain?.name}</h1>
<div className="ai-prompt-grid">
{prompts.map((p) => (
<CardIcon key={p.id} icon={p.icon} title={p.name} description={p.summary} />
))}
</div>
<AiWidget chain={chain} steps={steps} />
<AiTextarea
value={input}
onChange={setInput}
onSubmit={() => runStep({ stepId: chain.firstStepId, payload: input })}
/>
</div>
);
}Internal code areas in the licensed Full-Stack codebase that back this module.
ApiAI model/platform/utilization endpointsApiAI prompt and version endpointsApiAI agent endpointsApiAI HeyGen avatar and scene endpointscleenLLM — vendor-agnostic LLM abstraction library (background services)A quick visual of how AI Models, Prompts, Agents, Avatars participates across the CleenUI stack, alongside the named operations it adds to the API surface.
Each operation maps to an endpoint in the licensed C# Web API surface.