{
  "workflow_name": "Back up a Grist table to Google Drive as a CSV whenever a record is added",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Record Added",
          "app": {
            "key": "grist",
            "fm_app": "grist"
          },
          "eventSlug": "record_added",
          "eventTitle": "Record Added",
          "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": "grist",
        "stepID": "1",
        "action": "record_added",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "id": 17,
          "fields": {
            "Name": "Acme Corp",
            "Email": "buyer@acme.com",
            "Status": "urgent",
            "Amount": 1450,
            "Product": "Pro Plan",
            "Quantity": 3,
            "SKU": "PRO-3"
          }
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": 17,
              "fields": {
                "Name": "Acme Corp",
                "Email": "buyer@acme.com",
                "Status": "urgent",
                "Amount": 1450,
                "Product": "Pro Plan",
                "Quantity": 3,
                "SKU": "PRO-3"
              }
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Download as CSV",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "grist",
            "fm_app": "grist"
          },
          "eventSlug": "download_document",
          "eventTitle": "Download Document"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "format": "csv",
          "file_name": "grist-backup"
        },
        "application": "grist",
        "action": "download_document",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Save the backup to Drive",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "google_drive",
            "fm_app": "google_drive"
          },
          "eventSlug": "upload_file",
          "eventTitle": "Upload a File"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "file_url": "{grist2.media_url}",
          "file_name": "grist-backup.csv"
        },
        "application": "google_drive",
        "action": "upload_file",
        "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": "Back up a Grist table to Google Drive as a CSV whenever a record is added",
    "folder": "all",
    "description": "Whenever a record is added in Grist, FlowMattic downloads the table as a CSV and uploads that file to Google Drive as a backup.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}