ComfyUI Node

Trello Prompt Loader

Headless prompt loading from a Trello export

By marcoc2·Created 2 years ago·Updated 5 months ago· 1
Trello Prompt Loader
    • prompt
    • category
    • total
    json_path/tmp/ComfyUI/custom_nodes/ComfyUI-AnotherUtils/reference/jggNQEHi - prompts.json
    list_filterAll
    index0
    randomizefalse
    seed0

    The Trello Browser node is for humans clicking through cards. Trello Prompt Loader is the same idea without the human - an index-based, headless iterator that steps through a Trello board export one card at a time and hands you the prompt. If you're running automated benchmarking - queue up a batch, generate one image per card, grade them - this is the node that drives the loop. It's the "boring automation" half of the pack's Trello suite, and it's refreshingly simple.

    Like its browser sibling, it needs no Trello API and no key. You feed it a JSON export of a board (Trello → Menu → More → Print and Export → Export JSON) and it parses the file locally. The card's name is used as the prompt - so if you structure your board as "one card = one prompt to test," the setup is zero-effort. The default json_path even points at a sample reference file shipped with the pack, so it works out of the box before you point it anywhere real.

    How it works

    On each execution the node parses the JSON, filters cards by your chosen list (or all of them), and picks one. Two selection modes:

    • Indexed (default): index walks the filtered list - index % total, so it wraps around safely instead of erroring past the end.
    • Randomized: flip randomize and it picks a card using random.seed(seed), which makes the "randomness" reproducible. Same seed, same card, every run - handy when you want a stable random subset across repeated runs.

    It also implements IS_CHANGED, so ComfyUI re-executes the node when the index or seed changes, which is exactly what you want in an automated sweep. And because the filtered list is recomputed each run, adding a card to your JSON mid-sweep just works.

    The inputs that matter

    • json_path - path to the Trello board export.
    • list_filter - "All" or a specific list from the board (populated when the node loads).
    • index (0–10000) - which card to fetch.
    • randomize (boolean) - switch from index mode to seeded random mode.
    • seed - determinism for randomize mode.

    Three outputs: prompt (the card name), category (the list name), and total (how many cards the filter matched - useful for setting up batch ranges or just confirming your filter worked).

    Install

    Manager → search AnotherUtils, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/marcoc2/ComfyUI-AnotherUtils.git
    

    Restart. No keys, no requirements, no models.

    Common issues

    The usual failure is the path: a bad path returns the string "Error: JSON file not found or invalid" as the prompt, with "None" as category and total 0 - so if you're feeding prompts into generation and getting garbage, check that you aren't silently passing that error string downstream. An empty filter returns "No prompts found in this category". Both are strings, not exceptions, which makes them easy to miss in an automated queue. And since prompts come from card names, don't expect card descriptions to show up here - that's a data-model choice, not a bug.

    Categorytext/prompt

    Inputs (5)

    NameTypeDefaultDescription
    json_pathSTRING/tmp/ComfyUI/custom_nodes/ComfyUI-AnotherUtils/reference/jggNQEHi - prompts.json
    list_filterCOMBOAll2 options: All, No lists found (check path)
    indexINT00–10000
    randomizeBOOLEANfalse
    seedINT00–18446744073709550000

    Outputs (3)

    NameTypeDescription
    promptSTRING
    categorySTRING
    totalINT