workflows
Create workflow
Create a branching conversation workflow (draft) from a node/edge graph. Created in draft status; activate it to start matching inbound messages. The graph is validated structurally; completeness (a trigger node + reachable entry) is required at activation.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
profileIdstring
accountIdstring
platform?string
Default
"whatsapp"Value in
"whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "bluesky" | "reddit"namestring
description?string
nodes?
edges?
entryNodeId?string
The trigger node id; derived from the single trigger node if omitted
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.workflows.createWorkflow({ body: { profileId: 'profile_abc123', accountId: 'account_abc123', name: 'Example', },});console.log(data);{
"success": true,
"workflow": {
"id": "string",
"name": "string",
"description": "string",
"platform": "string",
"status": "string",
"nodeCount": 0,
"entryNodeId": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
}Empty
{
"error": "Unauthorized"
}