New Tool Radar

AI Agents & Automation

How to Add a Pipelines Function Filter to an Open WebUI Agent Chat

Add a Pipelines function filter in Open WebUI so an agent chat can transform messages or call external logic before the model replies.

Schematic diagram with three steps: Run the Pipelines server, Add the function URL, then Test the filter.

Open WebUI Pipelines is a separate server that adds functions to a chat: filters that transform messages, tools the model can call, and valves for settings. A filter is the simplest function to start with, because it runs on every message and its effect is visible at once.

Before you start

You need Open WebUI running and the Pipelines server running beside it, with the Pipelines URL added in the Open WebUI admin panel. Decide what the filter should do in one sentence before you write it.

Connect the Pipelines server and add the function

Run the Pipelines image and add its URL in the Open WebUI admin panel, so the pipeline appears in the function list. Create a filter function with one job, for example adding a fixed instruction to every user message, and enable it for the chat you want to test.

Test the filter with a message that shows its effect

Send a chat message that the filter should change, and check the reply reflects the filtered message. If nothing changes, check the Pipelines URL in the admin panel and whether the function is enabled for that chat.

Worked example: A filter for a fictional support chat

Maple Support is a fictional support desk. Its Open WebUI chat adds a short instruction to every message through a filter. The table shows the effect.

Message sent Filter adds Model sees
How do I return a helmet? Answer in two sentences. How do I return a helmet? Answer in two sentences.
What is the delivery time? Answer in two sentences. What is the delivery time? Answer in two sentences.

Expected result (UNTESTED): both replies come back in two sentences, because the filter added the instruction to each message. We checked the Open WebUI Pipelines documentation summary, which describes the Pipelines server and the admin URL step, but we did not run the filter on this machine.

Limits

A filter runs on every message in the chat, so a bad filter breaks every reply, not just one. Keep filters to one job, test them in a private chat first, and set access control on the Pipelines server so only the admin can add functions.

Sources

See all