{
  "workflow_name": "Copy new FlowMattic Tables rows into Supabase to keep both databases in sync",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Record",
          "app": {
            "key": "tables",
            "fm_app": "tables"
          },
          "eventSlug": "new_record",
          "eventTitle": "New Record",
          "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": "tables",
        "stepID": "1",
        "action": "new_record",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "record_id": 42,
          "table_id": "customers",
          "record": {
            "Name": "Acme Corp",
            "Email": "buyer@acme.com",
            "Plan": "Pro"
          }
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "record_id": 42,
              "table_id": "customers",
              "record": {
                "Name": "Acme Corp",
                "Email": "buyer@acme.com",
                "Plan": "Pro"
              }
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Insert the row",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "supabase",
            "fm_app": "supabase"
          },
          "eventSlug": "insert_row",
          "eventTitle": "Insert Row"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "table_name": "customers",
          "mapping_type": "json",
          "record_data": "{\"name\":\"{tables1.record.Name}\",\"email\":\"{tables1.record.Email}\",\"plan\":\"{tables1.record.Plan}\"}"
        },
        "application": "supabase",
        "action": "insert_row",
        "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": "Copy new FlowMattic Tables rows into Supabase to keep both databases in sync",
    "folder": "all",
    "description": "Work in FlowMattic Tables, report in Postgres: each new Tables row is copied into Supabase the moment it's added.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}