Sequences

Create sequence node

Creates a node from the current Sequence allowlist. nodeId and alias are assigned by the server.

post/public/v1/sequences/{sequenceId}/nodes

Path parameters

sequenceIdinteger required
Example:1

Request body

Example request

{
  "node": {
    "name": "example",
    "position": {
      "positionX": 1,
      "positionY": 1
    },
    "type": "WAIT",
    "data": {
      "type": "SEQUENCE_START",
      "mode": "IMMEDIATELY",
      "waitAmount": 1,
      "waitUnit": "DAYS"
    }
  }
}

Response

Sequence node created

nodeIdstring required
aliasstring required
workflowIdstring
namestring
type'SEQUENCE_START' | 'WAIT' | 'SEND_EMAIL' | 'SEND_WHATSAPP_MESSAGE' | 'TODO' | 'SEQUENCE_CONDITION' | 'TRIGGER_WORKFLOW' | 'DYNAMIC_TABLES' required
createdAtstring nullable
updatedAtstring nullable
warningsstring[]

Example response

{
  "alias": "example",
  "workflowId": "example",
  "name": "example",
  "position": {
    "positionX": 1,
    "positionY": 1
  },
  "type": "SEQUENCE_START",
  "handles": [
    {
      "handleId": "example",
      "sourceEdge": {
        "from": "example",
        "fromHandleId": "example",
        "to": "example",
        "toHandleId": "example"
      },
      "text": "example"
    }
  ],
  "targetEdges": [
    {
      "from": "example",
      "fromHandleId": "example",
      "to": "example",
      "toHandleId": "example"
    }
  ],
  "data": {
    "type": "RESPONSE_AI",
    "assistantId": "example",
    "aiModelId": 1,
    "model": "example",
    "aiVendor": "OPENAI",
    "instructions": "example",
    "temperature": 1,
    "exitNodeWhen": "ALL_VARIABLES",
    "knowledgeBaseMode": "DEFAULT",
    "knowledgeBaseIds": [
      1
    ]
  },
  "createdAt": "example",
  "updatedAt": "example",
  "warnings": [
    "example"
  ]
}

Changes

Changed in 1 of the 2 revisions of this API.1