{
  "workflow_name": "Create Google Docs from Gmail emails that match a search every day",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Every Day",
          "app": {
            "key": "schedule",
            "fm_app": "schedule"
          },
          "eventSlug": "day",
          "eventTitle": "Every Day",
          "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": "schedule",
        "stepID": "1",
        "action": "day",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Find Multiple Emails",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "gmail",
            "fm_app": "gmail"
          },
          "eventSlug": "find_multiple_emails",
          "eventTitle": "Find Multiple Emails"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "gmail",
        "action": "find_multiple_emails",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Iterator",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "iterator",
            "fm_app": "iterator"
          },
          "eventSlug": "loop_through_array",
          "eventTitle": "Loop Through Array"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "iteratorArray": "{gmail2.all_emails}",
          "iterator_simple_response": "Yes",
          "iteratorMethod": "single",
          "batchSize": "25"
        },
        "application": "iterator",
        "action": "loop_through_array",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Get Email Details",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "gmail",
            "fm_app": "gmail"
          },
          "eventSlug": "get_email_details",
          "eventTitle": "Get Email Details"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "message_id": "{iterator3.id}"
        },
        "application": "gmail",
        "action": "get_email_details",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "5",
        "position": {
          "x": 700,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "HTML to Markdown",
          "layoutDirection": "horizontal",
          "stepNumber": 5,
          "app": {
            "key": "text_formatter",
            "fm_app": "text_formatter"
          },
          "eventSlug": "html_to_markdown",
          "eventTitle": "HTML to Markdown"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "content": "{gmail4.body_html}"
        },
        "application": "text_formatter",
        "action": "html_to_markdown",
        "nodeType": "step",
        "stepID": "5"
      },
      {
        "id": "6",
        "position": {
          "x": 875,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create Document",
          "layoutDirection": "horizontal",
          "stepNumber": 6,
          "app": {
            "key": "google_docs",
            "fm_app": "google_docs"
          },
          "eventSlug": "create_document",
          "eventTitle": "Create Document"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "title": "{gmail4.subject}",
          "content": "{text_formatter5.result}"
        },
        "application": "google_docs",
        "action": "create_document",
        "nodeType": "step",
        "stepID": "6"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 1050,
          "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-5",
        "source": "4",
        "target": "5",
        "type": "step",
        "data": []
      },
      {
        "id": "e-5-6",
        "source": "5",
        "target": "6",
        "type": "step",
        "data": []
      },
      {
        "id": "e-6-main_end_placeholder",
        "source": "6",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Create Google Docs from Gmail emails that match a search every day",
    "folder": "all",
    "description": "Every day FlowMattic finds Gmail emails matching your search, reads each one, converts its body to Markdown and creates a Google Doc for it.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}