# Runs and debugging

Find out exactly what a flow did on each run, why it stopped, and how to test changes before you publish.

Source: https://support.rework.com/article/prospect-runs-and-debugging

Every time a flow fires, it records the blocks it went through, what each one received, and what it produced. That record is where you look when a flow did nothing, stopped halfway, or sent the wrong message. Don't worry, it usually points straight at the cause.

## Opening the Sessions page

From the **Flows** list, click the **⋯** menu on a row **(1)** and pick **Sessions** (_See past + active runs_) **(2)**. The same menu also holds **Edit flow**, **General settings**, **Pause flow** and **Delete flow**.

![Flows list with a row's menu open: (1) the more-actions button on the Pricing FAQ row, (2) the Sessions item, See past + active runs](https://storage.googleapis.com/reworkv3-public/success/260928/YrWfntww48XGSHjrFaan8WisSRdHurRLko1nR2Si7fd9VXOjentwMXAANtOvYONW/img.XK1rnSmZ721qYPvWs1SPkKDD14w6Famz5BRiAW1j5Mx3iUP1EXxyjOElZvrmipFp.png)

Or open the flow and switch to the **Sessions** tab **(1)** next to **Editor** and **Public version**.

The page is split in two: a list of runs on the left, and the detail of the selected one on the right. The header shows how many sessions are loaded **(2)** and carries a status filter **(3)**: **All status**, **Running**, **Waiting input**, **Waiting timer**, **Completed** and **Cancelled**. **Load more sessions** fetches the next page until you reach _— end of list —_. Until a flow has fired, the page just says _No sessions yet_, and **Back to list** returns you to the **Flows** list.

![Sessions tab of a flow: (1) the Sessions tab next to Editor and Public version, (2) the session count, (3) the status filter open with All status, Running, Waiting input, Waiting timer, Completed and Cancelled](https://storage.googleapis.com/reworkv3-public/success/260928/pQZefmOibhDIZrT5SV8cTyEmDl3ZTevzMLVeuRl616eWdghXJa4kMLfbGLnR860L/img.XS0TGE7Vv6AbKp4Gj1coHCVRVNSx0AniCGOLPPnJt4SlLkpLUuRSs3if7jUm3wCV.png)

Each row in the left list shows the status, when the run started, the customer's name, and the outcome if the run has finished.

## Reading a session

The detail pane repeats the customer name, the status, **Started** and **Ended** times, and an **Outcome:** line in plain language. **Go to conversation** jumps to the thread the flow ran on; it only appears when you have access to that conversation.

**Variables** lists everything the flow collected: the answers from **Ask** blocks, fields an **AI Agent** extracted, values lifted out of an **HTTP Request** response. This is usually the fastest way to see whether a flow really captured what you expected. 💡

## Reading the node runs list

**Node runs** is the timeline, newest first, numbered so the steps count down to the first one. Each entry shows the block type with its colour, a short description of what it did, and how long it took. A failed step is marked **error**.

Click an entry to expand it. Inside you'll get the **Error:** message when it failed, plus the **Input** the block received and the **Output** it produced.

## What the outcomes mean

| Outcome | What happened |
| --- | --- |
| **Completed** | The flow reached an **End** block, or _Ended — no further steps_ because an output wasn't wired. |
| **Cancelled** | Stopped before finishing. |
| **Cancelled by agent** | Somebody stopped it from the conversation. |
| **Cleaned up (idle too long)** | Nothing happened on the run for over an hour. |
| **Ask node timed out** | An **Ask** hit its timeout with no **Timeout** output wired. |
| **Ask validation failed** | The reply never passed **Expected answer** and the retries ran out. |
| **Hit max turns** | A goal-driven **AI Agent** used up its turns. |
| **Customer refused** | The customer declined to give what an **AI Agent** was collecting. |
| **Error · …** | A block threw an error; the text after the dot is the reason. |

## Where flows stop most often

- **The flow never started.** It's still **Draft**, or it's **Paused**, or the conversation is outside its scope, or another flow higher in the **Flows** list matched the same event first.
  
- **It stopped immediately after the trigger.** The **Trigger** block's output isn't wired to anything. The test panel says so directly: _Make sure the trigger is wired to a downstream node and your latest changes are saved._
  
- **It stopped on a branch.** A **Condition** took a branch whose output goes nowhere, so the run ends with _Ended — no further steps_. Check which branch the run took in **Node runs**.
  
- **A step shows error.** Expand it and read **Error:**. A **Wait** shorter than one minute, an unreachable URL on an **HTTP Request**, or a **Send** to a channel that can no longer be used all surface here.
  
- **Your change isn't live.** Editing the canvas doesn't change the published flow. Click **Publish**, and check the **Public version** tab to see what's actually running.
  

## Testing before you publish

**Test** in the flow editor opens **Test run**, a sandbox chat beside the canvas. Type a customer message and the flow runs against it without touching a real conversation. The panel shows the **Current step**, the **Variables** as they fill in, and the same **Node runs** timeline, while the block currently executing is ringed on the canvas. Use the restart button to start a fresh test session.

## Seeing a flow from a conversation

Agents don't need the **Flows** area for this. In the Inbox, open a conversation and click the **Chat flows** icon **(1)** in the right-hand rail of the details panel. The panel **(2)** lists every flow that has run on that conversation, with its status and when it started, and updates live; if none has, it says _No flows yet_. Click a row to open the run details, including the option to stop a flow that's still going.

![Inbox conversation with Olivia Martin: (1) the Chat flows icon in the right-hand rail, (2) the Chat flows panel, here showing No flows yet](https://storage.googleapis.com/reworkv3-public/success/260928/9xIxTVe0aw4qZFnlTrvbxSGkSu6P9aATcMyBOosceDkc3UpFTyHuiuBlnLHGmzpS/img.WBnldh1D9MyvSdQXhCCwJjbj86wjtesLBCUgM6IZz5cYbWMqUHr6cHM48Aufiqdp.png)

Flow starts and endings also appear in the message thread itself as system entries, naming the flow and, when it ends, why.
