{
  "workflow_name": "Add an AI-written outreach note to every new CRM contact",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Contact Created",
          "app": {
            "key": "fluentcrm",
            "fm_app": "fluentcrm"
          },
          "eventSlug": "fluentcrm_contact_created",
          "eventTitle": "New Contact 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": "fluentcrm",
        "stepID": "1",
        "action": "fluentcrm_contact_created",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "id": "321",
          "email": "lead@example.com",
          "first_name": "Alex",
          "last_name": "Kim",
          "company": "Acme"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": "321",
              "email": "lead@example.com",
              "first_name": "Alex",
              "last_name": "Kim",
              "company": "Acme"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Draft outreach note",
          "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": "Suggest a friendly first-touch outreach note for a new lead named {fluentcrm1.first_name} at {fluentcrm1.company}.",
          "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": "Add note to contact",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "fluentcrm",
            "fm_app": "fluentcrm"
          },
          "eventSlug": "add_note_to_contact",
          "eventTitle": "Add Note to Contact"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "contact_email": "{fluentcrm1.email}",
          "note_title": "AI outreach suggestion",
          "note_content": "{openai2.response}"
        },
        "application": "fluentcrm",
        "action": "add_note_to_contact",
        "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": "Add an AI-written outreach note to every new CRM contact",
    "folder": "all",
    "description": "When a contact is created, OpenAI drafts a short intro/next-step note and attaches it to the contact in FluentCRM.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}