{
  "workflow_name": "Draft support replies with AI and send them to Slack for review",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Ticket Created",
          "app": {
            "key": "fluent_support",
            "fm_app": "fluent_support"
          },
          "eventSlug": "ticket_created",
          "eventTitle": "Ticket 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": "fluent_support",
        "stepID": "1",
        "action": "ticket_created",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "ticket_id": "778",
          "subject": "How do I reset my password?",
          "content": "I can't log in.",
          "customer_name": "Dana Fox",
          "customer_email": "dana@example.com"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "ticket_id": "778",
              "subject": "How do I reset my password?",
              "content": "I can't log in.",
              "customer_name": "Dana Fox",
              "customer_email": "dana@example.com"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Draft reply with AI",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "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": "Write a friendly, concise support reply to this ticket. Subject: {fluent_support1.subject}. Message: {fluent_support1.content}",
          "ai_model": "gpt-4o",
          "max_tokens": "600"
        },
        "application": "openai",
        "action": "generate_content",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Notify team on Slack",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "slack",
            "fm_app": "slack"
          },
          "eventSlug": "send_message_to_channel",
          "eventTitle": "Send Channel Message"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "message_text": "✍️ Draft reply for ticket #{fluent_support1.ticket_id} ({fluent_support1.subject}):\n\n{openai2.response}"
        },
        "application": "slack",
        "action": "send_message_to_channel",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 525,
          "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-main_end_placeholder",
        "source": "3",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Draft support replies with AI and send them to Slack for review",
    "folder": "all",
    "description": "When a ticket comes in, OpenAI drafts a helpful first reply and posts it to Slack so an agent can review and send.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}