> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oktivo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow nodes

> Build Auto Workflows that react to incoming data, call other APIs and branch on the result

# Workflow nodes

Open **Auto Workflow** and drag steps from the **Integrations / Logic** group of the palette. A workflow starts with exactly one entry step: **Trigger** (a new lead) or **Webhook Trigger**.

## The step window

Double-click a step (or select it and press **Enter**) to open it in a large window with three parts:

* **Input** (left): the data this step receives from the steps before it, grouped as direct parents, earlier steps, the lead and the trigger. Each group says where the data comes from: a recent run, a sample, or only the field types.
* **Settings** (middle): the step's own form. Changes apply as you type. **Done** or **Esc** closes the window.
* **Output** (right): what this step passes on and to which step each output leads.

The panel on the right of the canvas is now a short read-only summary with **Open**, **Duplicate** and **Delete**. On small screens the three parts become tabs. If one step cannot be shown, it displays a "could not be shown" card with **Reset to defaults** and the rest of the editor keeps working.

**Rules for passing data.** A step can use data from any step that comes before it on its path, not only the step directly in front. It cannot use data from a step that runs later or on a different branch. Each step explains what it needs before it (for example, a Condition needs an AI Agent Call) and the editor warns when a placeholder points at data that will not exist.

## WhatsApp

Sends an approved WhatsApp template or a free text message. See [WhatsApp step](https://docs.oktivo.com/guides/workflow-whatsapp-node.md). The older **Send WhatsApp** step is hidden from the palette; existing ones keep working and offer **Switch to the new WhatsApp step**.

## Send Email

Sends one of the built-in templates or your own. See [Email templates](https://docs.oktivo.com/guides/workflow-email-templates.md).

## Webhook Trigger

Starts the workflow when a request arrives at an [Inbound Webhook](https://docs.oktivo.com/connectors/inbound-webhooks.md). Pick the listener, then map **Phone**, **Email** and **Name** using fields from the captured sample. The lead is found or created from these values.

## HTTP Request

Calls another service and keeps the answer for later steps.

* **Method and URL.** You can use placeholders in the URL, headers, query and body.
* **Credential.** Store API keys under a credential and pick it here. Do not type keys into headers or query values. Workflows with such values cannot be saved.
* **Timeout and retries.** Failed or slow calls are retried up to 3 times.
* **Outputs.** `default` runs for any answer from the server, including 404 or 500, so use a Condition on the status. `error` runs when the call could not be made (blocked address, timeout, no answer).

For safety, only public `http` and `https` addresses on ports 80 and 443 are allowed. Addresses inside private networks are blocked.

## Condition (If / Switch)

Checks values and sends the run down one branch.

* **If** has `true` and `false` outputs. **Switch** has one output per case plus `default`.
* Rules can be combined with **AND** or **OR**.
* Click **Open editor** (or double-click the step) to see the fields each earlier step passes in, pick one for a rule, and name each branch. Switch the input column to **Real data** to see the actual values, search them, pick an item of a list, and watch each rule show pass or fail with the value it resolved. If there is no data yet, use **Send sample data** or reload the last run. An If / Switch needs at least one earlier step that produces data, and its rules should use fields from earlier steps.
* An `error` output runs when a rule cannot be evaluated, for example a bad pattern. If it is not connected, the run fails.

| Operator | True when |
| - | - |
| equals / not equals | values match (numbers compare as numbers) |
| less than, greater than, at most, at least | numeric or text order |
| contains / not contains | text or list contains the value |
| exists / does not exist | the field is present |
| is empty / is not empty | blank, empty list or empty object |
| is true / is false | the value is a boolean or 1/0, true/false |
| matches pattern | regular expression matches (pattern up to 200 characters) |

## Placeholders

Use double braces to insert data: `{{trigger.body.checkout_url}}`.

| Start with | Contents |
| - | - |
| `trigger` | the incoming request: `trigger.body`, `trigger.headers`, `trigger.query` |
| `steps` | the result of an earlier step: `steps.<step id>.response.status`, `steps.<step id>.response.body.total` |
| `lead` | the matched lead: `lead.phone`, `lead.email`, `lead.name` |

Lists use numbers in square brackets: `{{trigger.body.items[0].title}}`. Use the **field picker** next to a field to avoid typing paths. A placeholder that finds nothing is left empty.

## AI Agent Call variables

In **AI Agent Call**, add one row per variable, for example `product` = `{{trigger.body.items[0].title}}`. Variable names use letters, digits and underscore, and cannot start with a digit. Put `{{product}}` in the agent's prompt, otherwise the agent never sees the value.

## More steps

These steps are in the **Integrations / Logic** group of the palette. Saving never needs a perfect workflow: a workflow with problems is saved as a **draft** and can be activated once the errors are fixed. See [Passing data between steps](https://docs.oktivo.com/guides/workflow-data-passing.md).

### Send Webhook

Sends a signed event to one of your outbound webhook endpoints.

* Choose the endpoint, an event name and a JSON payload. Placeholders work inside the values.
* Only standard endpoints can be used. Other delivery types end on the `error` output.
* **Outputs.** `default` runs when the endpoint accepted the event, `error` when it did not. Later steps can read `delivered`, `status`, `latencyMs` and `responseBody`.

### Client Tool

Runs one of your HTTP client tools (the tools you added to an agent) as a workflow step.

* Choose the tool and fill its arguments. Placeholders work in the values. Unknown arguments are rejected.
* **Outputs.** `default` and `error`. Later steps can read `response.status`, `response.body` and `latencyMs`.

### Connector Action

Calls a tool of an integration connected under **Connecter > MCP**, for example Respond.io `send_message` to send a WhatsApp template with values from the workflow.

* Choose the integration and the tool, then fill the tool's arguments. Only tools that are switched on for that integration can be used.
* Optionally run it as one of your agents, so that agent's tool access applies.
* A busy connector is retried up to 3 times. Each account can make 60 connector calls per minute.
* **Outputs.** `default` and `error`. Later steps can read `result.text`, `result.json`, `result.isError` and `latencyMs`.

### Wait for Webhook

Pauses the workflow until another request arrives on an [Inbound Webhook](https://docs.oktivo.com/connectors/inbound-webhooks.md) that belongs to the same order, call or customer.

* **Listener.** The inbound webhook to watch. Use a different listener from the one that starts the workflow, unless you want both to react.
* **Match field.** The value in the incoming request, for example `{{trigger.body.order_id}}`.
* **Match value.** The value from this run that it must equal, for example `{{steps.fetch_order.response.body.id}}`. If it is empty for a run, the step fails.
* **Timeout.** 1 minute to 7 days (default 60 minutes).
* **Outputs.** `received` runs when a matching request arrives and gives `delivery.body`, `delivery.headers` and `delivery.query`. `timeout` runs when nothing arrived in time. A waiting run shows as **Waiting for webhook** with the time it waits until. Each account can have 1,000 runs waiting at once.

## Saving, problems and activation

The editor checks your workflow while you work and lists everything under **Problems**.

| Level | Meaning | What happens |
| - | - | - |
| Error | The workflow cannot run correctly, for example a missing setting or a step with nothing connected before it | Saved as a draft. You cannot activate it. If an active workflow now has an error, it is switched off when you save. |
| Warning | It runs but may not do what you expect, for example a placeholder that was not in the sample | Never blocks |
| Not saved | The workflow is broken, for example an unknown step type or too many steps | Nothing is saved, and the message says why |

If someone else saved the workflow while you were editing, you are asked to **Reload latest** or **Overwrite**. A run that already started keeps the version of the workflow it started with.

You can copy, paste and duplicate selected steps, and share a whole workflow with [export and import](https://docs.oktivo.com/guides/workflow-export-import.md).

## Run view

Runs have their own **Runs** tab. See [Workflow runs](https://docs.oktivo.com/guides/workflow-runs.md). Passwords and tokens are hidden. Runs and their details are kept for 30 days.

More guides: [Sample data](https://docs.oktivo.com/guides/workflow-sample-data.md), [Templates gallery](https://docs.oktivo.com/guides/workflow-templates-gallery.md), [Health emails](https://docs.oktivo.com/guides/workflow-health-emails.md).

## Limits

Each workflow handles up to 60 runs per minute and 5,000 per day. Extra requests are logged as skipped in the delivery log.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.