Skip to content
Proud to collaborate with Microsoft for Startups

meta.content.publish-with-approval ​

Draft Meta organic content and open a staff inbox review envelope. Does not publish — after approve, call meta.content.publish with the approval_envelope_uuid (SOCIAL-004 hard gate).

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-meta
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
connection_uuidstringYes——
actor_uuidstringYes——
channelstringYes——
captionstringNo——
messagestringNo——
page_idstringNo——
instagram_business_account_idstringNo——
media_idstringNo——
image_urlstringNo——
storage_object_uuidstringNo——
storage_object_uuidsjsonNo——
kindstringNo—image
itemsjsonNo——
video_urlstringNo——
file_urlstringNo——
descriptionstringNo——
linkstringNo——
titlestringNo——
review_titlestringNo——
review_reasonstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
connection_uuidstringYes——
actor_uuidstringYes——
channelstringYes——
captionstringNo——
messagestringNo——
page_idstringNo——
instagram_business_account_idstringNo——
media_idstringNo——
image_urlstringNo——
storage_object_uuidstringNo——
storage_object_uuidsjsonNo——
kindstringNo—image
itemsjsonNo——
video_urlstringNo——
file_urlstringNo——
descriptionstringNo——
linkstringNo——
titlestringNo——
review_titlestringNo——
review_reasonstringNo——
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
draft_idstringNo——
approval_envelope_uuidstringNo——
statusstringNo——
draftjsonNo——
request_reviewjsonNo——
completed_atstringNo——

DAG Layers ​

#LayerStepsCompensation
1draftmeta.content.draftmeta.compensation.noop
2request_reviewmeta.content.request-reviewmeta.compensation.noop

Execution Flow ​

Compensation ​

When any layer fails, its compensation steps run in reverse order to roll back the work completed so far.

Sub-workflows ​

Sub-workflowStep name
meta.content.draftdraft
meta.content.request-reviewrequest_review
meta.compensation.noopabandon_draft

Outcomes ​

OutcomeTypeDescriptionState Data Keys
review_requestedSUCCESSDraft stamped and inbox review envelope openeddraft_id, approval_envelope_uuid
failedFAILUREMeta publish-with-approval DAG failedfailure_reason

API Usage ​

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

{
  "workflow_type": "meta.content.publish-with-approval",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "actor_uuid": "value",
    "channel": "value"
  }
}