Sequences

Get sequence graph

Returns the current Sequence workflow snapshot.

get/public/v1/sequences/{sequenceId}/graph

Path parameters

sequenceIdinteger required
Example:1

Response

Sequence graph

idstring
assistantIdstring nullable
accountIdnumber nullable
entityIdnumber required
type'FLOW' | 'AUTOMATION' | 'SEQUENCE' required
createdAtstring required
updatedAtstring nullable
executedboolean
breakingChangeAtstring nullable
breakingChangeReasonstring nullable
snapshotKind'EDITABLE' | 'SEQUENCE_ENROLLMENT'
sourceSnapshotIdstring nullable
pinnedAtstring nullable
warningsstring[]

Example response

{
  "id": "example",
  "assistantId": "example",
  "accountId": 1,
  "entityId": 1,
  "type": "FLOW",
  "nodes": [
    {
      "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"
    }
  ],
  "createdAt": "example",
  "updatedAt": "example",
  "breakingChangeAt": "example",
  "breakingChangeReason": "example",
  "snapshotKind": "EDITABLE",
  "sourceSnapshotId": "example",
  "pinnedAt": "example",
  "warnings": [
    "example"
  ]
}

Changes

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