# Workflow object

Defines the workflow a workflow button starts.

| | |
|---|---|
| **Used in** | [Workflow button element](https://workstation.repzo.com/docs/developers/block-kit/elements/workflow-button-element) |

## Usage

Set it as the `workflow` field of a workflow button.

## Fields

| Field | Type | Description | Required? |
|---|---|---|---|
| `trigger` | [Trigger object](https://workstation.repzo.com/docs/developers/block-kit/objects/trigger-object) | A trigger object that holds the workflow's trigger URL and input parameters. | Required |

> **How Repzo Chat differs from Slack**
>
> - Repzo has no Slack workflows: the click reaches the app that posted the message as a `block_actions` payload whose action carries this `workflow` object unchanged.

## Examples

### A workflow button in an actions block

```json
{
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "New lead from the website: *Orchid Dental Clinics* (12 branches)."
      }
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "workflow_button",
          "text": {
            "type": "plain_text",
            "text": "Qualify lead"
          },
          "style": "primary",
          "action_id": "qualify_lead",
          "workflow": {
            "trigger": {
              "url": "https://example.com/triggers/qualify-lead"
            }
          }
        }
      ]
    }
  ]
}
```

## Related

- [Composition objects](https://workstation.repzo.com/docs/developers/block-kit/objects)
- [Block Kit overview](https://workstation.repzo.com/docs/developers/block-kit)
