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.
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
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" }}Was this page helpful?