Skip to main content

Durable AI

View Markdown

Temporal gives AI applications and agents Durable Execution: a Workflow resumes automatically after a crash, a network timeout, or a multi-day wait for a human to approve a step. Temporal shows up in four recurring types of AI system:

Agents. Long-running, stateful agent loops that call LLMs and tools, wait on humans, and pick up exactly where they left off after a failure. Start with the AI Cookbook and the Approval and Entity Workflow patterns.

Processing pipelines. Multi-step data and document pipelines, such as extraction, embedding, or batch inference, that need to fan out, retry failed steps in isolation, and resume without reprocessing completed work. See the batch processing patterns.

Internal agent platforms. Teams building a shared runtime for many agents reuse Temporal's Worker and Task Queue primitives instead of building their own scheduler. See the worker configuration patterns for routing and isolating agent workloads.

Model training. Long-running training and fine-tuning jobs coordinated across GPU resources, with checkpointing and recovery handled by Temporal's Event History instead of custom orchestration code.

Looking to use an AI coding assistant to write Temporal code instead? See Develop with AI.

AI Cookbook

Runnable, step-by-step recipes for building AI systems and agents with Temporal: tool calling, MCP, structured output, human-in-the-loop, and more.

Agent framework integrations

Temporal integrations for the SDKs and frameworks teams use to build agents. This view is pre-filtered to agent frameworks — browse every integration for the full catalog.

A hand-picked look at samples built with Temporal and AI. Browse the full Code Exchange for more.

Design patterns for AI agents

Browse the full Design Patterns catalog for more, or jump straight into the AI Cookbook for runnable code.