104 lines
5.8 KiB
Markdown
104 lines
5.8 KiB
Markdown
# Workflow Note
|
||
|
||
The card that makes a shared workflow self-explanatory: a big title, a
|
||
Markdown how-to, the models it needs with **Download** buttons and the folder
|
||
each one goes in, the node packs it depends on, and the author's links. Every
|
||
model file and node pack on the card is checked against **this** install and
|
||
marked installed or missing, so whoever opens the workflow sees exactly what
|
||
is left to set up before the first run.
|
||
|
||
Nothing runs: the node has no outputs, so ComfyUI never executes it.
|
||
|
||
## Editing
|
||
|
||
- Click the **✎** in the card's corner (or right-click the node → *Edit
|
||
Workflow Note*). The dialog has a form; **JSON** switches to the raw card
|
||
text for copy/paste between workflows. `Ctrl+Enter` saves, `Esc` cancels
|
||
(it asks first if you changed anything).
|
||
- **Title / Subtitle / Author** make the banner. **Layout → Banner** shows
|
||
only that top block (the title, plus the subtitle and author if you filled
|
||
them in), so the same node doubles as a label for a stage or column.
|
||
- **Layout → Info tile** puts a single button on the canvas. Click the tile to read the full note, including models and links. A book marks a guide and a download arrow marks a model list. Click its pencil to edit, or press **Edit** inside the opened note. Drag the visible bottom-right grip to resize the tile without moving it. Focus the grip and use arrow keys for keyboard resizing; **Shift** makes smaller changes.
|
||
- **Accent color** tints the banner bar, dots and buttons; empty keeps the
|
||
pack teal. It takes a six-digit hex such as `#00b4aa`.
|
||
- **How-to** is Markdown-lite: `#`/`##`/`###` headings, `**bold**`,
|
||
`*italic*`, `` `code` ``, `[links](https://…)`, `-` and `1.` lists, `---`
|
||
rules, fenced code. Only `http(s)` links become clickable.
|
||
|
||
## Formatting a how-to
|
||
|
||
Select a phrase in the How-to field and click **Teal**, **Green**, **Amber** or **Glow**. Click **Table** to insert an editable Markdown table. Open **Preview formatting** while you write. Use headings to break up steps and a pipe table for settings or file locations. Keep each row the same length. Use `\|` for a literal pipe inside a cell.
|
||
|
||
```markdown
|
||
## Choose a size
|
||
|
||
| Size | When to use it |
|
||
| --- | --- |
|
||
| 480 × 864 | [teal]First run[/teal] |
|
||
| 576 × 1024 | A larger portrait |
|
||
|
||
[green]Ready[/green] means the model was found.
|
||
[amber]Missing[/amber] means you still need the file.
|
||
```
|
||
|
||
For a short highlight, write `[glow]Preview the result[/glow]`. The glow is static. These four tags are AusBoss additions to Markdown. They style the enclosed plain text. Headings, lists, table cells and paragraphs can all contain them. Fenced code displays the original characters.
|
||
|
||
## Models
|
||
|
||
To give downloads their own button, choose **Layout → Info tile**, set the title to **Download models**, and add files under **Models**. To keep them with your instructions, add those same rows to the **How to use** note. Switching an existing card to an info tile keeps its model rows and links.
|
||
|
||
[Download the Krea 2 model tile example](https://raw.githubusercontent.com/ausboss/ComfyUI-AusBoss/main/js/docs/examples/model-download-tile.json) and open it as a workflow. Copy the tile into your graph and edit its rows.
|
||
|
||
Each row is a file, the model folder it belongs in, an optional size, a
|
||
download URL, and an optional note that shows in grey under the file name.
|
||
Rows group under a `📂 ComfyUI/models/<folder>` heading so the
|
||
card reads like the install tree — the "where do I put this" question is
|
||
answered on the same line as the button.
|
||
|
||
- The dot beside a row is the check: **teal** found, **red** missing, **grey**
|
||
not checked (no folder set, or this install has no such folder).
|
||
- A found file swaps its Download button for an **✓ installed** pill; hovering
|
||
the pill shows where it was found. A file that lives in a subfolder still
|
||
counts. When a loader in the workflow still asks for the bare file name,
|
||
which ComfyUI cannot find there (it marks that loader red), the row says
|
||
where the file is instead (**in LTXV 2.3/**) and **Use it** points those
|
||
loaders at the copy it found. The check only asks the ComfyUI server for its
|
||
own model lists.
|
||
- **↻ check files** re-runs the check after you move files in. ComfyUI's own
|
||
**R** refresh triggers it as well.
|
||
- Folder `input` is for a sample image or clip shipped with the workflow: it
|
||
is looked for in `ComfyUI/input`.
|
||
- Clicking a file name copies it — handy for searching a loader's picker.
|
||
|
||
The Download button is a plain link to the file's page or direct URL in a new
|
||
tab; the browser saves it wherever downloads go, and the folder line says
|
||
where to move it.
|
||
|
||
## Node packs
|
||
|
||
A row names a pack, links to it, and names one **probe node class** from that
|
||
pack (any node it registers, e.g. `AUSBOSS_NODES_LoraLoader`). If that class
|
||
is registered on this install the pack shows **✓ installed**; otherwise it is
|
||
marked missing with the link to get it. **Detect from this workflow** in the
|
||
editor adds a row for each custom pack the workflow uses, subgraphs included.
|
||
It never removes a row, so check the list after big changes.
|
||
|
||
## Links
|
||
|
||
Chips for your pages — GitHub, Civitai, YouTube, Discord — whatever you want
|
||
the person who downloaded the workflow to find.
|
||
|
||
## Notes and limitations
|
||
|
||
- The card grows to show all of its text, and the node can't be dragged
|
||
shorter than that. It never shrinks by itself, so a note you made taller
|
||
keeps its space.
|
||
- The card is stored as JSON in the node's one `note` widget, so save/load,
|
||
undo, copy/paste and the API format all carry it. A card pasted from
|
||
another workflow arrives intact.
|
||
- Every string on a downloaded card is someone else's text: it is rendered as
|
||
text, never as HTML, and only `http(s)` URLs become buttons or links.
|
||
- The file check is a lookup against ComfyUI's model lists, not a hash: a
|
||
same-named file of a different version passes.
|
||
- Sizes are what the author typed; the node does not fetch them.
|