POST
/
workflows
/
blocks
/
chat
cURL
curl --request POST \
  --url https://api.kaizenautomation.com/workflows/blocks/chat \
  --header 'Content-Type: application/json' \
  --data '{
  "workflowId": "<string>",
  "message": "<string>",
  "instructorExecutionId": "<string>"
}'
{
  "blocks": [
    {
      "id": "<string>",
      "name": "<string>",
      "blockReferenceId": "<string>",
      "transformerFn": "<string>",
      "type": "<string>",
      "locator": {
        "role": "<string>",
        "text": "<string>",
        "label": "<string>",
        "placeholder": "<string>",
        "altText": "<string>",
        "title": "<string>",
        "css": "<string>",
        "xpath": "<string>"
      },
      "isCacheable": true,
      "skipIfNotPresent": true,
      "data": {
        "loginId": "<string>"
      },
      "parentRelationship": {
        "blockDepth": 123,
        "positionInSequence": 123,
        "parentBlockId": "<string>",
        "parentSequenceId": "sequence"
      }
    }
  ]
}

Body

application/json
workflowId
string
required
message
string
required
instructorExecutionId
string

Response

Generated blocks from chat message successfully

blocks
array

Sequence of workflow block summaries generated from chat