TypeScript
curl -X POST https://api.flow.engineer/v1/sandbox/keys, or npx @flow-engineer/messaging init). Sign in with GitHub later to keep the app. See Keys and sign-in.
How it works
- Flow hosts the senders: a Telegram bot or an iMessage line (and WhatsApp numbers once WhatsApp is available). Start on the shared Telegram sandbox bot; go live with your own Telegram bot, or an iMessage line the Flow team connects to your app.
- A person messages your sender. Flow stores the message and delivers it to you as an event: by signed webhook, by a live WebSocket stream, or by polling the event log.
- Your agent replies into the conversation with typed content (text, media, voice notes, buttons, reactions). Streamed LLM answers become natural chat bubbles.
- Every send passes one send gate that applies each channel’s rules (who may be messaged, new-contact limits, pacing), so your sender stays healthy.
- Delivery updates (
message.sent,delivered,read,failed) come back as events in the same ordered log.
Why it is built for AI agents
- Replies that read like a person typed them. Pass an OpenAI, Anthropic, Vercel AI SDK, LangChain or Mastra stream to
reply()and the SDK keeps the typing indicator on and sends paragraph-sized bubbles as they are ready. See Streaming replies. - Reply in the webhook response. Answer a
message.receiveddelivery with{"reply": ...}and save a round trip. See Events and webhooks. - Nothing converted silently. If a channel cannot show something (buttons on iMessage), the API says so, or sends the
fallbackyou chose and reports what was shown. See Content types. - Errors an agent can act on. Every error has a closed
type, a one-linehintand adoc_url. See Errors. - Works from coding agents. A Claude Code skill and an
AGENTS.mdsnippet let Claude Code, Codex and Cursor integrate Flow for you, and an optional MCP server you can add to them helps test it while you build. See For AI coding agents. - Language-neutral. Everything is plain HTTP and JSON with an OpenAPI 3.1 spec, so any language works today.
Packages
The SDKs are open source (Apache-2.0) at github.com/flow-engineer/sdk.
Channels
There is no SMS channel yet and no voice calling.
Flow Messaging is in beta. The API shape may still change; changes ship as new dated versions (see Versioning).
GET /v1/senders lists the sandbox senders your test key can use right now.Next steps
Quickstart
Receive and answer your first message in 5 minutes.
Build a Telegram agent
The sandbox bot, then your own bot.
Build an iMessage agent
Replies, tapbacks and effects on a Flow-connected line.
For AI coding agents
Let Claude Code or Codex do the integration.