{
  "workflow_name": "Create comment based on ClickUp new task data using relevant AI model and Post as comment",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Task Created",
          "app": {
            "key": "clickup",
            "fm_app": "clickup"
          },
          "eventSlug": "taskCreated",
          "eventTitle": "Task Created",
          "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": "clickup",
        "stepID": "1",
        "action": "taskCreated",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Get the new task",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "clickup",
            "fm_app": "clickup"
          },
          "eventSlug": "get_task",
          "eventTitle": "Get Task by Task ID"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "task_id": "{clickup1.task_id}"
        },
        "application": "clickup",
        "action": "get_task",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create a Completion",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "openrouter",
            "fm_app": "openrouter"
          },
          "eventSlug": "create_completion",
          "eventTitle": "Create a Completion"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "prompt": "Write a short, helpful comment for this newly created ClickUp task, suggesting a first step.\n\nTask name: {clickup2.name}\n\nTask description: {clickup2.description}"
        },
        "application": "openrouter",
        "action": "create_completion",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Post Task Comment",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "clickup",
            "fm_app": "clickup"
          },
          "eventSlug": "create_comment",
          "eventTitle": "Post Task Comment"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "task_id": "{clickup1.task_id}",
          "comment_text": "{openrouter3.choices_0_message_content}"
        },
        "application": "clickup",
        "action": "create_comment",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 700,
          "y": 0
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "main_end_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-3",
        "source": "2",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-4",
        "source": "3",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-main_end_placeholder",
        "source": "4",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Create comment based on ClickUp new task data using relevant AI model and Post as comment",
    "folder": "all",
    "description": "When a new task is created in ClickUp, FlowMattic fetches the task, sends its name and description to the OpenRouter model you choose, and posts the model's reply back on that task as a comment.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}