Zernio · Schema

WorkflowNode

A node in a workflow graph. `config` shape depends on `type`.

Marketing InfrastructureSocial Media APIAdvertising APICommunication APICreator ToolsAgent Platforms

Properties

Name Type Description
id string Stable node id referenced by edges
type string Node kind. The 23 supported types break into four groups: messaging (send_message), control flow (trigger, condition, delay, wait_for_reply, a_b_split, end), data ops (set_variable, set_field, add_tag
config object Type-specific settings. Every string field supports `{{variable}}` interpolation against the run's variable bag, resolved at execution time. **trigger**: `{ triggerType: inbound_message|api_call|whats
position object Canvas coordinates (ignored by the executor; used by the visual builder).
label string Optional display name shown on the builder canvas and inspector, falling back to the node type when absent. The nodes array is replaced wholesale on update, so it must be resent to be kept.
View JSON Schema on GitHub

JSON Schema

zernio-com-workflow-node-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zernio-com/json-schema/zernio-com-workflow-node-schema.json",
  "title": "WorkflowNode",
  "description": "A node in a workflow graph. `config` shape depends on `type`.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zernio-com-openapi.json#/components/schemas/WorkflowNode",
  "type": "object",
  "required": [
    "id",
    "type"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Stable node id referenced by edges"
    },
    "type": {
      "type": "string",
      "description": "Node kind. The 23 supported types break into four groups:\n  messaging (send_message),\n  control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),\n  data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),\n  integrations (webhook, hubspot_upsert_contact, salesforce_upsert_contact, gohighlevel_upsert_contact, crm_upsert_deal, crm_add_note, crm_create_task, ai, agent, handoff, start_call).\n",
      "enum": [
        "trigger",
        "send_message",
        "wait_for_reply",
        "condition",
        "set_variable",
        "delay",
        "webhook",
        "hubspot_upsert_contact",
        "salesforce_upsert_contact",
        "gohighlevel_upsert_contact",
        "crm_upsert_deal",
        "crm_add_note",
        "crm_create_task",
        "ai",
        "agent",
        "handoff",
        "start_call",
        "a_b_split",
        "set_field",
        "enroll_sequence",
        "add_tag",
        "remove_tag",
        "end"
      ]
    },
    "config": {
      "type": "object",
      "additionalProperties": true,
      "description": "Type-specific settings. Every string field supports `{{variable}}` interpolation against the run's variable bag, resolved at execution time.\n\n**trigger**: `{ triggerType: inbound_message|api_call|whatsapp_event|referral|story_mention|comment|reaction|lead_received, keywords:[string], matchType: any|contains|exact|regex, onlyFirstMessage:boolean, eventType: message_sent|message_delivered|message_read|message_failed|reaction, referral:{ ref, matchType: exact|prefix|any }, reaction:{ emojis:[string] }, comment:{ keywords:[string], matchType: any|contains|exact|regex, platformPostId }, leadReceived:{ formIds:[string], pageAccountIds:[string], consentCheckboxKey, defaultCountry, allowCrossProfile:boolean }, cooldownHours:int (1-720) }`.\n\nDefault `triggerType` is `inbound_message` for legacy nodes. A workflow starts only on events of its own trigger type:\n\n- `inbound_message`: a message.\n- `referral`: an ig.me / m.me / click-to-message ad referral (standalone, or the first message carrying one). The two are deduplicated per conversation within 60 seconds.\n- `story_mention`: an Instagram story mention.\n- `reaction`: a reaction (Instagram, Facebook, WhatsApp, Telegram groups).\n- `comment`: an Instagram or Facebook comment (see below).\n- `whatsapp_event`: a WhatsApp status of a message we sent, filtered by `eventType`.\n- `api_call`: only via `POST /v1/workflows/{workflowId}/trigger`.\n- `lead_received` (WhatsApp workflows only): a Meta lead ad form is submitted.\n\n**`comment` runs** start with no conversation. The first `send_message` is sent as a private reply to the comment, and the run continues in the conversation that reply opens.\n\nThat first `send_message` must follow the trigger directly and be text (optionally with buttons or quick replies) or cards (checked on save). On some Instagram accounts Meta refuses buttons and cards to commenters who do not follow the account.\n\nWhen an active comment automation's keywords match the comment, the automation answers and the workflow does not start.\n\n**`lead_received`** needs `leadReceived.consentCheckboxKey` and at least one of `formIds` or `pageAccountIds`. A form scope wins over a Page scope, then the earliest activated workflow. It starts only for leads that:\n\n- were submitted in the last hour and after the workflow was activated;\n- have the consent checkbox ticked (the form's custom disclaimer, see `POST /v1/ads/lead-forms`);\n- have a phone number that parses to a valid international number (`defaultCountry`, ISO 3166 alpha-2, defaults to the country of the workflow's WhatsApp number).\n\nOtherwise the lead is marked `unreachable`. The Page and the WhatsApp number must be in the same profile unless `allowCrossProfile` is true. Every send or call reached first from the trigger must be a WhatsApp template (checked on save).\n\n**Other trigger rules**:\n\n- `referral.matchType` defaults to `any`.\n- `cooldownHours` stops the same contact from starting the workflow again inside the window. It applies to inbound_message, referral, story_mention, reaction, whatsapp_event and lead_received, where it defaults to 24.\n- A `whatsapp_event` workflow never starts on the status of a message a workflow, sequence or comment automation sent.\n- A redelivered platform event never starts the same workflow twice.\n\n**Variables** available from the start of every run (absent values are `''`):\n\n- Message: `lastMessage`, `inboundText`, `triggerText`, `conversationId`.\n- Contact: `contact.name`, `contact.phone`, `contact.handle`, `contact.tags` (array), `contact.fields` (the contact's custom fields object), `contact.lastInteractionAt` (ISO date), `contact.lastInteractionHoursAgo` (number), `contact.isFollower` and `contact.followerCount` (Instagram, from the stored profile; `''` when unknown).\n- Referral: `referral.ref`, `referral.source`, `referral.type`, `referral.adId`, `referral.adTitle` (the ad title or headline Meta sent), `referral.adName` (the synced ad's name, else `referral.adTitle`), `referral.campaignName` (the synced ad's campaign).\n- Taps: `postback.payload`, `postback.title`, `quickReply.payload`, `quickReply.title`.\n- Story and comment: `story.id`, `story.url`, `comment.id`, `comment.text`, `comment.platformPostId`.\n- Reaction: `reaction.emoji`, `reaction.action` (added|removed).\n\n`api_call` runs also get the request's `variables`, merged over these. `lead_received` runs also get `lead.id`, `lead.leadgenId`, `lead.formId`, `lead.formName`, `lead.adId`, `lead.adsetId`, `lead.campaignId` and every form answer by its key (`lead.full_name`, `lead.email`, `lead.phone_number`).\n\nTemplate `variableMapping` entries with `field: custom` interpolate `{{...}}` in `customValue`. An array or object interpolated into text renders as JSON.\n\n**send_message**: `{ messageType: text|template|media|interactive|cards, text, template, media:{mediaType:image|video|audio|document, url,caption,filename}, interactive, buttons, quickReplies, messageTag }`.\n\n- `template` is `{name,language,variableMapping}` for `messageType: template`, and `{ type: generic, elements:[{ title, subtitle, imageUrl, buttons }] }` (1 to 10 cards) for `messageType: cards`.\n- `template` and `interactive` are WhatsApp-only. `interactive.type` is inferred from the payload shape when omitted; payloads with neither `type` nor an inferable shape are rejected.\n- Facebook and Instagram only (a 400 on other platforms; WhatsApp keeps `interactive`): `cards`, `buttons` on `text` (cards carry their own buttons), and `quickReplies` / `messageTag` on `text`, `media` and `cards`.\n- `media` takes no `buttons` (a 400 at save).\n- `media.filename` (WhatsApp documents only): the file name the recipient sees, including its extension (e.g. Brochure.pdf). Without it WhatsApp names the file itself and it may not open.\n- `buttons:[{ type: url|postback|phone, title, url, payload, phone, workflowId }]`: 1 to 3, text only (the text then 640 characters at most), sent as Meta's button_template, not inside cards. `phone` is Facebook-only.\n- `quickReplies:[{ title, payload, imageUrl, workflowId }]`: 1 to 13, not combined with `buttons`.\n- `messageTag` is not available: a workflow only sends within the 24h window, and `HUMAN_AGENT` is rejected with a 400 because it is only for replies typed by a person.\n- Titles are capped at 20 characters (80 for card titles and subtitles).\n- A postback button or quick reply with no `payload` gets `zernio:workflow:<this workflow id>`, so a tap answers this workflow's pending `wait_for_reply` or restarts it. With `workflowId` (a 24-hex workflow id, not combined with `payload`) the tap starts that workflow instead.\n\n**wait_for_reply**: `{ timeoutMinutes:int (max 43200), saveAs:string }`. Resumes via the `'reply'` edge on inbound, or the `'timeout'` edge after `timeoutMinutes` of silence. On Facebook and Instagram a button tap sets `{{postback.payload}}` / `{{postback.title}}` and a quick reply tap sets `{{quickReply.payload}}` / `{{quickReply.title}}`. Each reply clears the previous tap.\n\n**condition**: `{ rules:[{ id, variable, operator: equals|not_equals|contains|not_contains|starts_with|ends_with|exists|not_exists|matches|greater_than|less_than|greater_or_equal|less_or_equal|before|after|has_tag|not_has_tag|is_true|is_false, value }] }`. The first matching rule takes its `id` as the sourceHandle; otherwise `'default'`.\n\n- Text operators compare case-insensitively.\n- `greater_than`, `less_than`, `greater_or_equal` and `less_or_equal` compare numbers (a non-numeric side is false).\n- `before` and `after` compare ISO dates.\n- `has_tag` and `not_has_tag` test whether an array variable (such as `contact.tags`) contains `value`.\n- `is_true` and `is_false` take no value.\n\n**set_variable**: `{ assignments:[{ name, value }] }`. Run-scoped: lives only for this execution (use `set_field` for persistent values).\n\n**delay**: `{ delayMinutes:int (max 43200) }`. Suspends the run, resumes via timer.\n\n**webhook**: `{ url, method: GET|POST|PUT|PATCH|DELETE, headers, bodyTemplate, saveAs }`. SSRF-guarded (private/loopback/metadata IPs rejected). The response is saved as `{ status, ok, body }` to `vars[saveAs]`. Edges: `'success'` on 2xx, `'error'` otherwise.\n\n**hubspot_upsert_contact**: `{ email, phone, firstName, lastName, properties, saveAs }`. Creates or updates the run contact in the profile's connected HubSpot portal.\n\n- Updates the contact already linked by inbox sync, else one matching by email, then phone; otherwise creates one.\n- An existing contact gets only the fields the node sets (a value that resolves to an empty string is skipped). A new one also takes the Zernio contact's name, email and phone for anything left out.\n- `properties` maps HubSpot internal property names to values (at most 50).\n- Saves `{ id, created }` (or `{ error }`) to `vars[saveAs]` (default `hubspotContact`).\n- Edges: `'success'` | `'error'` (HubSpot not connected, or HubSpot refused the write).\n\n**salesforce_upsert_contact**: `{ email, phone, firstName, lastName, properties, createAs, saveAs }`. Creates or updates the run contact as a Lead or Contact in the profile's connected Salesforce org.\n\n- Updates the record already linked by inbox sync, else one matching by email, then phone (any phone field; Contacts before open Leads); otherwise creates one.\n- An existing record gets only the fields the node sets (a value that resolves to an empty string is skipped).\n- A new one also takes the Zernio contact's name, email and phone for anything left out. A missing LastName falls back to the email or phone, and a new Lead gets Company `[not provided]` unless `properties` sets it.\n- `phone` is written to `MobilePhone`. `properties` maps Salesforce field API names (`LeadSource`, `Title`, `Custom__c`) to values (at most 50).\n- `createAs`: `lead` | `contact`, what a person new to Salesforce becomes (default: the connection's `createAs` setting).\n- Saves `{ id, type, created }` (`type` is `Lead` or `Contact`), or `{ error }`, to `vars[saveAs]` (default `salesforceContact`).\n- Edges: `'success'` | `'error'` (Salesforce not connected, or Salesforce refused the write, such as a validation rule or a required field).\n\n**gohighlevel_upsert_contact**: `{ email, phone, firstName, lastName, tags, properties, saveAs }`. Creates or updates the run contact in the profile's connected HighLevel sub-account.\n\n- Updates the contact already linked by inbox sync, else one matching by email, then phone; otherwise creates one.\n- An existing contact gets only the fields the node sets (a value that resolves to an empty string is skipped). `tags` are added, never replaced.\n- A new one also takes the Zernio contact's name, email and phone for anything left out.\n- `properties` maps standard contact fields (`companyName`, `source`, `city`, `state`, `country`, `postalCode`, `address1`, `website`, `timezone`, `dateOfBirth`, `assignedTo`) or custom field keys to values (at most 50).\n- Saves `{ id, created }`, or `{ error }`, to `vars[saveAs]` (default `gohighlevelContact`).\n- Edges: `'success'` | `'error'` (HighLevel not connected, or HighLevel refused the write).\n\n**CRM record steps** (`crm_upsert_deal`, `crm_add_note`, `crm_create_task`) take `crm` (`hubspot` | `salesforce` | `gohighlevel`) and write to the profile's connected CRM.\n\n- `contactId` is the CRM record id (such as `{{hubspotContact.id}}`). Empty means the run contact's record, found the way that CRM's contact step finds it (linked, email, phone) and created when missing.\n- A value that resolves to an empty string is left out.\n- Edges: `'success'` | `'error'` (CRM not connected, a value it refused, its rate limit, or a reconnect it needs). The error is saved as `{ error }` to `vars[saveAs]`.\n\n**crm_upsert_deal**: `{ crm, contactId, dealId, name, stage, pipeline, amount, closeDate, ownerId, properties, saveAs }`. HubSpot and Salesforce only.\n\n- Without `dealId` it creates a HubSpot deal (in `pipeline`, default `default`) or a Salesforce Opportunity, associated with the contact. `name` and `stage` are required, and Salesforce also needs `closeDate`.\n- A Salesforce Opportunity goes on the Contact's Account with the Contact as its primary contact role. A Lead cannot hold one.\n- With `dealId` it updates that deal with the fields set.\n- `amount` is a number and `closeDate` is `YYYY-MM-DD`, both after interpolation. `stage` and `pipeline` are the CRM's ids, and `ownerId` is a CRM user id. `properties` maps native field names to values (at most 50).\n- Saves `{ id, created, stage, url }` to `vars[saveAs]` (default `crmDeal`).\n\n**crm_add_note**: `{ crm, contactId, dealId, subject, body, includeTranscript, transcriptMessages, saveAs }`. Logs a note on the contact, or on `dealId` (HubSpot and Salesforce).\n\n- HubSpot logs a note. Salesforce logs a completed Task, and HighLevel a contact note.\n- `includeTranscript` appends the last `transcriptMessages` (1 to 50, default 20) messages of the run's conversation.\n- A profile that keeps no message content gets the note without them, and a note that would be empty is not written (`vars[saveAs]` is `{ skipped }`).\n- Needs `body` or `includeTranscript`. Saves `{ id, contactId }` or `{ id, dealId }` to `vars[saveAs]` (default `crmNote`).\n\n**crm_create_task**: `{ crm, contactId, subject, body, dueInDays, ownerId, priority, saveAs }`. Creates an open task on the contact.\n\n- The task is due `dueInDays` (0 to 365, default 0) after the step runs and is assigned to `ownerId` (a CRM user id) when set.\n- `priority` is `low` | `medium` | `high`.\n- Saves `{ id, contactId, dueAt }` to `vars[saveAs]` (default `crmTask`).\n\n**ai**: `{ provider: anthropic|openai|google|mistral|groq|openrouter, model, preset: smart|tools|cheap, systemPrompt, userPromptTemplate, saveAs, temperature, maxTokens, outputType: text|json, tools:[{ name, description, parameters }] }`. Set `provider` + `model` for BYOK (uses your stored API key); omit `provider` for the legacy Telnyx path. Edges: `'success'`, `'tool:<name>'` (model picked a tool), `'error'`.\n\n**agent**: `{ provider, model, instructions, allowedTools:[lookup_order|add_tag|remove_tag|set_field|handoff_to_human], writableFields:[string], maxTurns:int (1-20, default 6), timeoutMinutes:int (max 43200, default 1440), outputSchema:[{ name, type: string|number|boolean, description, required }], handoffPolicy: end_run|follow_edge, saveAs }`. An AI agent that holds a conversation with the contact using your stored provider key (BYOK, as `ai`).\n\n- Each answer is sent to the contact, then the run waits for their reply (up to `timeoutMinutes`) and the agent continues with it.\n- `instructions` is the system prompt and supports `{{variable}}`. The agent is offered only `allowedTools` plus `complete`; `set_field` writes only the fields in `writableFields`.\n- `lookup_order` reads the connected store: an order found by number is returned only when it belongs to the contact (email or phone).\n- `complete` writes the `outputSchema` fields to `vars[saveAs]` (default `agent`). `handoff_to_human` flags the conversation for a person and ends the run (`end_run`) or follows the `'handoff'` edge (`follow_edge`).\n- After `maxTurns` answers the agent hands off when it can (`handoff_to_human` allowed with `end_run`, or a `'handoff'` edge with `follow_edge`), else it exits on `'error'`. 150,000 tokens also end it on `'error'`.\n- Run variables starting with `__` (the agent's transcript while it is active) are never sent by a webhook or filled into another step's text. For teams that keep no message content, the run history records tool names and outcomes only.\n- Edges: `'complete'`, `'handoff'`, `'timeout'` (no reply in time), `'error'` (`vars[saveAs + '_error']` says why, such as `max_turns`).\n\n**handoff**: `{ note, assignTo }`. Terminates the run as `exited` and flags the conversation for a human operator.\n\n**start_call**: `{ to, forwardTo, requirePermissionFirst, recordingEnabled, saveAs }`. WhatsApp-only. `forwardTo` can be `tel:+E164`, `sip:user@host`, or `wss://…` (AI voice agent). Edges: `'success'`, `'permission_required'`, `'failed'`.\n\n**a_b_split**: `{ percentage: number 0-100 (default 50) }`. Random branch picker. Edges: `'a'` (with probability `percentage/100`), `'b'`.\n\n**set_field**: `{ field, value }`. Persistent custom field on the Contact (unlike `set_variable`, which is run-scoped). The field name is sanitized to `[A-Za-z0-9_]`. No-op on `api_call` runs (no contact).\n\n**enroll_sequence**: `{ sequenceId, saveAs }`. Enrolls the run's contact into a Sequence. Edges: `'success'`, `'error'`.\n\n**add_tag** / **remove_tag**: `{ tag }`. Push or pull a tag on the Contact. No-op on `api_call` runs.\n\n**end**: no config. Terminates the run as `completed`.\n"
    },
    "position": {
      "type": "object",
      "description": "Canvas coordinates (ignored by the executor; used by the visual builder).",
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      }
    },
    "label": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "description": "Optional display name shown on the builder canvas and inspector, falling back to the node type when absent. The nodes array is replaced wholesale on update, so it must be resent to be kept."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/zernio-com-workflow-node"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.