Nodes/ComfyUI_AnimeCharacterSelect/Action Prompt (Editable)
ComfyUI Node

Action Prompt (Editable)

655 Anime Actions in a Dropdown — but the Text Box Does the Real Work

By Icyman86·Created about a year ago·Updated 3 days ago· 5
Action Prompt (Editable)
    • action_prompt
    action_selector
    action_prompt

    The honest pitch

    Ever stared at a blank prompt box trying to remember the exact Danbooru tag for "girl on top"? That's the problem this node exists to solve. ActionPromptNode is the action half of ComfyUI_AnimeCharacterSelect, a port of the WAI-NSFW-illustrious-SDXL "Dedicated Character Selector" extension that used to live in stable-diffusion-webui. The pack's whole idea: pick a character, pick an action, and the comma-separated tag soup assembles itself instead of you typing it from memory.

    Here's the catch you need to know before you build anything around it: despite shipping a 655-option dropdown, this node is effectively a text box. The selector is mostly a catalog, not a trigger.

    How it actually works

    At import time the node loads action.json (655 entries - yes, adult content included; browse accordingly) and builds the action_selector dropdown from its keys. Each entry maps a label to a ready-made tag string, e.g. "fellatio": "1girl,1boy,fellatio". Straightforward enough.

    But read the set_prompt function and the design reveals itself: it returns only the action_prompt field, no matter what you picked in the dropdown. The selector's value never flows into the output. There's an accompanying JS file meant to copy the selected action's tags into the text box on change, but it ships with a hard-coded test map of exactly two entries ("Cheering", "Sleeping") and a comment admitting the full map should be injected from Python via extra_data - which it isn't. So in the code as shipped, selecting most of those 653 actions fills nothing. And "random", the default, maps to an empty string in the data anyway.

    The inputs and the output

    Only two inputs matter:

    • action_selector - the 655-entry dropdown. Treat it as a reference list of what's available; in the shipped code changing it doesn't change your output.
    • action_prompt - multiline STRING. This is the real input. Type or paste your action tags here; it's what actually gets output.

    The single output, action_prompt (STRING), is meant to feed CombinePromptStringsNode's action_prompt input, or you can wire it straight into a CLIPTextEncode positive if you're building a minimal graph.

    Installing

    Easiest is ComfyUI Manager - search for AnimeCharacterSelect or the pack title. Or the manual way:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Icyman86/ComfyUI_AnimeCharacterSelect
    

    Then restart ComfyUI. The good news: there's no requirements.txt and no model downloads - pure Python stdlib reading JSON files. One trap: the README's install instructions tell you to "go to the settings tab of stable-diffusion-webui." That's a leftover from the original A1111 extension - ignore it entirely, this is a ComfyUI node.

    Common issues

    • Empty output. The dropdown doesn't auto-fill (see above), so leave the box blank and you output nothing. Type your tags.
    • Tags tuned for the wrong model. These comma-tag prompts are built for the WAI / Illustrious / NoobAI SDXL family, which still wants Danbooru tags. Feed them to Flux and they do close to nothing.
    • "No actions found" in the dropdown - the code's fallback when action.json fails to load. Reinstall if you see it.
    • The author's own advice in the README: if new features misbehave, delete and reinstall rather than patching.

    That last one is worth heeding. This is a small, lightly-maintained port of an NSFW-focused tool - it works, but it expects you to meet it halfway.

    CategoryPrompting/Anime

    Inputs (2)

    NameTypeDefaultDescription
    action_selectorCOMBO655 options: random, sex, anal sex, doggy style, fellatio, foot job, +649
    action_promptSTRING

    Outputs (1)

    NameTypeDescription
    action_promptSTRING