Skip to content

Desktop Node

The Desktop node is a tool that can automatically operate apps and windows on your PC. It can automate tasks performed outside the browser, such as typing into a notepad or text editor, launching applications, and file operations.

This tutorial introduces a “workflow that types text into Notepad.”

First, create a new workflow in Studio.

Add a Desktop node and copy and paste the following content into the node’s prompt:

1. Open Notepad (TextEdit on Mac)
2. Type "Hello Samurai"
3. Confirm the input is visible, then finish

Desktop node prompt setting

Now you’re ready. Click the debug button to run the workflow.

When executed, Notepad will actually launch on your PC and the specified text will be typed automatically.

Next, let’s customize the workflow. This time, we’ll combine it with an LLM node so that the content generated by the AI is written directly into Notepad.

Add a new LLM node before the Desktop node and configure the following prompt:

Please output 3 TODOs to tackle today as a bulleted list.

Next, change the Desktop node’s prompt as follows:

1. Open Notepad (TextEdit on Mac)
2. Type the following content as is
{{#llm-1.response#}}

After making the changes, click “Save” and run it again. The TODO list generated by the LLM node will be typed directly into Notepad.

By combining nodes like this, you can take the AI’s output beyond the browser and reflect it directly into any app you like on your PC.

  • The Desktop node is only available in the desktop version of SamuraiAI. It is not available in the web version.
  • Supported operating systems are macOS and Windows. Linux is not supported.
  • The target application must already be running or available to launch.
  • Whole-PC Operations: You can operate any application on your PC, not just inside the browser.
  • Runs Locally: All operations are performed on your PC, and the content of operations is never sent externally.
  • Model Selection: You can freely switch the AI model used, depending on the task.

Choosing Between Browser and Desktop Nodes

Section titled “Choosing Between Browser and Desktop Nodes”
What you want to doRecommended node
Operate a website / collect information from itBrowser node
Operate apps on your PC (Notepad, Excel, custom business apps, etc.)Desktop node
Read or write filesFilesystem node
OperationSupportDetails
Launch / quit applications✅️
Window operations (maximize, move, etc.)✅️
Text input✅️
Click / keyboard input✅️
Screen information retrieval✅️Uses accessibility information
Screens made of images / video onlyOperation accuracy decreases when accessibility information is unavailable
  • Refraining from using the mouse and keyboard during operation will result in more stable behavior.
  • We recommend backing up important files and data before running operations that handle them.

Last updated: