{
  "workflow_name": "Draft a Gmail reply for every new Cognito Forms entry",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Entry",
          "app": {
            "key": "cognito_forms",
            "fm_app": "cognito_forms"
          },
          "eventSlug": "submit_entry_endpoint",
          "eventTitle": "New Entry",
          "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": "cognito_forms",
        "stepID": "1",
        "action": "submit_entry_endpoint",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "Name_First": "Lucas",
          "Name_Last": "Ferreira",
          "Email": "lucas.ferreira@example.com",
          "Subject": "Partnership enquiry",
          "Message": "We run a design studio and would like to discuss a referral partnership.",
          "Entry_Number": "112",
          "Entry_Action": "Submit"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "Name_First": "Lucas",
              "Name_Last": "Ferreira",
              "Email": "lucas.ferreira@example.com",
              "Subject": "Partnership enquiry",
              "Message": "We run a design studio and would like to discuss a referral partnership.",
              "Entry_Number": "112",
              "Entry_Action": "Submit"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create a Gmail draft reply",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "gmail",
            "fm_app": "gmail"
          },
          "eventSlug": "create_draft",
          "eventTitle": "Create Draft"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email_to": "{cognito_forms1.Email}",
          "subject": "Re: {cognito_forms1.Subject}",
          "message": "Hi {cognito_forms1.Name_First},\n\nThanks for getting in touch.\n\n\n\nYour message (entry #{cognito_forms1.Entry_Number}):\n> {cognito_forms1.Message}"
        },
        "application": "gmail",
        "action": "create_draft",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 350,
          "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-main_end_placeholder",
        "source": "2",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Draft a Gmail reply for every new Cognito Forms entry",
    "folder": "all",
    "description": "Each new Cognito Forms entry creates a ready-to-send draft in your Gmail account, addressed to the person who filled in the form and quoting their message. You review and personalise every reply before it goes out, without starting from a blank email. After import, map your form fields and edit the draft text.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}