What problem does it solve? Building LLM-powered agents that survive crashes, redeploys, and reconnects requires durable execution infrastructure that most ad-hoc API routes lack. This Skill provides production patterns for Trigger.dev 4.5 so AI chat surfaces, parallel workers, and human approval gates run reliably without hand-rolled streaming protocols. ## Core Features & Use Cases - Durable Chat Agents: Build Vercel AI SDK chat surfaces with chat.agent, Sessions, versioned AI Prompts, and bundled Trigger Agent Skills that resume across run swaps. - Agent Orchestration Patterns: Apply prompt chaining, routing, parallelization, orchestrator-workers, and evaluator-optimizer loops using typed batch.triggerByTaskAndWait calls. - Human-in-the-Loop & Streaming: Pause tasks for human approval with waitpoint tokens and stream real-time progress or AI completions to React frontends. - Use Case: A team building a support chatbot can define a chat.agent with dashboard-overridable prompts, let the LLM call backend tasks as tools via ai.tool, and gate sensitive actions behind Slack approval waitpoints. ## Quick Start Ask the agent to scaffold a Trigger.dev chat.agent task with a versioned system prompt and a parallel fan-out worker for processing user requests.