-
Notifications
You must be signed in to change notification settings - Fork 327
Add Durable AI landing page (/ai) and move AI Cookbook under it #5130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
23ec5d4
Durable AI first phase
Duncanma e85ef30
Make the integration grid & guide grid persist their filters in the URL
Duncanma 15ec29e
Refactor AI Cookbook components and enhance integration with new Cook…
Duncanma 8cc47d7
Update vercel.json to correct AI Cookbook destination paths for routi…
Duncanma 1a5425a
Enhance CookbookPreview component to display remaining recipes count
Duncanma 22bfd6d
Merge branch 'main' into ai-landing-page
Duncanma 6124c6a
add option to hide sdk options that have no matching content
Duncanma a282ef2
Enhance AI documentation with new GridCardList component and featured…
Duncanma 4cc0807
Update AI documentation to clarify community project showcase descrip…
Duncanma 24a007e
Update AI documentation to rename section from "Use cases" to "Common…
Duncanma b58016d
Got rid of use cases, made that content part of the top intro
Duncanma 19dad47
Refine AI documentation and terminology
Duncanma d55b432
Merge branch 'main' into ai-landing-page
Duncanma 1dda3aa
Fix to old redirects with the new path.
Duncanma 72b8027
Update Model training intro to include links to long-running activity…
Duncanma 94a9761
Merge branch 'main' into ai-landing-page
Duncanma 7b470b5
Update Temporal headings to specify 'AI Cookbook' as an exact phrase …
Duncanma 38c8cd2
Merge branch 'main' into ai-landing-page
Duncanma d4782ea
Just add .md redirects
Duncanma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,122 @@ | ||
| --- | ||
| id: index | ||
| title: Durable AI | ||
| sidebar_label: Overview | ||
| description: Build durable AI agents and systems on Temporal, with runnable cookbook recipes, SDK integrations, and design patterns for agent workloads. | ||
| slug: /ai | ||
| --- | ||
|
|
||
| import PatternCards from '@site/src/components/PatternCards'; | ||
| import IntegrationsGrid from '@site/src/components/IntegrationsGrid'; | ||
| import { CookbookPreview, GridCardList } from '@site/src/components'; | ||
|
|
||
| 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](/ai/cookbook) and the | ||
| [Approval](/design-patterns/approval) and [Entity Workflow](/design-patterns/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](/design-patterns#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](/design-patterns#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. Start with the [long-running activity](/design-patterns/long-running-activity) and [parallel-execution](/design-patterns/parallel-execution) patterns. | ||
|
|
||
| > Looking to use an AI coding assistant to write Temporal code instead? See [Develop with AI](/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. | ||
|
|
||
| <CookbookPreview limit={4} /> | ||
|
|
||
| ## 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](/integrations) for the full catalog. | ||
|
|
||
| <IntegrationsGrid defaultTags={["Agent framework"]} hideTagFilter hideEmptyOptions /> | ||
|
|
||
| ## Featured from the Code Exchange | ||
|
Duncanma marked this conversation as resolved.
|
||
|
|
||
| A hand-picked look at samples built with Temporal and AI. Browse the full | ||
| [Code Exchange](https://temporal.io/code-exchange) for more. | ||
|
|
||
| <GridCardList className="code-exchange-featured" | ||
| items={[ | ||
| { | ||
| href: "https://temporal.io/code-exchange/ai-enhanced-e-commerce-application", | ||
| title: "AI enhanced e-commerce application", | ||
| description: "A sample e-commerce gift shop with hybrid full-text and vector search plus an AI-powered chat shopping assistant, built with Stripe and Temporal Workflows.", | ||
| tags: ["Hybrid search"], | ||
| sdk: "Dotnet", | ||
| }, | ||
| { | ||
| href: "https://temporal.io/code-exchange/ai-question-planetarium", | ||
| title: "Temporal AI Question Planetarium", | ||
| description: "Runs a Hugging Face model inside Temporal Activities and Workers, streaming updates to the browser over WebSockets in real time.", | ||
| tags: ["Demo"], | ||
| sdk: "Python", | ||
| }, | ||
| { | ||
| href: "https://temporal.io/code-exchange/document-processing-w-ai", | ||
| title: "Document Processing w/ AI", | ||
| description: "A mortgage underwriting demo that uses Gemini OCR and policy-grounded AI analysis in deterministic Workflows, with human-in-the-loop review and full traceability.", | ||
| tags: ["Gemini", "Mortgage"], | ||
| sdk: "Python", | ||
| }, | ||
| { | ||
| href: "https://temporal.io/code-exchange/rust-confessional", | ||
| title: "Rust Confessional: a durable AI agent demo", | ||
| description: "A live demo where an AI agent judges audience programming confessions, its progress surviving a Worker crash mid-task.", | ||
| tags: ["Demo"], | ||
| sdk: "Rust", | ||
| }, | ||
| ]} /> | ||
|
|
||
| ## Design patterns for AI agents | ||
|
|
||
| <PatternCards items={[ | ||
| { | ||
| href: "/design-patterns/approval", | ||
| icon: "approval-icon.svg", | ||
| title: "Approval", | ||
| description: "Human-in-the-loop Workflows that block until external approval decisions are made. Uses Signals to capture approval data with metadata.", | ||
| }, | ||
| { | ||
| href: "/design-patterns/saga-pattern", | ||
| icon: "saga-icon.svg", | ||
| title: "Saga Pattern", | ||
| description: "Manages distributed transactions with compensating actions. Each step has a compensation that undoes its effects if subsequent steps fail.", | ||
| }, | ||
| { | ||
| href: "/design-patterns/long-running-activity", | ||
| icon: "long-running-activity-icon.svg", | ||
| title: "Long-Running Activity", | ||
| description: "Long-running Activities report progress via heartbeats and enable resumption after failures with cancellation support.", | ||
| }, | ||
| { | ||
| href: "/design-patterns/entity-workflow", | ||
| icon: "entity-workflow-icon.svg", | ||
| title: "Entity Workflow", | ||
| description: "Models long-lived business entities as individual Workflows that persist for the entity's entire lifetime, handling all state transitions through Signals and Updates.", | ||
| }, | ||
| { | ||
| href: "/design-patterns/local-activities", | ||
| icon: "local-activities-icon.svg", | ||
| title: "Local Activities", | ||
| description: "Run Activity functions in-process inside the Workflow Task, eliminating all server scheduling round-trips. Best for short, idempotent Activities on a latency-sensitive path.", | ||
| }, | ||
| ]} /> | ||
|
|
||
| Browse the full [Design Patterns catalog](/design-patterns) for more, or jump straight into the | ||
| [AI Cookbook](/ai/cookbook) for runnable code. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| title: High priority recipe | ||
| description: This one should sort first. | ||
| priority: 900 | ||
| --- | ||
|
|
||
| Fixture content. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| id: cookbook | ||
| title: AI Cookbook | ||
| description: Should be excluded from readCookbookRecipes as the index page. | ||
| --- | ||
|
|
||
| Fixture content. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| title: A recipe | ||
| description: Also no priority. | ||
| --- | ||
|
|
||
| Fixture content. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| title: B recipe | ||
| description: No priority set. | ||
| --- | ||
|
|
||
| Fixture content. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.