Triggers and automation
A bot does nothing until something wakes it. Messages from people wake it in conversations. Schedules, webhooks, email and flows wake it in the background: each lands in your 1:1 chat with the bot as a note, such as Scheduled: Morning digest or Email from lena@acme.com: Invoice, so the bot works with its full history, memory and abilities, and you can follow up right there.
Messages and rooms
Section titled “Messages and rooms”Every message in a 1:1 chat with a bot wakes it. In rooms the rules are subtler:
Will my bot answer?
Set up a message and see whether it wakes your bot, Byte.
- An @mention or a reply to one of its messages always wakes the bot.
- Reading along. Otherwise the bot reads people’s messages and decides for itself whether answering helps. It may well stay silent. A message that names nobody counts as meant for whoever you were just talking with, so the other bots stay out of it. The bot’s owner can switch this off per room with Answer only when mentioned; the bot then still gets the follow-ups of someone it’s talking with, so nobody has to repeat the @mention.
- People other than the owner can wake a bot up to 20 times a day each, counting the turns bots take in a discussion their message started. When someone hits the cap, the bot says so in the room. The owner is never capped.
See Rooms and people for invitations, limits and room memory.
Other bots
Section titled “Other bots”Bots wake each other in two ways:
- In a room, a bot’s message wakes another bot only if it @mentions or replies to it. Bots never read along with other bots.
- Asking directly. A bot can ask another of your bots a question and wait for the answer. The first time, you choose Allow once, Always allow or Deny; Always allow covers that direction only. Each exchange is kept in a room with you and both bots.
Discussions in a room
Section titled “Discussions in a room”Ask bots in a room to discuss something together, for example “@Scout @Byte work out which supplier fits us and agree on one”. The bots can belong to you or to other people. The first bot you name opens and hands the word to the other with an @mention, while the other waits to be addressed. Then they take turns. Each answers the other’s points and can check facts with its own apps and data. Every reply hands the word back, with or without an @mention, so a forgotten tag doesn’t stop the discussion. When the bots agree, or neither has anything left to add, one of them ends the discussion: its message carries the outcome, and the other bot doesn’t answer it. Bots end as soon as they agree, also well before the limit.
For each message from a person, two bots get up to 10 messages, 5 each. Every bot knows how many are left, and the last one sums up what they agreed on and what is still open. Write again to steer them or to give them another 10.
The room shows a discussion as it runs: a “Discussion · up to 5 rounds” line above the first message, the round under each message (“Round 2 of 5”) with a track that fills up, whose turn it is next, and at the end how it went: Agreed after 3 of 5 rounds with the outcome in one sentence, No agreement, or All 5 rounds used.
Longer discussions
Section titled “Longer discussions”When a topic clearly needs more, such as weighing several options against data the bots have to look up, a bot proposes a longer discussion instead of handing over: up to 20 rounds, with one sentence on why. When you ask for a number of rounds yourself, for example “discuss this for 10 rounds”, the bot that opens proposes exactly that many in its first message, so you confirm with one click. The proposal shows under its message with:
- the rounds and messages it asks for,
- an estimate of the model cost, from what the bots’ replies in the room have cost so far,
- who pays: each bot’s owner pays for their own bot, and for bots you don’t own the turns count toward your 20 a day with each.
The bots wait until someone in the room selects Allow. That sends a message that gives the discussion the new budget, and the bot that proposed it carries on. A proposal nobody allows costs nothing more.
Limits between bots
Section titled “Limits between bots”To keep bots from spinning:
- Discussions in a room: a bot’s reply or @mention hands the word to the other bot for up to 10 messages after a person’s message, or up to 40 in a longer discussion someone allowed. A message that ends the discussion or proposes a longer one hands the word to no one.
- Asking directly, a bot asks the same bot at most 5 questions per trigger.
- Daily cap. Turns that bots start for each other count toward a daily cap set by your plan. Messages from people never count.
- Per person. Those turns also count toward the 20 a day of the person whose message started them, on every bot that person doesn’t own.
Schedules
Section titled “Schedules”With Scheduling on, a bot runs tasks:
- Once, at a date and time.
- Recurring, on a cron schedule with a time zone, at most every 5 minutes.
You create tasks in the bot’s details under Tasks, with a title (up to 200 characters) and an instruction (up to 4,000). The bot can also schedule, list and cancel its own tasks when you ask it to in chat. A bot holds up to 50 tasks.
Mark a task Only report meaningful changes for monitoring jobs: after each run the bot’s decision model judges the result and only interrupts you when something changed. A run missed while the host was away fires once when it’s back.
Calendar wake-ups
Section titled “Calendar wake-ups”With Calendar on, the bot can wake up a set time before an event starts, in its own calendar or in a connected Google, Microsoft or CalDAV calendar. Wake-ups are off until you switch them on under Wake-ups in the bot’s Calendar tab:
- When: up to four times before each event, such as 15 minutes and 1 day before.
- Which events: its own calendar, the connected calendars or both. Whole-day events are skipped unless you include them. Only events whose title or location contains one of your words, or every event except those.
- Stay quiet when there’s nothing to do: on by default. The bot decides from its memory, its instructions and your chat whether an event needs it, for example to remind you or to prepare a document. When it needs nothing, the wake-up ends without a message.
Each event can override this: open it in the Calendar tab and choose when it wakes the bot, or never. The bot can change its wake-up settings and single events itself, for example to stop waking for a weekly meeting that never needs it, and tells you when it does.
A wake-up lands in your 1:1 chat with the bot as a note starting with Calendar wake-up:, never in a group. The title and location of an event come from a calendar, so the bot treats them as data, not as instructions. Connected calendars are read every 15 minutes to plan wake-ups; for a bot on your desktop that happens only while the desktop app runs.
Webhooks
Section titled “Webhooks”With Webhook on, create webhook URLs in the bot’s details under Webhooks. Each one has a name, an optional instruction (“A webhook was called. Look at its payload and decide what to do.” if you leave it empty) and a secret that is shown once.
curl -X POST "https://api.flow-like.com/api/v1/bots/hooks/<hook_id>?wait=20" \ -H "X-Flow-Like-Webhook-Secret: $SECRET" \ -H "Content-Type: application/json" \ -d '{"event": "deploy.failed", "service": "billing"}'The editor shows ready-made examples with your real URL. Use your own hub’s API address when you self-host.
Authentication. Send the secret in the X-Flow-Like-Webhook-Secret header, as Authorization: Bearer <secret>, or as ?secret=. For senders that sign, send three headers instead of the secret: X-Flow-Like-Timestamp (Unix seconds, at most 5 minutes off the server clock), X-Flow-Like-Delivery (an id unique per delivery: letters, digits, -_.:, up to 128 characters) and X-Flow-Like-Signature: sha256=<hex>. The signature is the lowercase hex HMAC-SHA256, keyed by the signing key the editor shows (the same value as the secret), of the string <timestamp>.<delivery id>.<raw body>. A delivery id is accepted once; sending it again answers 409. Webhooks created before this scheme keep accepting a signature of the body alone, keyed by the secret’s blake3 hex hash, until you rotate the secret. You can rotate the secret at any time.
Payload. JSON bodies arrive parsed, text stays text, and binary arrives base64-encoded. Payloads over 32 KB are saved as a file in the bot’s workspace instead.
Response. The call returns 202 as soon as the turn is queued. Add ?wait=N (up to 30 seconds) to receive 200 with the bot’s reply if it answers in time.
| Status | Meaning |
|---|---|
202 | Queued. The body carries the turn’s state. |
200 | Answered within wait. |
401 | Wrong or missing secret or signature, or a signed call outside the 5-minute window. |
409 | A signed call repeated a delivery id. |
403 | The webhook is disabled or the bot’s Webhook ability is off. |
413 | Body larger than 256 KB. |
429 | More than 30 calls a minute (counted across all API servers). |
A bot holds up to 10 webhooks. Bots that live only on your computer while you’re signed out have no webhook URL.
With Email on, claim an address for the bot under Mail, such as scout@flow-like.me. Plus-tags like scout+invoices@flow-like.me reach it too. An address can change up to 10 times a day, and a released address stays reserved for 30 days.
Incoming mail wakes the bot in your 1:1 chat:
- Automated mail, mail without a sender and mail that fails SPF, DKIM or DMARC checks are dropped.
- Mail from a sender whose domain can’t be verified still arrives, marked as possibly spoofed.
- Every mail is marked as untrusted content: the bot treats it as data, not as instructions.
- Up to 10 attachments of 3 MB each are saved to the bot’s workspace.
- A bot receives up to 200 mails a day.
Sending asks you before each new recipient domain. Choosing Always allow on a reply turns on automatic replies. Outgoing mail is capped at 500 recipients per bot and 2,000 per account a day, with at most 20 recipients per mail.
From your flows
Section titled “From your flows”The Ask Bot node (bots_ask_bot, in the Bots category) sends a message to one of your bots from any flow, as if a flow event had woken it. Set Wait (seconds) up to 100 to get the Reply back into the flow, or 0 to continue as soon as the turn is queued. The exchange lands in the bot’s chat with you, marked Event: From a flow.
The node reaches bots in the cloud and bots on a desktop that is online, but not bots that live only on your computer while you’re signed out. Code can do the same through the API; see API and SDKs.
What background turns decide on their own
Section titled “What background turns decide on their own”Nobody watches a background turn, so the bot’s decision model does two extra jobs:
- Filtering. For webhook and email triggers, it can drop events that need no action, handle them quietly, answer, or notify you. Mail you send from your own address is never dropped.
- Authorizing. When a tool needs your approval, it checks whether your own messages or the bot’s instructions clearly cover that exact call. If so, the call runs once. If not, the turn pauses and you get an approval card with a push. The text of the trigger itself never counts as permission. See Approvals.
Without a decision model, background events are always handled and every approval waits for you.