# Data, trust, records and ending steps (/docs/workflows/steps-data-trust-records-end)

> Reference for Query Source, Call Action, Verify Identity, Confirm, Create Record, Update Record, Query Records, Complete and Escalate.

Type: reference | Status: beta | Last reviewed: 2026-11-21 | Minimum role: builder

## Data [#data]

### Query Source [#query-source]

**Read from an Active integration capability.** One output.

- **Which Source to look up?** Pick from your **Approved and enabled** read capabilities (for example *Lookup invoice* or *Find row*). If the list is empty, approve one in [Integrations](/docs/integrations/connect-and-attach).
- **Notes**: optional designer notes. Capability arguments can be filled with details collected earlier.
- **Tell the visitor**: **Announce** (the default; the AI tells the customer it is checking), **Stay silent** or **Custom message**.

The result is remembered as the **last lookup**, which IF conditions and later messages can use. Customer-specific capabilities still run only for the verified customer; see [How integrations work](/docs/integrations/how-integrations-work).

### Call Action [#call-action]

**Write via an Action capability.** One output.

- **Action capability**: pick an approved, enabled *action* (for example *Cancel order*, *Create refund*, *Post message*). It runs only if the customer meets the capability's minimum trust.
- Fill the capability's arguments, each as an **Exact value** or **From collected** (choose the collected detail).
- Put a **Confirm** step just before it so the customer agrees first.

Actions that change data also ask for a confirmation of their own, tied to the exact details. An action whose outcome is uncertain after an error is shown as **Outcome unknown — do not retry blindly** in the run view.

## Trust [#trust]

### Verify Identity [#verify-identity]

**Email verification, by code or link.** One output.

- **Verification method**: **Workspace default**, **OTP Email** or **Magic Link**. Workspace default uses your [Security](/docs/security) settings. If both are on, a code is emailed and the visitor can switch to a link.
- **Which email to verify**: choose the collected email detail.
- **Visitor prompt**: the message that asks them to verify, for example "We'll email you to verify it's you."

The chat is **Verified** once they succeed. Use it before any step that touches customer data.

### Confirm [#confirm]

**Soft confirmation with Yes and No branches.** Two outputs.

- **Confirm message**: for example "Are you sure you want to cancel this order?"
- **Yes label** and **No label**: the buttons the visitor sees.

Always put Confirm before a Call Action that changes something.

## Records [#records]

These steps work on a table in [Records](/docs/records). They write only what the table's settings allow, and a published workflow's own writes are not blocked by the table's minimum trust to write.

### Create Record [#create-record]

**Insert a row into a Records table.** Choose the **Table** and fill its **Fields**, each as an **Exact value** or **From collected**.

### Update Record [#update-record]

**Update a row in a Records table.** Choose the **Table**, give the **Record id** (for example `{{records.last.id}}`) and set the **Fields** to change.

### Query Records [#query-records]

**Look up rows in a Records table.** Choose the **Table**, optionally a **Status filter** and a **Search** (for example `{{collected.email}}`). The result becomes the last lookup.

## End [#end]

Every path should finish in one of these. They have no outputs.

### Complete [#complete]

**Finish with a final message.** Write the **Final message**; it supports tokens such as `{{collected.email}}`.

### Escalate [#escalate]

**Hand off to a human.** Write the **Handoff message** the customer sees and an optional **Internal reason** note for your team. A ticket is created in your [ticket sink](/docs/records/ticket-sink) and appears in the [Inbox](/docs/inbox). The run is shown as **Handed to a person** and does not continue automatically.

## How a run can end [#how-a-run-can-end]

| Outcome | Meaning |
|---|---|
| **Completed** | It reached a Complete step |
| **Handed to a person** | It reached Escalate |
| **Cancelled** | The run was cancelled |
| Expired | "The visitor did not respond in time. The run ended and no further action will be taken." |

## Choosing steps [#choosing-steps]

| Goal | Steps |
|---|---|
| Look something up for a verified customer | Collect email → Verify Identity → Query Source → IF found |
| Do something risky | … → Confirm → Call Action → Complete |
| Capture a request | Collect → Validate → Create Record → Reply |
| Something went wrong | → Escalate |
