Skip to main content

AI agents

AI Agents steps allow you to integrate AI agents directly into your Windmill flows. They provide an interface to connect with various AI providers and models, allowing you to process data, generate content, execute actions (Windmill scripts), and make decisions as part of your automated workflows.

An agent can also be saved on its own and run or chatted with from its page, without a flow around it.

Configuration​

Provider selection​

Choose from supported AI providers including OpenAI, Azure OpenAI, Azure AI Foundry, Anthropic, Mistral, DeepSeek, Google AI (Gemini), Groq, OpenRouter, Together AI, or Custom AI endpoints.

TypeSafe and Cloudflare resources serve AI decision steps only, and an AI agent step refuses them.

Agent steps keep working even in a workspace that hides the AI assistant.

Resource configuration​

Select or create an AI resource that contains your API credentials and endpoint configuration. Resources allow you to securely store and reuse AI provider credentials across multiple flows.

For Anthropic, the picker also lists anthropic_federated resources, which authenticate through Workload Identity Federation with no stored API key (Enterprise Edition only). For Claude or Gemini on Vertex AI, it lists vertex_ai_federated resources, which do the same through Google Cloud Workload Identity Federation, and picking one sets the provider from the resource's base_url.

Model selection​

Choose the specific model you want to use from your selected provider. Available models depend on your chosen provider and resource configuration.

Reasoning effort​

For models that support extended thinking (chain of thought), a reasoning effort dropdown appears in the provider/model picker, just below the model selection. It controls how much the model reasons before producing its answer.

  • The dropdown is shown only once a model is selected. For models that do not support reasoning it displays "The selected model does not support reasoning effort".
  • The available effort levels adapt to the selected provider and model. Depending on the model you may see levels such as low, medium, and high, and on some models minimal, xhigh, or max.
  • An off option is available where the provider can genuinely disable reasoning; some models always reason and offer no off. For models that only reason when asked, the default option is already labelled off. For models that reason by default, a Model default option keeps the provider's built-in behavior and a separate off option explicitly disables reasoning.
  • Reasoning effort is model-specific: changing the model resets the selected effort.

Reasoning effort is supported on the following providers. Whether a given model supports it, and the exact set of levels offered, depends on the specific model:

  • Anthropic (Claude)
  • OpenAI (o-series, GPT-5 and GPT-6 models)
  • Azure OpenAI
  • Google AI (Gemini 2.5 and 3.x)
  • AWS Bedrock (Claude)
  • OpenRouter
  • DeepSeek
  • Mistral

Reasoning consumes additional tokens, which are billed and counted in the step's token usage. When a flow with reasoning enabled is run in chat mode, the model's thinking is streamed into a collapsible "Thinking" box in the chat interface while the step runs.

On OpenAI, the thinking is a summary that is only returned to organizations having completed organization verification. Without it the step still reasons and answers normally, but its thinking stays hidden; after verifying, it can take up to an hour to appear.

Anthropic extended thinking was previously toggled by appending a /thinking suffix to the model id. Existing selections keep working: the suffix is stripped automatically and mapped to the reasoning effort control.

Script tools​

AI Agents can be equipped with script tools that extend their capabilities beyond text and image generation. Tools are Windmill scripts that the AI can call to perform specific actions or retrieve information. You can add tools from three sources:

  • Inline scripts - Write custom tools directly within the flow
  • Workspace scripts - Use existing scripts from your Windmill workspace
  • Hub scripts - Leverage pre-built tools from the Windmill Hub

Each script tool must have a unique name within the AI agent step and contain only letters, numbers, and underscores. wmill lint reports flow files whose tool names break these rules. The name should be descriptive of the tool's function, and you can add a tool description to give the AI more guidance on when and how to use it.

When script tools are configured, the AI agent can decide when and how to use them based on the user's request. It selects the most appropriate tool by name, and issues a tool call with JSON arguments that conform to the tool's input schema. Windmill executes the underlying script and returns a JSON result, which is surfaced back to the model as a tool response message and is included in messages.

Tool description​

Each tool can have an optional free-text description (up to 3000 characters), set in the field below the tool name in the AI agent step's tool configuration. It is sent to the AI model to help it decide when and how to call the tool.

When you leave it empty, Windmill resolves the description sent to the model in this order:

  1. The explicit description set on the tool, if any.
  2. Otherwise, the description auto-derived from the underlying runnable - a workspace script's description, or a Hub script's summary.
  3. Otherwise, the tool name, as a fallback.

Where tools run​

Each tool call runs as its own job, so other workers can run tools in parallel. Tools pick their worker group tag like flow steps. A tool tag using $flow_expr[...] is not resolved, and the tool runs on its default tag.

Websearch tool​

AI Agents can be equipped with a built-in websearch tool to retrieve up-to-date information from the web during execution. Websearch is supported on OpenAI, Anthropic, and Google AI (Gemini) providers, and uses each provider's native web search capability (OpenAI's web search tool via the Responses API, Anthropic's web search tool, and Gemini's Google Search grounding). Add it from the tool picker of the AI Agent step — no additional configuration is required.

Nested AI agents (agent as tool)​

An AI Agent can be used as a tool inside another AI Agent step, enabling hierarchical or specialized sub-agents (for example, a coordinator agent that delegates to a research agent). When adding a tool to an AI Agent step, pick "AI Agent" as the tool type and configure the nested agent with its own provider, model, system prompt, tools, memory, and other input transforms — the full input transforms view is available, so the nested agent can be configured just like a regular AI Agent step.

Only two levels of nesting are supported: flow → AI agent → nested AI agent tool. A nested AI agent cannot itself contain further AI agent tools; attempting deeper nesting is rejected at runtime.

AI decision tool​

An AI decision can be a tool of an AI agent step. Like a nested agent, it is offered only on a flow's own agent step, not inside a nested AI agent tool.

MCP tools​

AI Agents can connect to MCP (Model Context Protocol) servers as tools, enabling access to any tools exposed by MCP-compatible servers.

If the MCP server handles OAuth, you can simply connect using the OAuth URL. Otherwise, you can use MCP tools by following these steps:

  1. Create an MCP resource in Windmill with:

    • Name: Identifier for the MCP resource
    • URL: The MCP server endpoint URL
    • Auth token (optional): Authentication token for the MCP server
    • Headers (optional): Additional HTTP headers for the connection
  2. Add the MCP resource to your AI Agent step as a tool

  3. The AI agent will automatically discover and use tools exposed by the MCP server

To limit which of the server's tools the agent gets, use the tool filtering settings of the MCP tool: "Only include specified tools" and "Exclude specified tools".

Note: Only HTTP streamable MCP servers are supported.

To limit what a prompt-injected agent can do through its tools, restrict the job token of the AI agent step, with a resources:read scope for its provider resource.

Require approval​

Turn on "Require approval" in a script or flow tool's "Tool settings" tab, or on an MCP server tool (it then covers every tool the server exposes), to have each call wait for a person before it runs.

The agent pauses and releases its worker, like a suspended step, and resumes once the call is answered. Someone approves or rejects it, with its arguments shown, from the run page or, in a chat flow or an agent's own chat, from the chat. No approval link or Slack or Teams message is sent. Any member of the workspace can answer: the approver and self-approval settings of an approval step don't apply. Other tool calls of the same turn run right away. A question asked in the same turn, a second question, or the structured answer are refused, and the model is told to retry once the request is answered.

  • The model is told a rejected call did not run, with the reason if one was given.
  • A call nobody answers within 30 minutes reaches the model as not run. This timeout cannot be changed.

Run in background​

"Run in background", in the same "Tool settings" tab of a script or flow tool, lets the agent keep going while a long call runs, either at once or once the call has run past a delay.

Ask a question tool​

The built-in "Ask a question" tool, added from the agent's tool picker, lets the agent ask a person for something only they can give, such as a choice or missing information. It can offer one or several choices, and a free-text answer is always possible. The agent pauses and releases its worker until someone answers from the run page or the chat, and the answer, with who gave it, becomes the tool's result. If the question is declined or goes unanswered past the tool's timeout (30 minutes by default), the agent is told and continues.

Limits of approval and questions​

  • A nested AI agent is never offered the question tool or a tool that requires approval.
  • The run page banner and the chat only show requests from a top-level agent step: for an agent step inside a loop or branch, answer from its node in the flow graph.
  • A run started from Slack shows no request in Slack: answer it from the run page.

Enabled tools​

The enabled_tools step input narrows which of the step's tools the agent can call in a run, so it costs no more than it needs. Add it to the step with "Add a field":

  • Not set (default): the agent can call all of its tools.
  • Empty list: the agent runs with no tools.
  • List of names: the agent can call only the tools named.

To give the agent all of its tools back, remove the field rather than emptying it.

Like any other step input, it can be a JavaScript expression evaluated on each run, for example to choose tools from a flow input:

flow_input.mode === 'support' ? ['get_user', 'u/admin/github_mcp'] : ['__wm_web_search']

In an expression, name each tool as follows:

ToolName in enabled_tools
Script, flow or nested AI agent toolThe tool name, as shown to the model
MCP serverThe MCP resource path, for example u/admin/github_mcp
WebsearchThe reserved name __wm_web_search, which no other tool can use
Ask a questionThe reserved name __wm_question, which no other tool can use

An MCP server is enabled as a whole: it gives the agent every tool the server exposes, filtered by the server's tool filtering settings. A single tool from an MCP server cannot be enabled on its own: use the server's tool filtering settings for that.

Names that match none of the step's tools are ignored rather than failing the step, and the job logs record how many names had no effect.

enabled_tools belongs to the step, not to the agent: flows that link the same reusable agent can each enable a different set of its tools without changing the agent.

Input parameters​

Required parameters​

user_message (string)​

The main input message or prompt that will be sent to the AI model. This can include static text, dynamic content from previous flow steps, or templated strings with variable substitution. For text output, it can be left empty when managed memory is off and previous_messages supplies the conversation.

system_prompt (string)​

The system prompt that defines the AI's role, behavior, and context. This helps guide the model's responses and ensures consistent behavior across interactions.

Optional parameters​

output_type (text | image)​

Specifies the type of output the AI should generate:

  • text - Generate text responses (default).
  • image - Generate image outputs (supported by OpenAI, Google AI (Gemini), and OpenRouter). Requires an S3 object storage to be configured at the workspace level.

output_schema (json-schema)​

Define a JSON schema that the AI agent will follow for its response format. This ensures structured, predictable outputs that can be easily processed by subsequent flow steps.

memory (off | compaction)​

Managed memory: Windmill stores the agent's conversation and sends it with each request. It is off by default on a flow step, so each run starts with no history, and On for an agent created from + New. On (compaction) keeps the whole conversation, summarizing the older part as it nears the model's context window; the run details still show every message and tool result.

Enabling chat mode turns managed memory on, unless the step supplies its own previous messages.

The context window comes from the model, 128K tokens for one Windmill does not recognize; for a custom model, set Context window under the memory setting. The per-model context windows in the workspace AI settings do not apply to AI agents.

Each step's saved memory is limited to 100KB, unless instance object storage (Enterprise Edition) is configured.

Managed memory is part of the agent, so it is saved with a reusable agent and applies to every step that links it.

A step saved with the older window, auto or manual memory keeps running as before, marked legacy in the form.

memory_id (string)​

Names the memory a step reads and writes while managed memory is on. It belongs to the step rather than the agent, so a step linked to a reusable agent sets its own. It is read only while managed memory is on:

  • Inherited, the default, uses the memory id the run was started with: the conversation id in chat mode, or the memory_id query parameter of the run request.
  • Custom sets the id on the step, overriding the run's. A fixed value shares one memory across every run, and an expression such as flow_input.customer_id keeps one memory per value.

With Inherited, a run started without a memory id (a schedule, a webhook call without the parameter, a test run outside chat mode) runs the agent with no history, and so does a Custom expression that evaluates to nothing.

Any string is a valid memory id, and one that is not a UUID is scoped to the flow (or to the agent, when a standalone agent is run directly), so the same string names a different memory in another flow. Each step keeps its own history under a memory id, so two steps linking the same agent do not share one.

Only one run at a time can use a memory id, whether it comes from a chat conversation or the memory_id parameter. This follows the scoping above: a string memory id is reserved per flow (or per agent), and a UUID across every flow of the workspace. While that run is queued or running, another run started with the same memory id is refused with a 409. If that run's last top-level step is an AI agent (not a branch or loop containing one) that is only waiting on an approval, a question or background tools, the new run takes the conversation over instead, and the pending approval or question is dropped. A Custom memory id set on a step is not reserved this way, so two runs that resolve it to the same value at the same time can overwrite each other's memory.

Using memory with webhooks​

To continue a conversation across runs started from a webhook or the API, pass the same memory_id query parameter to the run endpoint:

https://your-windmill-instance/api/w/your-workspace/jobs/run_wait_result/f/your-flow?memory_id=customer-42

Add take_over=true to stop the run holding that memory id, if any, and run this one instead of getting a 409. Only the user who started the held run, or an admin, can stop it. Windmill waits up to 40 seconds for the held run to stop, and returns a 409 to retry if it has not.

previous_messages (array)​

History supplied by the flow, sent between the system prompt and the user message. Read only while managed memory is off; Windmill does not store it.

Each message follows the OpenAI message format:

{
"role": "string",
"content": "string | null",
"tool_calls": [/* array of tool calls */], // optional
"tool_call_id": "string | null" // optional
}

streaming (optional)​

Whether to stream the progress of the AI agent. On unless set to false. It applies to text output only: an image answer is never streamed.

The stream will contain json payloads separated by newlines. The payloads can be of the following types:

{
"type": "token_delta", // sent everytime the AI generates a new token
"content": "string",
}
{
"type": "reasoning_token_delta", // sent everytime the AI generates a new token of its thinking, when reasoning is enabled
"content": "string",
}
{
"type": "tool_call", // sent when the tool call is started
"call_id": "string",
"function_name": "string",
"function_arguments": "string",
}
{
"type": "tool_call_arguments", // sent all arguments have been received
"call_id": "string",
"function_name": "string",
"function_arguments": "string",
}
{
"type": "tool_execution", // sent when the tool job is started
"call_id": "string",
"function_name": "string",
}
{
"type": "tool_result", // sent when the tool job is completed
"call_id": "string",
"function_name": "string",
"result": "string",
"success": true, // whether the tool job completed successfully
}

The final result of the step will contain an additional field wm_stream with the complete stream.

You can use the SSE stream webhooks or an HTTP route in Sync SSE mode to get the stream. If the AI agent step is not the last step of your flow, make sure to configure early return with the step's id to have the stream returned. The new_result_stream field of an SSE event can contain multiple payloads at a time, make sure to split on line breaks. Only complete payloads are streamed, you do not need to handle partial JSON.

user_attachments (optional)​

Allows you to pass images or PDF documents as input to the AI model for analysis, processing, or context. The AI can analyze the attachment content and respond accordingly. Requires an S3 object storage to be configured at the workspace level.

Supported attachment types:

  • Images: analyzed as visual content across all providers that support vision input.
  • PDF documents: supported on Anthropic (sent as document content blocks), OpenAI (sent as input_file blocks), and Google AI (Gemini, natively supported via inline data). The MIME type is detected automatically from the file extension.

The field was previously named user_images; flows using the old name continue to work through backward-compatible deserialization.

max_iterations (number, optional)​

Maximum number of tool-calling iterations in a single run, 10 by default. If the agent is still calling tools at the last one, the step fails with the messages so far; enable continue on error to carry on.

enabled_tools (string[], optional)​

Names of the step's tools the agent can call in this run, all of them when unset. See Enabled tools.

max_completion_tokens (number)​

Controls the maximum number of tokens the AI can generate in its response. This helps manage costs and ensures responses stay within desired length limits.

temperature (number)​

Controls randomness in text generation:

  • 0.0 - Deterministic, focused responses
  • 2.0 - Maximum creativity and randomness

Standalone agents​

A saved agent has its own page to run it without a flow around it, as a chat while managed memory is on and as a form otherwise, and any flow can also link it. Create one from + New.

AI agent chat page

A new agent starts with managed memory On; turn it off for an agent only reused in flows.

Anyone who can read the agent, and whose role may run, can run it, operators included. By default it runs as the caller, who also needs access to its provider resource and to whatever its tools use. With "Run on behalf of" on in the agent's settings, runs from its page, the API and Slack use the permissions of whoever last saved it, as a flow's do. An admin or a member of wm_deployers can keep another user when deploying. Callers steer its tool calls, so turn it on only for an agent whose permissions you are willing to lend. A flow step linking the agent runs as the flow either way. Renaming the agent leaves its existing chats under the old path.

POST /api/w/<workspace>/jobs/run/agent/<path> runs a saved agent with a user_message, optional user_attachments, and previous_messages when the agent's memory is off, and a memory_id query parameter makes the run a turn of that conversation. A token scoped jobs:run:agents:<path> can run that one agent and follow the jobs it starts by id; the agent's webhook panel creates one. A full-code app can chat with a saved agent through an agent runnable. The agent's page builds an app for it: a chat app when the agent keeps managed memory, a form app otherwise. "Use in a flow" opens a new flow that deploys to the agent's path, with one step linking it (with unsaved changes, it deploys them first); an agent never deployed offers "Turn into a flow" instead, which moves its configuration into the step and discards its draft.

Answering in Slack​

On the Enterprise Edition, a saved agent can answer in the Slack channels it is shared in, from the Slack section of its settings. Anyone who can edit the deployed agent can share it in public channels, and a workspace admin can make it a channel's default agent. Channels apply at once and stay out of deploys and git sync.

"Who can ask in its channels" applies on deploy:

  • "Workspace members": askers are matched to workspace members by Slack email, and run the agent as they would in Windmill.
  • "Anyone": everyone in its channels, people without a Windmill account and Slack guests included, runs it as its run-on-behalf-of identity. Choosing it turns on "Run on behalf of", which then also applies to runs from its page and the API.

Reusable agents​

An agent's configuration can be saved as an ai_agent resource and shared between flows, instead of living inside one step.

"Save as reusable agent" on a step writes its model configuration and its tools to a resource at the path you pick, then links the step to it. Only static values are saved: the provider and model must be static, and a field set to an expression is left out.

A linked step asks only for the inputs the flow owns, such as user_message, user_attachments and the memory id; everything else comes from the agent, apart from the overrides below.

"Unlink" copies the agent, or its draft if it has one, into the step so it can diverge there, without changing the agent.

Each flow linking the agent can override its tools' inputs. Those overrides belong to the flow, not to the agent.

A linked step can also replace the agent's model and reasoning effort for its own runs, as a static value or an expression such as flow_input.model. Until an override is added, the step uses the saved value. An added model left empty keeps the saved one, but an added effort left empty, including an expression that resolves to nothing, sends no effort, which turns reasoning off on models that only reason when asked. Overriding the model with a different one sends no effort either, so override both to keep one. The provider resource stays the agent's.

Sharing works through the usual folder permissions on the resource. Deploying a linked flow to another workspace pulls the agent resource in as a dependency, and from there its provider resource and its tools.

Editing a saved agent​

Edits to a saved agent are autosaved as a draft on its resource, the linked steps stay linked, and the draft is listed on Compare & Deploy.

The editor can test the agent on its own, and Deploy publishes a new version that every flow linking the agent picks up.

A saved agent carries its own tools.

Agent tool drawer

The agent editor offers the inputs of a saved agent's tool as a static value or filled by the AI, since the agent lives outside any one flow: a flow that links the agent binds them to flow_input or to another step's result on its own step instead. An agent saved from a step keeps whatever bindings that step's tools had.

Testing a flow, or one of its steps, runs the draft of every saved agent it links, so a test exercises what the agent editor is showing rather than what is deployed. A deployed flow keeps running the deployed agent.

Deploying the flow lists the linked agents that have a draft, each deployable with the flow or kept as a draft, in which case the flow runs the deployed version. One listed as Read-only or Invalid config cannot be selected.

Resolution is live, not pinned​

A linked step resolves its agent when the step runs, which is what makes an edit propagate everywhere at once. It also means a run is not a snapshot: editing an agent while a flow is in flight affects the steps that have not started yet. Inline agents are unaffected, since their configuration lives in the flow value and is snapshotted with the run.

An agent's tools are also outside the flow's lockfile: republishing a script a tool points at does not re-lock the flows that link the agent, and a raw script tool resolves its dependencies when it runs.

Version history​

Editing an agent resource appends a version, so its prompt, model and tool set can be diffed and restored from the agent editor's History. Restoring writes the old value forward as a new version rather than rewinding. The version number is what eval runs are recorded against and compared by.

A version captures the resource and not what it references: a $var: or $res: reference is stored as the reference, so two identical versions can behave differently because the referenced variable changed underneath them. Past values are kept for up to 100 versions, and Clear past versions in the History drawer drops every version but the current one, which is worth doing after rotating a credential written inline into a resource.

Chat mode​

Flows with AI agents can be run in chat mode, which transforms the standard flow interface into a conversational chat UI. This mode is particularly useful for creating interactive AI applications where users can have ongoing conversations with the AI agent.

Enabling chat mode​

To enable chat mode for a flow:

  1. Navigate to the flow inputs configuration
  2. Toggle the "Chat mode" option on the top right
  3. When the flow is run, it will display as a chat interface instead of the standard form interface

Features​

  • Conversational interface: The flow runs in a chat-like UI where users can send messages and receive responses in a familiar messaging format
  • Multiple conversations: Users can maintain multiple different conversation threads within the same flow
  • Conversation history: Each conversation maintains its own history, allowing users to scroll back through previous messages
  • Persistent context: With managed memory on and an inherited memory id, the AI agent remembers earlier messages, and each conversation keeps its own history

For optimal chat mode experience, we recommend placing an AI agent step at the end of your flow with managed memory on and streaming left on (its default). This configuration:

  • Enables real-time response streaming for a more interactive chat experience
  • Maintains conversation context across multiple messages

A step linked to a reusable agent takes both settings from the agent.

Use cases​

Chat mode is ideal for:

  • Developing conversational workflows
  • Implementing AI assistants with memory
  • Building chatbots that can execute actions through tools

The chat is not limited to the Windmill UI: the @windmill-labs/chat-sdk package runs a chat mode flow from your own frontend or from a full-code app.

Output​

The AI Agent step returns an object with two keys:

output​

Contains the content of the final response from the AI agent:

  • Text output:
    • When no output schema is specified: Returns the last message content, which can be a string or an array containing strings.
    • When an output schema is specified: Returns the structured output conforming to the defined JSON schema.
  • Image output:
    • Returns the S3 object of the image

This is typically what you'll use in subsequent flow steps when you need the AI's final answer or result.

messages​

Only in text output mode, contains the complete conversation history, including:

  • User input messages
  • Assistant intermediate outputs
  • Tool calls made by the AI
  • Tool execution results

The messages array provides full visibility into the AI's reasoning process and tool usage, which can be useful for debugging, logging, or understanding how the AI reached its conclusion.

usage (optional)​

Contains token usage information for the AI agent run, accumulated across all iterations (including tool calls). Fields include input_tokens, output_tokens, total_tokens, and — for providers that support prompt caching — cache_read_input_tokens and cache_write_input_tokens.

{
"usage": {
"input_tokens": 1234,
"output_tokens": 567,
"total_tokens": 1801
}
}

Usage tracking is supported on Anthropic, AWS Bedrock, Google AI (Gemini), OpenAI (Responses API), Azure OpenAI / Chat Completions, and OpenRouter. If a provider does not support the stream_options.include_usage parameter, Windmill automatically retries the request without it.

wm_stream (optional)​

Only included in streaming mode, contains the complete stream.

Anthropic prompt caching​

For Anthropic models (including Vertex AI Anthropic), Windmill automatically applies cache_control: { "type": "ephemeral" } to the system prompt, the last custom tool definition, and the last content block of the last message on every request. This reduces token costs and latency on multi-turn conversations and iterative tool use, since Anthropic can reuse the cached prefix across calls. Cache hits are reflected in the cache_read_input_tokens and cache_write_input_tokens fields of the usage output. No configuration is required: caching is applied transparently whenever an Anthropic-based provider is used.

A Google Cloud project can have explicit prompt caching turned off, in which case Vertex AI rejects any request carrying cache breakpoints. Set the DISABLE_ANTHROPIC_PROMPT_CACHING environment variable to true on workers to stop sending them. It applies to every Anthropic-based resource on the instance, so an instance that sets it also gives up caching on its direct Anthropic and Azure AI Foundry resources.

OpenAI prompt caching​

For OpenAI and Azure OpenAI, Windmill sends a prompt_cache_key on every Responses API request. From gpt-5.6 on, OpenAI needs that key to reliably match a cached prefix, and those models bill cache writes on top of discounted reads, so a cache miss costs more than a lost discount.

The key identifies the step rather than the run: it is derived from the workspace, the runnable path and the flow step id, so every run of the same AI agent step, and every agent loop iteration within a run, routes to the same cache. Cached input tokens are reported in cache_read_input_tokens in the usage output. The AI chat sends its own key, derived from the workspace, provider and model.

No configuration is required. If an OpenAI-compatible gateway rejects the field, Windmill retries the request once without it and stops sending it for the rest of the step.

Debugging​

AI Agent Debugging

Flow-level visualization​

Tool calls are displayed directly on the flow graph as separate nodes connected to the AI Agent step. You can click on these tool call nodes to view detailed execution information, including inputs, outputs, and execution logs.

Detailed logging​

In the logging panel of the AI Agent step, you can see the comprehensive logging:

  • All input parameters passed to the AI agent
  • Tool calls made by the AI, including which tools were selected and their inputs
  • Individual tool execution results with full job details
  • The final AI response and complete message history

This detailed view allows you to trace through the AI's decision-making process and verify that tools are being called correctly with the expected inputs and outputs.