{
  "workflow_name": "Auto-summarise long posts and cross-post short ones",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Post Published",
          "app": {
            "key": "wordpress",
            "fm_app": "wordpress"
          },
          "eventSlug": "new_post",
          "eventTitle": "New Post",
          "layoutDirection": "horizontal",
          "stepNumber": 1
        },
        "targetPosition": "bottom",
        "type": "trigger",
        "stepNumber": 1,
        "expanded": true,
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "application": "wordpress",
        "stepID": "1",
        "action": "new_post",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "post_id": "555",
          "post_title": "How we automate onboarding",
          "post_url": "https://example.com/blog/onboarding",
          "post_content": "Full article body goes here...",
          "post_excerpt": "A behind-the-scenes look...",
          "post_author": "Editor",
          "word_count": "1800"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "post_id": "555",
              "post_title": "How we automate onboarding",
              "post_url": "https://example.com/blog/onboarding",
              "post_content": "Full article body goes here...",
              "post_excerpt": "A behind-the-scenes look...",
              "post_author": "Editor",
              "word_count": "1800"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Branch by FlowMattic",
          "app": {
            "key": "branch",
            "fm_app": "branch"
          },
          "eventSlug": "evaluate_condition",
          "eventTitle": "Branch",
          "customLabel": "Long-form post (1000+ words)?",
          "layoutDirection": "horizontal",
          "stepNumber": 2
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "id": "c1",
                "key": "{wordpress1.word_count}",
                "condition": "greater_than",
                "value": "1000"
              }
            ]
          }
        },
        "filterConditions": {
          "1": [
            {
              "id": "c1",
              "key": "{wordpress1.word_count}",
              "condition": "greater_than",
              "value": "1000"
            }
          ]
        },
        "application": "branch",
        "stepID": "2",
        "action": "evaluate_condition",
        "nodeType": "branch"
      },
      {
        "id": "2-branchRoute_yes",
        "position": {
          "x": 395,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Yes",
          "branchType": "yes",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "branchRoute": true,
        "branchType": "yes",
        "stepID": "2-branchRoute_yes",
        "nodeType": "branchRoute",
        "actionAppArgs": []
      },
      {
        "id": "3",
        "position": {
          "x": 595,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Summarise with AI",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "openai",
            "fm_app": "openai"
          },
          "eventSlug": "generate_content",
          "eventTitle": "Generate Content"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "prompt": "Summarise in 3 sentences: {wordpress1.post_content}",
          "ai_model": "gpt-4o",
          "max_tokens": "300"
        },
        "application": "openai",
        "action": "generate_content",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 770,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Send Email",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "email",
            "fm_app": "email"
          },
          "eventSlug": "send_email",
          "eventTitle": "Send Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "to_email": "editor@yourcompany.com",
          "email_subject": "Summary: {wordpress1.post_title}",
          "email_body": "{openai3.response}\n\nRead: {wordpress1.post_url}"
        },
        "application": "email",
        "action": "send_email",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "2_yes_placeholder",
        "position": {
          "x": 945,
          "y": -160
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "2_yes_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      },
      {
        "id": "2-branchRoute_no",
        "position": {
          "x": 395,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "No",
          "branchType": "no",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "branchRoute": true,
        "branchType": "no",
        "stepID": "2-branchRoute_no",
        "nodeType": "branchRoute",
        "actionAppArgs": []
      },
      {
        "id": "5",
        "position": {
          "x": 595,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "Send Email",
          "layoutDirection": "horizontal",
          "stepNumber": 5,
          "app": {
            "key": "email",
            "fm_app": "email"
          },
          "eventSlug": "send_email",
          "eventTitle": "Send Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "to_email": "editor@yourcompany.com",
          "email_subject": "New short post: {wordpress1.post_title}",
          "email_body": "{wordpress1.post_url}"
        },
        "application": "email",
        "action": "send_email",
        "nodeType": "step",
        "stepID": "5"
      },
      {
        "id": "2_no_placeholder",
        "position": {
          "x": 770,
          "y": 160
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "2_no_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-2-branchRoute_yes",
        "source": "2",
        "target": "2-branchRoute_yes",
        "type": "branch",
        "data": []
      },
      {
        "id": "e-2-branchRoute_yes-3",
        "source": "2-branchRoute_yes",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-4",
        "source": "3",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-2_yes_placeholder",
        "source": "4",
        "target": "2_yes_placeholder",
        "type": "placeholder",
        "data": []
      },
      {
        "id": "e-2-2-branchRoute_no",
        "source": "2",
        "target": "2-branchRoute_no",
        "type": "branch",
        "data": []
      },
      {
        "id": "e-2-branchRoute_no-5",
        "source": "2-branchRoute_no",
        "target": "5",
        "type": "step",
        "data": []
      },
      {
        "id": "e-5-2_no_placeholder",
        "source": "5",
        "target": "2_no_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Auto-summarise long posts and cross-post short ones",
    "folder": "all",
    "description": "When a post is published, branch on its length — long-form gets an AI summary emailed to the newsletter editor, short updates are cross-posted as-is. Uses a Branch.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}