All templates
Template·Text & Data

Keep Only the Long Lines

Fan a list into a stream, drop the items that fail a predicate, then gather what survived back into a list. Two nodes carry the lesson: Collection is the fan-out — a list fed straight into a stream operator arrives as one item — and Collect is the reverse, without which an output on a stream shows only the last value that passed.

The workflow

Workflow Editor
List
Collection
Items
Filter Code
Input Item
Collect
Input Item
Count
Input Item
Output
Output

Nodes in this workflow

7 nodes · 6 types
  • Output
    nodetool.output.Output
    ×2
  • Collect
    nodetool.control.Collect
  • Collection
    nodetool.control.Collection
  • Count
    nodetool.control.Count
  • Filter Code
    nodetool.control.FilterCode
  • List
    nodetool.constant.List

How to run it

  1. 01

    Download NodeTool Studio

    Install the free desktop app for macOS, Windows, or Linux. It runs on your own machine, no account required to start.

  2. 02

    Open the Keep Only the Long Lines template

    Browse the built-in template library inside Studio and open this workflow onto the canvas. Every node is already wired up.

  3. 03

    Add your keys

    Connect any model providers this workflow calls with your own API keys, or point it at local models.

  4. 04

    Run and remix

    Hit Run to execute the graph and watch results stream in. Swap models, edit prompts, or rewire nodes to make it yours.

Run Keep Only the Long Lines on your machine

Free, open source, and yours to run. Download Studio, open the template, and run it with your own keys.