---
title: Workflows
description: 'What a workflow may be made of: each trigger and step, the settings
  it takes and what each one is.'
sidebar:
  order: 107
---

What a workflow may be made of: each trigger and step, the settings it takes and what each one is. Served over MCP as `vizitka://docs/workflows`, and by `describe_vocabulary` with `topic=workflows`.

## Signed webhook

The trigger `webhook.inbound`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `path` | yes | Path. The path the webhook answers under the site's address: 3 to 64 lower-case letters, digits, `-` and `_`, starting and ending with a letter or a digit. |

```text
{
  "additionalProperties": false,
  "properties": {
    "path": {
      "type": "string"
    }
  },
  "required": [
    "path"
  ],
  "type": "object"
}
```

## Manual test

The trigger `vizitka.manual`, version 1.

It takes no settings.

## New table record

The trigger `vizitka.table.new_record`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `table` | yes | Table. |

```text
{
  "additionalProperties": false,
  "properties": {
    "table": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "table"
  ],
  "type": "object"
}
```

## File uploaded

The trigger `vizitka.disk.file_uploaded`, version 1.

It takes no settings.

## On a schedule

The trigger `vizitka.schedule`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `every` | no | Runs every. Counted from midnight UTC. Leave it empty to use a crontab schedule instead. |
| `cron` | no | Crontab schedule. Five fields: minute, hour, day of the month, month and day of the week. 0 0 * * * runs every midnight, 30 8 * * 1-5 at 08:30 on weekdays. At most every 15 minutes. |
| `time_zone` | no | Time zone. Where the crontab schedule's hours are read, such as Europe/Kyiv. UTC when left empty. |

```text
{
  "additionalProperties": false,
  "properties": {
    "cron": {
      "maxLength": 100,
      "minLength": 9,
      "type": "string"
    },
    "every": {
      "enum": [
        "15m",
        "30m",
        "1h",
        "6h",
        "1d"
      ],
      "type": "string"
    },
    "time_zone": {
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    }
  },
  "type": "object"
}
```

## JSON result

The step `json.response`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `body` | no | Result. The JSON object the sender reads back from the run's status path. Clear it to hand back the JSON that was posted. |

```text
{
  "additionalProperties": false,
  "properties": {
    "body": {
      "type": "object"
    }
  },
  "type": "object"
}
```

## Map fields

The step `transform.map_fields`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `fields` | yes | Field mappings. Map output names to {"path":"record.data.name"} or {"literal":"a value"}. |

```text
{
  "additionalProperties": false,
  "properties": {
    "fields": {
      "additionalProperties": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "path": {
                "pattern": "^[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*$",
                "type": "string"
              }
            },
            "required": [
              "path"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "literal": {}
            },
            "required": [
              "literal"
            ],
            "type": "object"
          }
        ]
      },
      "type": "object"
    }
  },
  "required": [
    "fields"
  ],
  "type": "object"
}
```

## Create a record

The step `vizitka.create_record`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `table` | yes | Table. |

```text
{
  "additionalProperties": false,
  "properties": {
    "table": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "table"
  ],
  "type": "object"
}
```

## Update record

The step `vizitka.update_record`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `table` | yes | Table. |
| `match` | yes | Find the row. Table fields mapped to {"path":"picture"} or {"literal":"a value"}. Exactly one row must match all of them. |
| `set` | yes | Change these fields. Table fields mapped to {"path":"size_kb"} or {"literal":"a value"}. Fields left out keep their values. |
| `if_missing` | no | When no row matches. Left empty, a missing row fails the run. skip passes over it, and create adds a row of the values in Find the row and Change these fields. |

```text
{
  "additionalProperties": false,
  "properties": {
    "if_missing": {
      "enum": [
        "fail",
        "skip",
        "create"
      ],
      "type": "string"
    },
    "match": {
      "additionalProperties": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "path": {
                "pattern": "^[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*$",
                "type": "string"
              }
            },
            "required": [
              "path"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "literal": {}
            },
            "required": [
              "literal"
            ],
            "type": "object"
          }
        ]
      },
      "minProperties": 1,
      "type": "object"
    },
    "set": {
      "additionalProperties": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "path": {
                "pattern": "^[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*$",
                "type": "string"
              }
            },
            "required": [
              "path"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "literal": {}
            },
            "required": [
              "literal"
            ],
            "type": "object"
          }
        ]
      },
      "minProperties": 1,
      "type": "object"
    },
    "table": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "table",
    "match",
    "set"
  ],
  "type": "object"
}
```

## Run JavaScript

The step `javascript.run`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `script` | yes | Script. Runs on the server with no network access. Return an object: it becomes the next step's input. |

```text
{
  "additionalProperties": false,
  "properties": {
    "script": {
      "maxLength": 16384,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "script"
  ],
  "type": "object"
}
```

## Send a JSON webhook

The step `http.post_json`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `url` | yes | HTTPS destination. Use a public HTTPS address. Receivers should deduplicate using the Idempotency-Key header. |

```text
{
  "additionalProperties": false,
  "properties": {
    "url": {
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "type": "object"
}
```

## Fetch JSON

The step `http.get_json`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `url` | yes | Address. A public HTTPS address that answers with JSON. Its answer becomes the next step's input as status and body. |
| `headers` | no | Headers. Header names mapped to values. Write a secret from Integrations as {{secrets.NAME}}, here or in the address after its host. It is sent only to the host it was saved with. If the answer repeats one, the step fails and nothing of the answer is kept. |

```text
{
  "additionalProperties": false,
  "properties": {
    "headers": {
      "additionalProperties": {
        "maxLength": 8192,
        "type": "string"
      },
      "maxProperties": 16,
      "type": "object"
    },
    "url": {
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "type": "object"
}
```

## Fetch a page

The step `http.get_page`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `url` | yes | Address. A public HTTPS web page, at most 2 MB, that answers without a redirect. The values picked out of it become the next step's input as status and values. |
| `headers` | no | Headers. Header names mapped to values. Write a secret from Integrations as {{secrets.NAME}}, here or in the address after its host. It is sent only to the host it was saved with. If the answer repeats one, the step fails and nothing of the answer is kept. |
| `extract` | yes | Values to pick out. Names mapped to a CSS selector, such as {"price":{"selector":".price"}}. Add "attribute":"content" to read an attribute, and "all":true for every match. A selector that matches nothing gives null. It reads types, #id, .class, [attribute] and the child pseudo-classes, joined by spaces, &gt;, + or ~. |

```text
{
  "additionalProperties": false,
  "properties": {
    "extract": {
      "additionalProperties": {
        "additionalProperties": false,
        "properties": {
          "all": {
            "type": "boolean"
          },
          "attribute": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "selector": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "selector"
        ],
        "type": "object"
      },
      "maxProperties": 32,
      "minProperties": 1,
      "type": "object"
    },
    "headers": {
      "additionalProperties": {
        "maxLength": 8192,
        "type": "string"
      },
      "maxProperties": 16,
      "type": "object"
    },
    "url": {
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "url",
    "extract"
  ],
  "type": "object"
}
```

## Ask an integration

The step `vizitka.ask_integration`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `integration` | yes | Integration. One of the site's integrations that can be asked a question. It has to be switched on. |
| `job` | no | Job. Which of the integration's jobs is asked, where it is a package with jobs of its own. Leave it empty for an integration with one job that can be asked. |
| `event` | no | Question. The event the integration is given, such as {"question":"weekly","report":"site","days":7} for Google Analytics. Leave it empty to give it this step's input. What it answers becomes the next step's input as result, and the step waits up to 30 seconds for it. |

```text
{
  "additionalProperties": false,
  "properties": {
    "event": {
      "type": "object"
    },
    "integration": {
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[a-z0-9_-]+$",
      "type": "string"
    },
    "job": {
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[a-z0-9_-]+$",
      "type": "string"
    }
  },
  "required": [
    "integration"
  ],
  "type": "object"
}
```

## List the site's addresses

The step `vizitka.list_addresses`, version 1.

| Setting | Needed | What it is |
| --- | --- | --- |
| `indexed_only` | no | Only what search engines are told of. Leave out the addresses search engines are not told of: a page that says noindex, a text page, and every address of a site kept out of search. |
| `changed_since` | no | Changed since. Only the addresses that changed after this moment, such as 2026-11-01T00:00:00Z. A row's address changes when the row is saved, and any other page's when the site is published. |
| `limit` | no | At most. How many addresses to hand on, up to 500. The next step's input holds them as addresses, with total, how many there are in all, and more, which says some were left out. |

```text
{
  "additionalProperties": false,
  "properties": {
    "changed_since": {
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    },
    "indexed_only": {
      "type": "boolean"
    },
    "limit": {
      "maximum": 500,
      "minimum": 1,
      "type": "integer"
    }
  },
  "type": "object"
}
```
