v0.1.1 open source · MIT · Python 3.10+

Automations as code.
Tiny enough for a Raspberry Pi.

flowpilot is a lightweight, self-hosted workflow engine. Describe triggers and steps in readable YAML, keep them in Git, and get retries, persistent state, a live dashboard and first-class Telegram support — in a single Python process.

$pipx install "git+https://github.com/mrzroot/flowpilot.git"
flowpilot dashboard overview
In one sentenceدر یک جمله

flowpilot is a small robot helper you describe in a text file: “when this happens, do these steps”, for example message me on Telegram when my site goes down. It runs on a cheap server or a Raspberry Pi.

flowpilot یک دستیار خودکار کوچک است که کارش را در یک فایل متنی می‌نویسید: «وقتی این اتفاق افتاد، این کارها را بکن»؛ مثلاً وقتی سایتم از دسترس خارج شد در تلگرام خبرم کن. روی یک سرور ارزان یا رزبری‌پای اجرا می‌شود.

Features

Everything a small automation server needs

No Redis, no Postgres, no Node, no build step. Just Python, SQLite and your YAML files.

Code-first workflows

YAML or Python files you can diff, review and version. flowpilot validate catches typos in step types and parameters before they run.

First-class Telegram

Messages, files, photos and any Bot API method. Long messages are split automatically; use your own Bot API server or a proxy if needed.

Six trigger types

Cron with time zones, intervals, webhooks with secrets or GitHub signatures, file watchers, RSS/Atom feeds and manual runs.

Reliable by default

Per-step timeouts, retries with exponential backoff, on_failure handlers, concurrency limits and crash recovery.

Live dashboard

Watch run logs stream in real time over SSE, browse history, trigger runs and toggle workflows — dark or light, on desktop or phone.

Plugins in five lines

Decorate a Python function with @step and use it in YAML, or ship steps as a package through entry points.

How it works

From idea to running automation in minutes

Each workflow is a trigger plus steps. Steps can reference earlier results, the trigger payload, environment secrets and persistent state through Jinja2 templates.

  1. Scaffoldflowpilot init creates a project with example workflows.
  2. DescribeWrite a trigger and steps in YAML; validate them statically.
  3. Serveflowpilot serve starts triggers, the REST API and the dashboard.
# workflows/uptime-monitor.yaml
name: uptime-monitor
trigger: { type: interval, seconds: 120 }
vars:
  sites: [https://example.com, https://www.python.org]
steps:
  - id: check
    type: http
    for_each: "{{ vars.sites }}"
    retry: { attempts: 2, delay: 3 }
    continue_on_error: true
    with: { url: "{{ item }}", fail_on_error: false }

  - id: alert              # only when the status changes
    type: telegram
    for_each: "{{ steps.check.results }}"
    if: "{{ (item.ok and item.output.ok) != (state.up or {}).get(item.item, true) }}"
    with:
      text: "🔔 {{ item.item }} changed state"

  - id: remember
    type: state
    for_each: "{{ steps.check.results }}"
    with: { merge: { up: { "{{ item.item }}": "{{ item.ok and item.output.ok }}" } } }
cronintervalwebhookfilefeedmanual httptelegramemailtransformconditionbranchdelaylogpythonshellfile.writefile.readsqlitestatearchive
Try itامتحان کنید

Watch a workflow runاجرای یک ورک‌فلو را ببینید

Pick a workflow. Each step lights up as it runs and the log below is what the terminal prints.یک ورک‌فلو انتخاب کنید. هر گام هنگام اجرا روشن می‌شود و لاگ پایین همان چیزی است که ترمینال چاپ می‌کند.

Simulation in your browser: the log is modelled on real flowpilot run output, nothing is executed.شبیه‌سازی در مرورگر: لاگ از خروجی واقعی flowpilot run الگو گرفته و چیزی اجرا نمی‌شود.

    Examples

    Real automations, ready to copy

    Every example is validated in CI; the API-based ones use free public endpoints and need no keys.

    cron

    GitHub release watcher

    Announce every new release of the repositories you follow — exactly once.

    interval

    Uptime monitor

    Get a Telegram alert when a site goes down, and another when it recovers.

    cron · Asia/Tehran

    Daily price digest

    Crypto prices and exchange rates every morning at 09:00, with the Jalali date.

    feed

    RSS → Telegram channel

    One clean channel post per new feed entry, no duplicates.

    cron

    Nightly backup

    tar.gz archives with retention, uploaded to Telegram, with an alert on failure.

    webhook

    Contact form

    Turn website form submissions into Telegram messages, protected by a secret.

    Made for Telegram

    Built where Telegram is the default messenger

    flowpilot was born in Mashhad, Iran, where most notifications end up in Telegram. That shows in the details.

    Works with restricted networks

    Point TELEGRAM_API_BASE at a self-hosted Bot API server or reverse proxy, or route requests through HTTPS_PROXY / SOCKS.

    Persian-friendly templates

    The jalali filter formats Solar Hijri dates and fa_digits converts numbers to Persian digits.

    Channels, groups and topics

    Send to users, groups, channels or forum topics; silent messages, HTML or MarkdownV2 with an escaping filter.

    Files up to the Bot API limit

    Upload local files (like nightly backups) or send photos and documents by URL.

    Get started

    Up and running in three commands

    Install straight from GitHub (it is not on PyPI), scaffold a project and open the dashboard.

    # 1. install
    pipx install "git+https://github.com/mrzroot/flowpilot.git"
    
    # 2. create a project and try it
    flowpilot init my-automations && cd my-automations
    flowpilot run hello
    
    # 3. serve the dashboard, API and triggers
    flowpilot serve            # → http://127.0.0.1:8080
    
    # or with Docker
    git clone https://github.com/mrzroot/flowpilot && cd flowpilot
    mkdir project && docker compose up -d
    Read the docs Download a release
    Latest releaseآخرین نسخه

    Ready to installآمادهٔ نصب

    v0.1.1
    Published 2026-10-31. Includes Python wheel and source archive.منتشرشده در 2026-10-31. شامل فایل wheel پایتون و آرشیو سورس.
    FAQ

    Questions people askپرسش‌های پرتکرار

    How is it different from n8n, Huginn or Node-RED?چه فرقی با n8n، Huginn یا Node-RED دارد؟
    Those are big platforms with a visual editor. flowpilot is small on purpose: workflows are text files in Git, it runs as one Python process with SQLite, and a new step is a normal Python function. If you need hundreds of integrations and a visual editor, use n8n.آن‌ها سکوهای بزرگی با ویرایشگر تصویری‌اند. flowpilot عمداً کوچک است: گردش‌کارها فایل متنی در گیت‌اند، کل برنامه یک پروسهٔ پایتون با SQLite است و هر مرحلهٔ تازه یک تابع معمولی پایتون. اگر صدها اتصال آماده و ویرایشگر تصویری لازم دارید، n8n انتخاب بهتری است.
    api.telegram.org is blocked on my server. What now?api.telegram.org روی سرورم مسدود است. چه کنم؟
    Point TELEGRAM_API_BASE at a self-hosted Bot API server or a reverse proxy you control, or send traffic through HTTPS_PROXY / ALL_PROXY (install flowpilot[socks] for socks5; the Docker image has it).TELEGRAM_API_BASE را به یک سرور Bot API شخصی یا reverse proxy خودتان بدهید، یا ترافیک را از HTTPS_PROXY / ALL_PROXY عبور دهید (برای socks5 بستهٔ flowpilot[socks] را نصب کنید؛ ایمیج داکر آن را دارد).
    Can I run a workflow from the command line only?می‌شود فقط از خط فرمان اجرا کرد؟
    Yes. flowpilot run NAME runs once and exits non-zero on failure, so it fits system cron, CI jobs and scripts. Runs still go into the same history.بله. flowpilot run NAME یک بار اجرا می‌شود و اگر شکست بخورد با کد غیرصفر خارج می‌شود؛ پس با cron سیستم، CI و اسکریپت‌ها جور است. این اجراها هم در همان تاریخچه ثبت می‌شوند.
    Are missed scheduled runs replayed after downtime?اجراهای زمان‌بندی‌شده‌ای که در زمان خاموشی جا ماندند دوباره اجرا می‌شوند؟
    No. Schedules continue from the next time. Runs that were in progress when the process died are marked failed (interrupted) on the next start.نه. زمان‌بندی از نوبت بعدی ادامه می‌یابد. اجراهایی که هنگام از کار افتادن پروسه نیمه‌کاره بودند، در شروع بعدی «ناموفق» (interrupted) علامت می‌خورند.
    How do I avoid duplicate notifications?چطور از پیام تکراری جلوگیری کنم؟
    Use the state step to remember what you already sent (see the release-watcher and uptime examples). Feed triggers remove duplicates on their own.با مرحلهٔ state چیزهایی را که فرستاده‌اید به خاطر بسپارید (نمونه‌های release watcher و uptime را ببینید). تریگرهای فید خودشان موارد تکراری را حذف می‌کنند.
    Is it ready for production? Does it collect data?برای محیط واقعی آماده است؟ داده جمع می‌کند؟
    It is a young 0.x project with a thorough test suite, running as a single process. Pin a version and read the changelog before upgrading. There is no telemetry: it only makes the requests your workflows define.پروژه‌ای جوان (۰.x) با تست‌های کامل است و به‌صورت یک پروسهٔ تکی اجرا می‌شود. نسخه را ثابت کنید و پیش از به‌روزرسانی تغییرات را بخوانید. هیچ داده‌ای جمع نمی‌کند و فقط درخواست‌هایی را می‌فرستد که خودتان در گردش‌کار نوشته‌اید.