Overview
Run Claude's computer use tool in an isolated container and have it build a large n8n workflow node by node in the n8n editor from your written spec, with no real credentials, then test every branch yourself before publishing.
Problem or Objective
- Which agents run multi-step workflows across your apps?
- Which agents can operate a web browser for you?
More in Workflow Automation
AI Agents and Models
Tools and Integrations
- Tools
- Claude API · n8n · Docker
- Prerequisites
- A Claude API key, Docker, the computer use reference implementation and a local n8n instance with test credentials only.
How It Works
Write a spec for the workflow first: the trigger, every node in order, the branches and their conditions, and the test input for each branch. Start a local n8n instance with Docker, using only test accounts and no production credentials; n8n's page gives http://localhost:5678 for the machine running it. Set up the computer use reference implementation, which runs a virtual desktop inside a Docker container, and limit its internet access to your n8n address. Check that the browser inside that container can open your n8n editor and which address it needs, since no cited page covers networking between the two containers. Sign in to n8n in that browser yourself before handing over, so Claude never sees the login. Give Claude the spec and ask it to build the workflow in the n8n editor one section at a time, taking a screenshot after each step and checking that the node and its settings match the spec before moving on. After each section, look at the canvas yourself and correct anything wrong. When the workflow is complete, run each branch with its test input and compare the output with what the spec expects. Then add the real credentials yourself, review the whole workflow once more, and save and publish it in n8n only when every branch passes.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude computer use, n8n.
- Connect the toolsConnect the tools this workflow relies on: Claude API, n8n, Docker.
- Check the prerequisitesA Claude API key, Docker, the computer use reference implementation and a local n8n instance with test credentials only.
- Gather your detailsCollect what the prompt asks for: Address of n8n as seen from the computer use container, Workflow name, The written spec, Test credentials already set up in n8n.
- Run the starter promptPaste the starter prompt below into Claude computer use and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at platform.claude.com before you rely on it.
Practical Starter Prompt: Build my n8n workflow from this spec
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Open the n8n editor at [Address of n8n as seen from the computer use container], where I have already signed in, and create a new workflow named [Workflow name]. Build it from this spec, one section at a time: [The written spec]. Use only the test credentials named [Test credentials already set up in n8n]; never type or look for other logins. After each step, take a screenshot and state in one sentence whether the node and its settings match the spec; if not, fix it before moving on. After each section, stop so I can review the canvas and approve the next section. Do not activate or publish the workflow.The prompt asks Claude to stop after each section so you can check the canvas; if it carries on, stop the agent loop and review before letting it continue. Test every branch with test input, then add real credentials and publish the workflow yourself.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Anthropic's documentation says the computer use tool gives Claude screenshots plus mouse and keyboard control of a desktop, that the reference implementation runs inside a Docker container, and that Claude sometimes acts as if its actions succeeded without checking, so it suggests prompting for a screenshot check after each step. n8n's documentation shows how to run n8n with Docker at localhost. No cited page covers Claude building n8n workflows in particular, or how many nodes it can place correctly in one session.
Limitations and Considerations
Anthropic advises using a dedicated virtual machine or container with minimal privileges, keeping login details away from the model, limiting internet access to an allowlist of domains, and having a human confirm decisions with real-world consequences. It also warns that computer use in applications that require login raises the risk from prompt injection, so sign in to a test n8n account yourself. Add real credentials and publish the workflow yourself, after testing every branch. Computer use runs through the Claude API, so each screenshot and step uses tokens; check the cost on a small section first. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Computer use tool - Claude Platform Docs (opens in a new tab)
Project documentation · platform.claude.com · Undated · Source checked 25 Nov 2026, 12:00 UTC
What this source supports
- Claude can interact with computer environments through the computer use tool, which provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
- For security and isolation, the reference implementation runs all of this inside a Docker container with appropriate port mappings for viewing and interacting with the environment.
- Claude sometimes acts as if its actions succeeded without explicitly checking their results.
- Using a dedicated virtual machine or container with minimal privileges to prevent direct system attacks or accidents.
- Asking a human to confirm decisions that might result in meaningful real-world consequences and any tasks requiring affirmative consent, such as accepting cookies, completing financial transactions, or agreeing to terms of service.
- Install with Docker | Deploy | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- Once running, you can access n8n by opening: http://localhost:5678
- Mounts the n8n_data volume to the /home/node/.n8n directory to persist your data across container restarts.

