For SaaS developers

We track the state.
You get the webhook.

Stop building cron jobs and Redis queues for user tracking. Stream events, define logic, get a webhook the moment a user matches your criteria.

your-app.ts
await track("user_99",
  "started_trial",
  { plan: "pro"}
)
StateFlow — 72h delay
user.signed_upAND NOTproject.created
within 72 hours after signup
Webhook Out
{
  event: "triggered",
  userId: "user_99",
  segment: "inactive"
  }

Zero infra

No Redis, no BullMQ

MCP ready

AI-agent compatible

100k events/mo free

No credit card

How it works.

Three steps from event stream to automated webhook — no infrastructure to manage.

Stream User Events

Ingest behavior directly from your frontend, backend, or AI coding agents. Our clean REST API, lightweight SDKs, and native MCP server context handle events in milliseconds — no complex setup required.

Live Event Stream
user.signed_up
user_42now
project.created
user_88now
trial.started
user_12now
REST API · SDKs · MCP compatible

Why developers choose StateFlow.

Custom code for user lifecycle tracking is a time sink. Here's why teams replace their homegrown cron jobs with our API.

Zero Infrastructure Overhead
Serverless

No Redis instances to scale, no BullMQ to manage, and no dirty database columns like has_completed_step_two_yet. Your application stays clean while we handle all the background state tracking.

AI-Agent Compatible
MCP Ready

Built for modern AI-driven workflows. Your AI coding agents can delegate long-running lifecycle tasks via our native MCP server — without bloating your core application database logic.

Pure Flexibility
Raw webhooks

We output raw webhook payloads instead of forcing email templates or rigid workflows. Route our webhooks to your mailer, Slack, internal scripts, or any automation tool — you own the stack.

Custom cron + Redis approach
Race conditions on concurrent events
Database state tracking columns everywhere
BullMQ queues to monitor and scale
Timezone-aware cron logic bugs
No built-in retry or dead-letter handling
StateFlow API
Guaranteed event ordering & deduplication
Managed state machine — zero DB columns
Serverless — we handle all scaling
Precise time delays without cron
Auto-retry with exponential backoff

Connect any event source.

REST API, native MCP, or SDKs for Node, Python, and Go. Events hit our servers in milliseconds — no complex setup.

Frontend SDK
Backend API
AI Agent (MCP)
stateflow.api / track
Smart Webhooks Out

REST API

Event ingestion

Lightweight frontend SDK with first-class TypeScript support. Track events in a single line.

MCP Server

Event ingestion

Native Model Context Protocol server. AI agents can delegate lifecycle tasks directly.

SDKs

Event ingestion

SDKs for Node.js, Python, and Go. Drop in with a single npm install or pip command.

Webhook Ingest

Event ingestion

Custom webhooks and event ingestion from any tool that can make an HTTP request.

Frequently Asked Questions

Everything you need to know about StateFlow.

Getting Started
Technical
Still have questions?Reach out to our team
Serverless — no infrastructure to manage

Offload your background state tracking in 5 minutes.

Stream user events, define your segment logic, and get precise webhook triggers — without building a single cron job or Redis queue.

Free up to 100,000 events/month. No credit card required.