Skip to main content
A custom action is one of your ComfyUI workflows packaged as a ComfyArt tool, with its own name, inputs, settings and results. ComfyArt puts it where it fits: in the toolbar of the selected image, video, audio or 3D model, or as a model in the image, video or audio generator. The agent can list, run and create actions too. Custom workflows swap the workflow behind a built-in feature. Custom actions add new features.

Example: a film look for your photos

This example turns the film simulation of the Spektrafilm node pack into a toolbar button: select a photo, pick a film stock and a print paper, and get the photo back as a film print. Install the node pack in ComfyUI first.

1. Export the workflow from ComfyUI

Open example_workflows/photo_film_look.json from the node pack in ComfyUI (File → Open). It loads a picture, simulates the film and shows the print in a preview node. Choose File → Export (API) in the ComfyUI menu and save the file.
The film look workflow in ComfyUI with the menu open at File, Export (API)

2. Create the action

In ComfyArt open the project menu (top-left icon) → Custom actions → New action and pick the exported file. ComfyArt has already ticked the Load Image as a required input and the preview node as the output, and the line under the description says where the action will show up: Toolbar of selected images.
  1. Name it Film look and add a description.
  2. Rename the image input to Photo.
  3. Under Spektrafilm Film Simulation, tick film_stock, print_paper and exposure_compensation_ev, and rename them to Film stock, Print paper and Exposure.
New action dialog: name, description, the Photo input marked Required and the three settings
  1. Scroll down to check the output and give it a name, here Film print. Then click Save.
The ticked film settings and the Spektrafilm Preview output named Film print

3. Put it on the toolbar

Select a photo on the canvas. Film look is in the Custom actions menu under More (…) in the image toolbar. To keep it one click away, open More → Customize Toolbar and click Film look.
Image toolbar of the selected photo with the Film look button

4. Run it

Click Film look. The panel shows the description and the three settings. Pick a film stock and a print paper, set the exposure and click Generate.
The Film look panel with kodak_vision3_250d, kodak_2383 and exposure 0.5 next to the photo
The film print appears next to the photo, named after the photo and the action.
The original photo and the film print side by side on the canvas

Make an action

  1. In ComfyUI open the workflow and choose File → Export (API).
  2. In ComfyArt open the project menu (top-left icon) → Custom actions → New action and pick the exported file.
  3. Name the action and add a one-sentence description.
  4. Tick what the user fills in and what comes out:
    • Inputs: every widget of the workflow is listed by node. Tick a Load Image, Load Video, Load Audio or 3D file widget to make it a media input, a text widget to make it a text box, a number, switch or list to make it a setting. Settings that belong to one choice of a node are listed too: in Resize Image/Mask set to “scale by multiplier”, the multiplier shows up as resize_type.multiplier. Rename each one, reorder them with the arrows, and set its flags: Required for media, Mask for an image painted over the source image, Main prompt for the prompt box, Random each run for a seed.
    • Outputs: tick the output nodes whose results go on the canvas. Any output node works: Save Image and the other save nodes, Preview Image, and the preview or output nodes of custom node packs. Image, video, audio, text and 3D results are supported, one of each; Whole batch places every image of an image output.
  5. Problems show under the panel. Fix them and Save.
When you open the file, ComfyArt ticks the media loaders (Load Image, Load Video, Load Audio) as required inputs, and a workflow with a single output node gets that output ticked too. Titles with the custom workflow markers (@image, @prompt, @size, @save…) decide instead: the marked widgets and outputs are ticked, so a workflow already prepared for custom workflows needs only a name.

Where it shows up

The required media inputs decide it: In the image toolbar each action can be pinned under More → Customize Toolbar; the others are in the Custom actions menu. Video, audio and 3D toolbars have a Custom actions menu where the pin button puts an action on the bar.

Run an action

Select an image (or video, audio, 3D model) and click the action. An action with nothing else to fill runs at once. Otherwise a panel opens with:
  • the prompt box, when the action has a main prompt;
  • one slot per extra media input: upload a file, Choose from Assets or Pick on canvas and click a shape;
  • a brush for a mask input: paint the area on the image;
  • the settings form.
Results are placed next to the source, all outputs of one run side by side, and they stay in the project like any other result, also when they come from a preview node. The panel remembers the last values for each action. Results keep their generation info, so Regenerate and Remix work for actions with a prompt. Model actions appear in the generator’s model list. Pick one and the generator shows its prompt, media slots and settings.

Manage actions

Custom actions in the project menu lists every action with where it shows up:
  • Edit opens the same panel. Replace workflow loads a new export of the workflow and keeps the bindings it can match by node type and title; inputs it cannot match are listed so you can tick them again.
  • Export downloads the action as one JSON file. Import adds such a file.
  • Delete removes the action. Results it made stay on the canvas.
Actions are saved in comfyart/actions/ in your ComfyUI user folder, one JSON file per action.

Let an agent do it

Give the ComfyArt agent, or any agent connected over MCP, the API-format workflow and say what the action should do. It reads the rules with the custom_action tool, inspects the workflow, picks the inputs and outputs and saves the action. list_actions and run_action run actions on canvas shapes. The rules are also a built-in skill, Make a custom action.