Flows

Build Your Own AI Pipeline

5 min read
A flow open in the visual editor, its steps connected as nodes from the trigger to the saved file

Thinking in pipelines

Most AI writing tools give you a single prompt box. You type something, the model responds, and that is the entire interaction. It works for one-off tasks, but falls apart when you need a multi-step process where each stage builds on the previous one.

A pipeline is different. It is a sequence of operations where data flows from one step to the next, each step transforming or enriching the content before passing it along. Developers have used pipelines for decades in data processing. Ritemark Flows brings the same idea to writing, without requiring you to write code.

Anatomy of a flow

Every flow in Ritemark consists of three elements: a trigger, a set of processing nodes, and one or more outputs.

The trigger determines when the flow runs. You can run it manually with a button click, or put it on a schedule (daily, on weekdays, weekly, hourly or every few minutes) that runs while its folder is open in Ritemark. Manual runs are good for on-demand tasks. Scheduled runs are useful for workflows that should repeat on their own, such as a daily summary. The trigger also holds the flow's inputs, such as a topic or a file you pick when the flow runs.

Processing nodes are where the work happens. Each node performs a single operation. An LLM Prompt node sends content to an AI model with your instructions and returns the response. A Claude Code node runs a code-level task, like reformatting a document structure or extracting metadata from frontmatter. An Image Generation node creates visuals from text descriptions. A Codex node does the same kind of agent task with Codex. The Claude Code and Codex nodes work in your actual folder, so they can read and edit files as part of the task.

Outputs determine where results go. A Save File node writes the result to your folder as Markdown, CSV or an image, and the Execution Panel shows each node's output while the flow runs.

Connecting nodes

The visual editor uses a canvas where each node appears as a card. Every card has input ports on the left and output ports on the right. You connect them by dragging a line from an output port to an input port.

When a flow runs, data moves through these connections in order. The first node produces output. That output becomes the input for the next node. If a node has multiple inputs, it waits until all of them have data before executing.

You can branch flows too. A single node's output can feed into two different paths. This is useful when you want the same source content to produce two different outputs, say a summary for social media and a full article for your blog.

Node types in detail

The LLM Prompt node is the most common. You write a system prompt and a user prompt, with placeholders for incoming data. When the node executes, it fills the placeholders with the actual content from the previous node and sends the complete prompt to your chosen model. You can pick an OpenAI or Google Gemini model, using your own API key. For Claude, use the Claude Code node.

The Claude Code node is more specialized. It runs agentic coding tasks, things like "parse this Markdown file and extract all H2 headings into a JSON list" or "rewrite this file to match the formatting conventions in STYLE.md." It operates on your actual project files, so it can do structural work that a simple prompt cannot.

The Save File node handles the mechanical part. It writes a result to a path in your folder, as Markdown, CSV or an image. To bring a file in, add a file input to the Trigger and pick the file when the flow runs; the LLM Prompt node reads its text. Together they are the glue that connects your AI processing to your actual files.

Building a real pipeline

Here is a concrete example. You want to take a rough draft, improve its structure, check it for tone consistency, and produce a final version.

Node one, the Trigger, takes the draft file from your project. Node two sends it to GPT or Gemini with instructions to reorganize the content into clearer sections with better transitions. Node three takes the restructured version and sends it to a different prompt that checks for tone, flagging any sections that feel too formal or too casual. Node four writes the polished result to a new file.

Four nodes, four connections, one click to run. The entire pipeline takes about thirty seconds to execute, depending on document length and model response time.

Local and private

Every flow runs on your machine. The visual editor, the execution engine, and the file operations all happen locally. LLM nodes make API calls to whichever provider you have configured, but Ritemark itself never sees your content or your prompts. There is no Ritemark account and no cloud sync, and the anonymous usage analytics never includes your prompts or file contents.

Your flows are saved as JSON files in your project, so they live alongside your content in version control. Share them with teammates by committing them to the repo.

Download Ritemark and build your first AI pipeline in minutes.

Start writing with Ritemark.

Free and open source.

flowsai-pipelinellmautomation