{
  "workflow_name": "AI agent that writes a weekly data summary from your sheet",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Every Week",
          "app": {
            "key": "schedule",
            "fm_app": "schedule"
          },
          "eventSlug": "week",
          "eventTitle": "Every Week",
          "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": "week",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Read the metrics sheet",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "google_spreadsheets",
            "fm_app": "google_spreadsheets"
          },
          "eventSlug": "get_rows",
          "eventTitle": "Get Rows"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "google_spreadsheets",
        "action": "get_rows",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "AI Agent by FlowMattic",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "stepIndex": 3,
          "app": {
            "key": "ai_agent",
            "fm_app": "ai_agent"
          },
          "eventSlug": "execute_agent",
          "eventTitle": "Execute Agent"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 350,
          "height": 82
        },
        "actionAppArgs": {
          "system_prompt": "Summarise this week's metrics in plain English, calling out trends and anomalies. Save the summary to Drive and post the headline to Slack.",
          "user_input": "Weekly metrics rows: {google_spreadsheets2.rows}",
          "output_format": "text",
          "application": "ai_agent",
          "responseViewType": "on",
          "include_execution_log": "",
          "include_request_body": ""
        },
        "application": "ai_agent",
        "stepID": "3",
        "nodeType": "aiAgent",
        "agent_config": {
          "chat_model": {
            "connect_id": "",
            "model_id": "gpt-4o",
            "model_name": "GPT-4o",
            "provider": "openai",
            "max_tokens": "1024",
            "temperature": "0.7",
            "top_p": "1",
            "top_k": "0",
            "frequency_penalty": "0",
            "presence_penalty": "0",
            "nodeId": "3-chatModel",
            "position": {
              "x": 390,
              "y": 172
            }
          },
          "tools": [
            {
              "app": "google_drive",
              "app_name": "Google Drive",
              "app_icon": "",
              "action": "create_file_from_text",
              "action_title": "Create File From Text",
              "tool_name": "Google Drive - Create File From Text",
              "tool_description": "Save the report",
              "actionAppArgs": {
                "file_name": "AI:",
                "file_content": "AI:"
              },
              "configured": true,
              "sourceNodeId": "3-tool"
            },
            {
              "app": "slack",
              "app_name": "Slack",
              "app_icon": "",
              "action": "send_message_to_channel",
              "action_title": "Send Channel Message",
              "tool_name": "Slack - Send Channel Message",
              "tool_description": "Post the headline",
              "actionAppArgs": {
                "message_text": "AI:"
              },
              "configured": true,
              "sourceNodeId": "3-tool"
            }
          ]
        }
      },
      {
        "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": "AI agent that writes a weekly data summary from your sheet",
    "folder": "all",
    "description": "Weekly, an AI agent reads a metrics sheet, writes a plain-English summary of trends and anomalies, saves it to Drive, and posts the headline to Slack.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}