# Flow builder blocks

Your reference to every block on the flow canvas: what it does, how to set it up and what it can branch on.

Source: https://support.rework.com/article/prospect-flow-builder-nodes

Everything a flow does comes from the blocks on its canvas. Use this article as your reference: what each block is called, what it does, and which outputs it can branch on. For the Flows list, settings and sessions, see [Flows overview](https://support.rework.com/article/prospect-flows-overview).

## Add a block to the canvas

1. Click **+** **(1)** at the top of the canvas toolbar. Below it are the other canvas tools **(2)**: **Zoom in**, **Zoom out**, **Fit to view**, **Undo**, **Redo**, **Auto-layout** (re-arranges the whole canvas left to right), **Find a step** and **Canvas settings**.
   
2. Pick a block in **Add a block** **(3)**. Blocks are grouped under **Message the customer**, **Logic & timing**, **AI**, **Team & routing**, **Update data**, **Integrations** and **Finish**.
   
3. As the menu says **(4)**: click an entry to drop it in the centre of the canvas, or drag it where you want it.
   

![Flow editor with the + button (1), the canvas tools (2), the Add a block menu grouped from Message the customer to Finish (3) and the hint Click to add at center, or drag onto the canvas (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261017/hMfgVbbKUOVdePVNwbhGlyIXWbzW2iZDCBRfLJOdStpeMq9uXJlrs4zaPtWRBsDJ/img.7aoolcu6Wl9mapMg5Zrd8tkF5dJtbM4Hgbry6VoyQsOPhseM3kuyEdr3gaNGAPVp.png)

Click a block to configure it in the panel on the right; **Close step** or a click on the empty canvas closes the panel. Every block has one or more outputs, shown as a small handle next to the output's label, such as **Next Step** or **Answered**. Drag from an output to another block to wire them. A block whose output isn't wired ends the flow when it's reached.

## Block reference

| Block | What it does | Outputs |
| --- | --- | --- |
| **Trigger** | Says when the flow may start. Every flow has exactly one. | Then |
| **Send** | Sends a message to the customer. | Next Step; or one per template button plus Other; or Clicked / Customer replied / Not clicked; or Success / Error |
| **Ask** | Asks a question and waits for the answer. | Answered (or Submitted), plus Timeout and Link clicked when switched on |
| **Send booking form** | Sends a booking form. | Then, or Submitted / Expired |
| **Condition** | Tests the conversation, prospect or variables. | One per branch plus Else |
| **Wait** | Pauses the flow. | Next Step |
| **Date & Time** | Tests the current time against business hours. | Success / Failure |
| **AI Agent** | Runs one AI task: reply, classify, extract, summarize or sentiment. | Next Step, plus Max turns reached and User refused when switched on |
| **Edit AI Agent** | Switches the conversation's AI agent, or turns it off. | Next Step |
| **Assign** | Sets or clears the conversation owner. | Next Step |
| **Update Followers** | Adds, removes or replaces the conversation's followers. | Next Step |
| **Run Router** | Starts the SLA router of the conversation's inbox. | Next Step |
| **Send notification** | Sends a bell notification to agents. | Next Step |
| **Update Prospect Field** | Writes prospect fields and labels. | Next Step |
| **Update Conv. Field** | Writes conversation custom fields. | Next Step |
| **Update Lifecycle** | Sets or removes the prospect's stage. | Next Step |
| **HTTP Request** | Calls an outside system. | Success / Error |
| **Service Exchange** | Sends the record through the exchange of the conversation's service. | Success / Error |
| **Enroll in automation** | Starts an automation for the conversation. | Next Step |
| **End** | Ends the flow with an outcome. | None |

## Messaging blocks

### Send

Choose the **Mode** **(1)**: **Text & files** (a message with up to five files, written with variables) or **Saved template**, where you pick a channel and one of its approved templates. Templates are offered for WhatsApp Business, WhatsApp Coexistence, Facebook Messenger, Instagram and the Live Chat channels. Write the **Message** **(2)**; a preview shows it as you edit.

To know whether the customer opened a link in the message, tick **Wait for link click** **(3)** and set **Stop waiting after** **(4)** (24 hours by default, 30 days at most). The links become short links on our domain, and the block gets three outputs **(5)**: **Clicked** when the customer taps the link, **Customer replied** when they write back first, and **Not clicked** when the wait runs out. Only the first tap counts. See [Know when customers open your links](https://support.rework.com/article/prospect-tracked-links).

![Send block settings with Mode set to Text & files (1), the Message with a pricing link (2), Wait for link click ticked (3), Stop waiting after 24 hours (4) and the Clicked, Customer replied and Not clicked outputs on the block (5) highlighted](https://storage.googleapis.com/reworkv3-public/success/261017/jYaqwGbMkjzB78LFVl7DbPtC5SSydLGjoTOvwFArCyvp5Ev1ByaRN990R3xStinZ/img.Po6AHHQ2vXXAfMCJNG22UfUhwY8Z4Jw1hObaS44HRy5IigeRtqVYW4dAqEipmfVi.png)

When the chosen template has quick-reply buttons, the block grows one output per button plus an **Other** catch-all instead. **Send to** can also be set to **WABA prospect (phone)**, which finds or creates a WhatsApp conversation for a phone number and sends the template there; the block then branches on **Success** / **Error**, and a conversation created this way doesn't start any flow.

### Ask

**Ask** sends a question and pauses the flow until the customer replies. Pick the **Answer type** first: **Text**, **Rating**, or **Form** (only when a Live Chat form template is the question). The answer is stored in **Save answer to variable**.

- **Text** answers are checked against **Expected answer**: Free text, Number, Email, Phone, Date, Regex pattern, One of a list, Minimum length, Maximum length or Numeric range.
  
- **Rating** asks the customer for a score on any channel. Here's how to set one up on an Ask block **(1)**:
  
  1. Set **Answer type** to **Rating** **(2)**, and say in the question that the customer should reply with a number from 1 to the top score.
     
  2. Set **Scale (max score)** **(3)**: anything from 2 to 10, 5 by default. The score is saved as a number in the variable, so a **Condition** can branch on it, and it also counts towards your CSAT score.
     
  3. Decide what happens with a reply that isn't a whole number in range ("great", "4.5", "100") under **Retry behaviour** **(4)**.
     
  4. Optionally tick **Track link clicks** **(5)** to add a **Link clicked** output, and set a **Timeout** **(6)**.
     
  
  ![Ask block (1) set up as a rating: Answer type Rating (2), Scale (max score) 5 (3), Retry behaviour (4), Track link clicks (5) and the Timeout settings (6) highlighted](https://storage.googleapis.com/reworkv3-public/success/261017/sviJDZLh7KRhFkINLbt8wpptf2PF5SuTrn60WCiklQT2fHDSxFrsghZaSlm9xT8z/img.XAlEa7rxxW8M30FQUVYV9SeUMyfBai0tuLgaFLcY8LOj8kDcwESRRXoJy6gkHUrd.png)
  
  When a Live Chat rating template is the question, the scale comes from the template and can't be changed here.
  

Invalid replies follow **Retry behaviour**: up to five retries with a **Retry message**, then **When retries run out** fails the flow, continues anyway, or jumps to another step. Tick **Wait a limited time for a reply** and set the timeout to get a **Timeout** output; if that output isn't wired, the flow ends when the time is up. With **Track link clicks** on, the timeout can be at most 30 days.

### Send booking form

Sends one of your booking forms. Left as is, it continues straight away through **Then**. Switch on **Wait for booking submission** and it waits, branching to **Submitted** or **Expired**.

## Logic and timing blocks

**Condition** **(1)** holds a list of branches, such as **(2)** and **(3)**. Each branch has a label and a rule built from the conversation, the prospect, custom fields, trigger values and your own variables. Branches are tested in order, the first match wins, and an **Else** output catches everything else. Click **\+ Add branch** **(4)** for another.

![Condition block (1) with two branches, Help center chat (2) and Website chat (3), and the + Add branch button (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/260929/zRgiT7qzcQsu9C744bAsKHFg8bjf8E1DVV5LOnosj7pj5qEOg0ZhmIi2uQcUBRYK/img.nTWyPMuDMUPx59RDW3UyGhJdkQV8hKaNvRaEMVn8kkONfieGoPejJYr1vQOjzk77.png)

**Wait** **(1)** pauses the flow for a number of Seconds, Minutes, Hours or Days in **Pause for** **(2)**, 5 minutes by default and 30 days at most. A flow can't be published with a pause shorter than one minute.

![Wait block (1) set to Pause for 2 minutes, with the note Maximum 30 days (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/260929/3c0Mv0MJXld7ltCb4juGWoMedbDxYthBuvATfcUDbs3Nlj3Y30sgkwdZq0vpwJoE/img.VFYogPiq1xd8jkd0qmFVcF9zWxpzflpgrhDUl9rhrxku5EJ2FX5N1cAN8059GlRt.png)

### Date & Time

**Date & Time** answers one question about the moment it runs, and branches on the answer.

1. Pick the **Condition** **(1)**: **Is within business hours** or **Is not within business hours**.
   
2. Tick the days you work and set their hours **(2)**. A day can hold up to four time ranges, for example 08:00–12:00 and 13:30–17:30, so a lunch break counts as outside business hours.
   
3. Click **+** **(3)** next to a day to add a range, or the bin **(4)** to remove one. Ranges can't overlap, and each must end after it starts.
   
4. Set the **Time Zone** **(5)**. It starts as your own.
   
5. Wire the **Success** and **Failure** outputs **(6)**: Success when the condition is true, Failure when it isn't.
   

![Date & Time settings with the Condition Is within business hours (1), Monday with two time ranges (2), the + Add time range button (3), the Remove time range bin (4), the Time Zone (5) and the Success and Failure outputs on the block (6) highlighted](https://storage.googleapis.com/reworkv3-public/success/261017/nd5zvjYUUaVuxLY0Awuv8pmIliDWL0BP0EGMaICDngnsR2B8K0BLEeZfS7YafGbj/img.IdObiVhAPSRWcTJ2PY8mvVS0TFkIPV1lSLJttSyjrfUrVrUAaw1XdRqut5ei7acr.png)

## Team and routing blocks

**Assign** **(1)** sets the owner. Its **Assignment type** **(2)** is a **Specific agent** (you then pick the **Agent** **(3)**), the person who connected the channel (with a fallback agent), or **Unassign owner**. It can also send the assignment notification and post an internal note **(4)**, written in **Internal note** **(5)**.

![Assign block (1) with Assignment type Specific agent (2), Agent (3), the notify and internal note options (4) and Internal note (5) highlighted](https://storage.googleapis.com/reworkv3-public/success/260929/kVqp4C4oiwvWvtXVfXPTSWuRkKr4bBTUQWT3DuSVDf3zlsWNfQJEBbszovKdXjsS/img.ILwya6OQQsLSyIMEzgjGaJVxIMC7xG0uZvmFWUls7MhXJC7VbVkwvkeLGRL4HLHJ.png)

### Update Followers

Pick the **Action** **(1)**: **Add followers**, **Remove followers** or **Replace followers**. Choose people in **Users** **(2)**, or fill **Or from a variable** **(3)** with user ids, emails or names separated by commas. A name that several users share is skipped, so use the email instead. Followers can see the conversation and get notified about it, and people you add are notified.

![Update Followers settings with the Action Add followers (1), Users with Eric Pham picked (2) and Or from a variable (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/261017/gqyzczMlOSGbb59RsA5hrGZQsAbAL0tHmvXTJhxLp57oJGcKyYVJfjwQdXlijRqh/img.bg0m9tqa2E6I2fiXOOQmf3iygu91bUtchOmWpxdeM4Dju0lwf2wU25mzSOsHPCHM.png)

### Run Router

**Run Router** hands the conversation to an SLA router, which can assign an owner, apply rules and hold SLA deadlines after the flow has moved on. One block can serve several inboxes:

1. Add the block **(1)**. Its card lists which router runs for which inbox.
   
2. Pick the inboxes in **Services** **(2)**.
   
3. Pick one router for each inbox **(3)**. Only routers published with their trigger set to **Manual / API** are offered.
   
4. Read how it behaves **(4)**: at run time the block starts the router of the conversation's own inbox. An inbox you picked but left without a router is skipped. A conversation from an inbox that isn't listed stops the flow with an error, so nothing is routed to the wrong team.
   

![Run Router block (1) and its settings: Services Product Support and Sales & Renewals (2), one router per service, Sales round robin and Support tier 1 (3), and the explanation of how inboxes without a router are handled (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261017/ZayB7mCspy2ZbCrQWb0AdcRI3i6bee4xwyA7sa64EYBp4krTrC9gNeagYrQHJJtE/img.rMTbhqc8b7BrmsXnn1qJiNxqyz0fhCMhN1YldzKnicfelCrEfS0eDF0eMW894z0w.png)

The block doesn't wait for the router to finish.

### Send notification

Sends a bell notification to agents. Pick the **Users to notify**, and tick **Also notify the conversation owner** or **Also notify conversation followers** if they should hear too. Write a **Title** and **Content**; **Link to open** defaults to the conversation.

## Data blocks

**Update Prospect Field** writes one or more fields on the prospect (standard fields and your own custom fields) from fixed text or variables, and can add, remove or replace the prospect's labels. When a row targets the email or phone, **Set as the prospect's main Email/Phone** decides whether the value becomes the main one or is kept alongside the existing one.

**Update Conv. Field** first asks for a **Service**, then writes that inbox's conversation custom fields.

**Update Lifecycle** sets or removes the prospect's stage. The stage can be **A specific stage** or **A variable**, matched against the stage name or id; if nothing matches, the stage is left alone.

## AI blocks

**AI Agent** runs one task with a configured agent (Generate reply, Classify message, Extract fields, Summarize conversation or Detect sentiment) and saves the result to a variable. It can add the outputs **Max turns reached** and **User refused**. See [AI agents](https://support.rework.com/article/prospect-ai-agents).

**Edit AI Agent** attaches a different AI agent to the conversation, or picks **No bot (turns AI off)**. With **Let the AI reply to the customer's last message** on (the default), the new agent answers straight away. The AI only replies while AI is switched on for the inbox.

## Integration blocks

**HTTP Request** calls an external URL with a Method, Headers and an optional body: JSON, Form (urlencoded) or Multipart (file upload), which uploads a file fetched from a URL, up to 10 MB. Under **Response fields**, name the values to lift out of the JSON response so later blocks can read them. **Timeout (ms)** is capped at 30,000.

### Service Exchange

**Service Exchange** sends the current conversation or prospect to another service through an exchange you've already set up. Like Run Router, one block can serve several services:

1. Add the block **(1)**.
   
2. Pick the services in **Services** **(2)**. You can list your inboxes and People.
   
3. Pick one exchange for each service **(3)**.
   
4. Read how it behaves **(4)**: the block uses the exchange of the conversation's service, falling back to People when the inbox isn't listed. A service that isn't listed, or has no exchange, takes the **Error** branch.
   

![Service Exchange block (1) and its settings: Services set to Sales & Renewals (2), its exchange Send to Sales CRM · Webhook (3), and the explanation of the Error branch (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261017/XazOj1lmMp03TJYeP0shvsigiEm6ojvrs3tWcqz2PYdRI8Squ062CKxwC7CawMGC/img.L3TbM5UJZF58V3eVgsVNagXgS7h8D3xWE4QYdum6M0a3Dxlq7nMv0qSVwzji7xeL.png)

For a webhook exchange, **Success** means the record was queued for delivery, not that the other side confirmed it.

### Enroll in automation

Starts an automation for the conversation. Pick it in **Automation**; only automations that start with the Prospect trigger **Conversation manually enrolled** for the inbox are listed. The block doesn't wait for the automation, and leaves through **Next Step**.

## End a flow

**End** stops the run and records an **Outcome**: Completed, Cancelled, Failed, Escalated to human, or Hand off to another workflow, which ends this flow and continues in the flow you pick (loops are blocked automatically). For every outcome except hand-off, you can choose what happens to the conversation (Leave as is, Close conversation or Snooze conversation) and whether to notify followers or post an internal note. When an AI agent started the flow, **Output for AI agent** is the text it reads when the flow ends.

## Variables

Text fields in the builder accept **{{…}}** tokens, and the **Insert variable** picker lists the ones available at that point in the flow: answers you saved, values your trigger produced, fields pulled from an HTTP response, and details of the prospect, the conversation and the last message. A token whose value is missing is replaced by nothing, or by the **Default value** you set, so customers never see a stray placeholder.

## Good to know

- A Wait shorter than one minute, a rating scale outside 2–10, or a link-click wait longer than 30 days stops the flow from being published, with a message that names the block.
  
- Older Run Router and Service Exchange blocks set up with a single router or exchange keep running it for every conversation until you pick services.
  
- Wait for link click isn't offered on a Send that goes to a WhatsApp phone number, or on a template that already branches on its buttons.
