agents
What it does
This skill guides building a saved AI agent in Windmill, a reusable assistant you can chat with, run from a form, or link to from a flow. It is for people who set up AI helpers inside Windmill.
When to use it
- ✓When you want a standalone assistant you can talk to or reuse inside Windmill.
- ✓When you need to give an agent its own system prompt, tools and memory settings.
- ✓When a flow step should link to a saved agent instead of rebuilding the same logic.
Skill link
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/agents/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Help me create a reusable support assistant in Windmill that answers questions from our product docs.”
5 new skills a week. 1 minute to read.
How it works
The skill describes the agent as a resource file that holds the chosen AI model, its instructions, memory and tools, so it can be reused in several places.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Windmill AI Agents
An agent, as the Agents page lists it, is a saved LLM with its own system prompt, tools and
memory, stored as a resource of type ai_agent. It is built once and used in several places: it is
run from its own page (a chat, or a run form), a flow's AI agent step links to it by path, and it
can be shared in Slack channels from its page. Build a standalone agent when the user wants an
assistant they talk to or reuse. Build a flow when the agent is one step of a larger process.
File Format
An agent is a resource file like any other, {path}.resource.yaml (or .resource.json), with
resource_type: ai_agent.
Structure
{
"resource_type": "ai_agent",
"description": "Answers support questions from the product docs",
"value": {
"provider": { "kind": "openai", "resource": "$res:f/ai_providers/openai", "model": "gpt-4o" },
"system_prompt": "You are the support assistant for Acme. Answer from the docs; say so when they don't cover a question.",
"memory": { "kind": "compaction" },
"output_type": "text",
"tools": [
{
"id": "search_docs",
"summary": "search_documentation",
"description": "Search the product documentation. Use it whenever the user asks how a feature works.",
"value": {
"tool_type": "flowmodule",
"type": "script",
"path": "f/support/search_docs",
"input_transforms": {
"query": { "type": "ai" },
"index": { "type": "static", "value": "product_docs" }
}
}
}
]
}
}
The agent's own settings are plain values, not the input_transforms an agent step in a flow uses:
each is fixed when the agent is saved. Only a tool's arguments keep input_transforms (see Tools). $res: and $var: references inside it are resolved at run time.
provider(required):{ "kind", "resource": "$res:<path>", "model" }, plus an optionalreasoning_effort.resourcenames the workspace's AI provider resource of that kindsystem_prompt: how the agent behaves. Write it for the agent's job: who it serves, what it may do with its tools, and what it should refuse or hand backmemory: what lets the agent see earlier turns.{ "kind": "compaction" }keeps the whole conversation, summarizing its older part as it nears the model's context window; it is what a new agent starts with on its page.{ "kind": "off" }makes every run start from nothing, right for an agent that handles one request per runoutput_type:text(default) orimage. Image output ignores tools and needs S3 storage on the workspaceoutput_schema: a JSON schema the answer must follow, for an agent whose output a program readsmax_iterations: how many model and tool rounds a run may take, 1 to 1000 (default 10)streaming(default on),temperature,max_completion_tokens: as their names sayrun_on_behalf_of: runs from the agent's page take the identity the agent was deployed with rather than the caller's, so people can use it without access to what its tools touch.slack_anyonelets anyone in the Slack channels it is shared in ask it, and is kept only withrun_on_behalf_of. Set either only when the user asks: both widen who acts with the deployer's rightson_behalf_ofis the identity itself. Deploying sets it, so never write it
Tools
tools takes the same entries as a flow's AI agent step. value.tool_type is flowmodule for a
script or inline script the agent calls (or a nested agent or AI decision), mcp for an MCP server
({ "tool_type": "mcp", "resource_path": "$res:<path>", "include_tools": [], "exclude_tools": [] }),
or websearch for web search ({ "tool_type": "websearch" }, summary Web Search).
- Write logic made for this agent as an inline
rawscripttool, as a flow writes its steps. Point ascripttool at a deployed script (path) only when one already does the job: a run calls the deployed version, so a script that exists only as a draft fails the run. An inline tool'svalueis a flow's rawscript step:{ "tool_type": "flowmodule", "type": "rawscript", "language": "bun", "content": "export async function main(query: string) { ... }", "input_transforms": { "query": { "type": "ai" } } } - A flow cannot be a tool: a run offered one fails with
Unsupported tool. Wrap it in a script that runs the flow - A flowmodule tool's
summaryis the name the agent calls it by: letters, num
FAQ
Should I build an agent or a flow?
Build a standalone agent when you want an assistant you talk to or reuse. Build a flow when the agent is only one step of a larger process.
Where is the agent stored?
It is saved as a resource file with the resource type ai_agent, next to your other workspace files.
Can the agent use tools?
Yes. You can give the agent tools such as scripts it may call, each with a short description of when to use it.
Details
Original description by the author
MUST use when creating or changing an AI agent, the reusable `ai_agent` resource the Agents page lists.
repo: windmill-labs/windmill
Popularity
- GitHub stars
- 18k
- Ranking position
- #10627
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
commit
18kHelps your agent write a clean one-line git commit message in conventional format, staging only the files that changed.
pr
18kHelps your agent open a draft pull request on GitHub with a clear title and description, then follow the review rounds.
cli-commands
18kHelps your agent run the Windmill command line tool to manage scripts, flows, apps and job history.
datatables
18kHelps your agent change a Windmill data table safely, using versioned migrations, undo steps and correct permissions.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.