Skip to content
Proud to collaborate with Microsoft for Startups

meta.content.draft ​

Validate Meta organic content inputs and stamp a draft_id for the publish-with-approval DAG (no Graph mutate).

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-meta
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—Parent DAG workflow run id (engine-injected when used as a step)
organization_uuidstringYes——
connection_uuidstringYes——
channelstringYes—instagram
captionstringNo——
messagestringNo——
page_idstringNo——
instagram_business_account_idstringNo——
media_idstringNo——
image_urlstringNo——
storage_object_uuidstringNo——
linkstringNo——
titlestringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—Parent DAG workflow run id (engine-injected when used as a step)
organization_uuidstringYes——
connection_uuidstringYes——
channelstringNo——
captionstringNo——
messagestringNo——
page_idstringNo——
instagram_business_account_idstringNo——
media_idstringNo——
image_urlstringNo——
storage_object_uuidstringNo——
linkstringNo——
titlestringNo——
draft_idstringNo——
statusstringNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_atstringNo—ISO timestamp when the workflow failed
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
completed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
completedSUCCESSMeta atom completed successfullycompleted_at
failedFAILUREMeta atom failedfailure_reason, error, error_type

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "meta.content.draft",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "channel": "value"
  }
}