---
title: "Workflow: Prompt chaining"
source: Panaversity Learn Agentic AI
source_url: https://github.com/panaversity/learn-agentic-ai
licence: Apache-2.0
domain: agentic-ai
subdomain: panaversity-agentic
date_added: 2026-04-25
---

# Workflow: Prompt chaining

> Prompt chaining decomposes a task into a sequence of steps, where each LLM call processes the output of the previous one. You can add programmatic checks (see "gate” in the diagram below) on any intermediate steps to ensure that the process is still on track.

[LangGraph Functional API Tutorial with Prompt Chaining Pattern](https://langchain-ai.github.io/langgraph/tutorials/workflows/#prompt-chaining)

(Workflow: Prompt chaining by Antropic)[https://www.anthropic.com/research/building-effective-agents]

## Resources on Prompt Chaining Pattern

- [Prompt Structure Chaining for LLMs: Ultimate Guide](https://orq.ai/blog/prompt-structure-chaining)

- [Building a research assistant (Report mAIstro) with o3-mini](https://www.youtube.com/watch?v=8-rEFXgMSTk)

- [Report mAIstro Github Repository](https://github.com/langchain-ai/report-mAIstro)
