Nodes/ComfyUI-Creepy_nodes/Keyword Extractor (Creepybits)
ComfyUI Node

Keyword Extractor (Creepybits)

Pull the important keywords out of any text

By Creepybits·Created about a year ago·Updated 2 months ago· 32
Keyword Extractor (Creepybits)
    • text
    text_2

    Keyword Extractor is one of the pack's "Creative Council" persona nodes, and like the rest of that family it's a prompt loader wearing a utility's clothes. You type or connect some text into its text_2 box, and out the text output comes the same text - but now with a block of expert instructions prepended, telling a downstream LLM to extract the most important keywords from it.

    The actual extraction happens in your Gemini node. This node's job is purely to hand the LLM the right instructions so the output is clean keyword lists instead of an essay. Think of it as a prompt template that never lets you forget the "extract, don't summarize" part.

    How it works

    At startup the node reads keywords.txt from the pack's assets/prompts folder - a multi-paragraph brief that instructs the model to analyze content and pull out only the specified data points, in the requested format. Every run just concatenates that fixed text with your text_2 input. One string out.

    Because it's a text file, you can edit the brief to change the persona entirely. Want five keywords instead of ten? A different output format? A stricter extraction rule? Open keywords.txt and rewrite the instructions. That file-based design is the entire reason this node exists instead of you just typing instructions into your Gemini node - it keeps the long, reusable instructions out of your graph.

    The wiring that makes it work

    The intended flow, per the pack docs: something produces text (an image caption, a raw idea, an analysis), it goes through Keyword Extractor, and the text output feeds the system_prompt of the Gemini API node. Add the image itself to Gemini's image input and you've got an image-to-keywords pipeline in three nodes.

    One thing to internalize: this node extracts nothing by itself. If you connect its output straight to a KSampler, you've just prepended a lecture about keyword extraction to your prompt. The "AI" in the loop is entirely downstream - no Gemini node, no extraction.

    Installing it

    Part of ComfyUI-Creepy_nodes:

    • ComfyUI Manager: search "Creepy_nodes" and install.
    • Manual:
      cd ComfyUI/custom_nodes
      git clone https://github.com/Creepybits/ComfyUI-Creepy_nodes.git
      

    Restart ComfyUI. No dependencies beyond what the pack already needs for its Gemini node.

    Troubleshooting

    The failure modes are the same as the other persona nodes. If the output starts with ERROR: Prompt file not found., the keywords.txt file has been moved or renamed inside assets/prompts - restore it from the repo. And the usual trap: an empty text_2 still produces output (the instructions alone), which then gets sent to Gemini with no actual content to extract from. If your results are generic, check that you actually connected your source text to text_2.

    CategoryCreepybits/Prompt

    Inputs (1)

    NameTypeDefaultDescription
    text_2STRING

    Outputs (1)

    NameTypeDescription
    textSTRING