The Four AI Tools: What Kestra Built
Kestra 1.0 shipped four AI capabilities that operate at different layers: MCP Resources (connect AI tools to live Kestra docs), AI Copilot (YAML generation in the UI), AI Agents (autonomous orchestration at runtime), and Agent Skills (extend Kestra expertise into dev environments). Each solves a different problem.
The four layers of Kestra's AI strategy
Kestra's AI capabilities operate at four distinct layers, solving different problems for different users:
Layer 1: MCP Resources — AI coding tools get live Kestra knowledge
Kestra exposes its documentation and live instance state via the Model Context Protocol (MCP). AI coding assistants like Claude Code and Cursor connect to this MCP server and query live documentation at runtime rather than relying on training data that may be months out of date.
*Who benefits:* developers writing Kestra flows inside AI-assisted coding environments
*What it solves:* LLM hallucinations about Kestra's plugin API (outdated task parameters, deprecated options, wrong configuration syntax)
*The product insight:* this is an infrastructure play, not a feature play. It makes all AI assistance for Kestra more accurate — a rising tide for every other AI tool.
Layer 2: AI Copilot — YAML from natural language in the UI
Built into the Kestra UI, Copilot generates and refines flow definitions from natural language prompts. Describe what the flow should do; Copilot generates the YAML. Then iterate: "now add a retry on the HTTP task" or "add a Slack notification on failure."
*Who benefits:* new Kestra users who haven't memorized plugin syntax; experienced users who want to scaffold quickly
*What it solves:* the blank canvas problem — starting a new flow from scratch is slow; Copilot gives a working starting point
*The product insight:* YAML is dramatically easier to generate correctly than Python code. This is why Copilot is a stronger product bet for Kestra than for Airflow or Prefect.
Layer 3: AI Agents — autonomous orchestration at runtime
A first-party plugin (io.kestra.plugin.ai.agent.AIAgent) that runs an autonomous agent inside a Kestra flow. The agent has an LLM, a system message (its role and constraints), tools (web search, task execution, calling other flows), and optional memory. It runs in a loop, deciding which tool to call next, until the objective is met or a termination condition is reached.
*Who benefits:* engineering teams building AI-powered automation that adapts based on what it finds
*What it solves:* the gap between "static workflow" (predetermined steps) and "adaptive workflow" (agent decides what to do next based on context)
Layer 4: Agent Skills — Kestra expertise in dev environments
Structured knowledge files (similar in concept to CLAUDE.md) that teach external AI coding agents how to generate valid Kestra flows, use kestractl, and operate in Kestra environments. These are distributed to developer tools so any AI coding assistant can "know" Kestra even if it wasn't in the training data.
A clever tactical move that accomplishes more than it appears. The MCP Resources tool is tesuji: it seems like infrastructure work but it improves the quality of every other AI capability built on top of it.
The AI Copilot in depth
How Copilot actually works:
The user types a natural language description in the Kestra UI editor: "Create a flow that reads a CSV from S3, processes each row, calls the OpenAI API to classify the content, and writes the results back to S3." Copilot calls an LLM with the description + Kestra's YAML schema + relevant plugin documentation, and returns a valid YAML flow.
Iterative refinement:
Copilot isn't just generation — it supports incremental editing. "Add exponential retry to the OpenAI task" or "add a Slack alert if any tasks fail" are follow-up prompts that modify the existing flow rather than regenerating from scratch. This is how the UX stays productive: generate a base, refine iteratively.
The quality constraint:
Copilot output requires review. For simple flows with well-documented plugins, output quality is high. For complex flows with less common plugins or nuanced configuration, the output may need correction. The Copilot is a scaffold, not a finished product.
What enables Copilot at Kestra that's harder elsewhere:
- YAML has a defined schema — Kestra validates Copilot output against the schema before presenting it
- Plugin documentation is structured — each plugin has defined properties, types, and examples that can be included in the LLM context
- The Kestra UI can validate YAML in real-time and show errors before the user runs the flow
What it doesn't do yet:
Copilot doesn't generate flows that require complex conditional logic, multi-namespace coordination, or custom plugin configurations. It's strongest for standard integration flows and weakest for novel orchestration patterns.
The strategic coherence of the four tools
The four tools are not independent features — they're a deliberate stack:
- 1.MCP Resources make the underlying knowledge accurate for all AI tools
- 2.Agent Skills bring that accurate knowledge into developer environments (Claude Code, Cursor)
- 3.AI Copilot uses that knowledge to generate flows in the UI
- 4.AI Agents use the platform as runtime infrastructure for autonomous workflows
The insight: Kestra is not just adding AI features to an orchestration product. They're positioning the orchestration product as the platform for AI development — both as the tool developers use to build AI workflows (Copilot, Skills, MCP) and as the runtime infrastructure for AI agents (AI Agents task type).
The 1.0 announcement framing:
Kestra described its strategic direction as moving on two axes:
- *From manual YAML to natural language:* users describe what they want rather than writing every YAML property by hand (AI Copilot direction)
- *From static to autonomous:* workflows evolve from predetermined task sequences to self-directing agents that determine their own execution paths (AI Agents direction)
This dual-axis framing is the product vision. The PM role is to advance both axes.
Select any text in the lesson to ask a question. Press Esc to close.