{
  "workflow_name": "Create Google Calendar events from Email Parser emails with AI",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Email Received",
          "app": {
            "key": "email_parser",
            "fm_app": "email_parser"
          },
          "eventSlug": "email_received",
          "eventTitle": "Email Received",
          "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": "email_parser",
        "stepID": "1",
        "action": "email_received",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "from_name": "Riverside Dental",
          "from_email": "bookings@example.com",
          "to_email": "calendar.ab12cd@example.com",
          "subject": "Your appointment is confirmed",
          "message_text": "Hi Sam, your check-up is booked for Thursday 6 November 2026 at 9:15 AM at Riverside Dental, 22 Mill Lane. Please arrive 10 minutes early.",
          "date": "Thu, 23 Oct 2026 08:02:11 +0000"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "from_name": "Riverside Dental",
              "from_email": "bookings@example.com",
              "to_email": "calendar.ab12cd@example.com",
              "subject": "Your appointment is confirmed",
              "message_text": "Hi Sam, your check-up is booked for Thursday 6 November 2026 at 9:15 AM at Riverside Dental, 22 Mill Lane. Please arrive 10 minutes early.",
              "date": "Thu, 23 Oct 2026 08:02:11 +0000"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "AI Agent by FlowMattic",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "stepIndex": 2,
          "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": "You read forwarded emails and add the event they describe to Google Calendar. Work out a short event title, the start and end date and time (assume 60 minutes if no end is given) and the location. Use the time zone America/New_York unless the email states another. If the email does not describe a dated event, do nothing.",
          "user_input": "Subject: {email_parser1.subject}\nFrom: {email_parser1.from_name} <{email_parser1.from_email}>\n\n{email_parser1.message_text}",
          "output_format": "text",
          "application": "ai_agent",
          "responseViewType": "on",
          "include_execution_log": "",
          "include_request_body": ""
        },
        "application": "ai_agent",
        "stepID": "2",
        "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": "2-chatModel",
            "position": {
              "x": 215,
              "y": 172
            }
          },
          "tools": [
            {
              "app": "google_calendar",
              "app_name": "Google Calendar",
              "app_icon": "",
              "action": "create_event",
              "action_title": "Create Detailed Event",
              "tool_name": "Google Calendar - Create Detailed Event",
              "tool_description": "Create the calendar event described in the email",
              "actionAppArgs": {
                "event_title": "AI:",
                "start_datetime": "AI:",
                "end_datetime": "AI:",
                "location": "AI:",
                "event_description": "AI:"
              },
              "configured": true,
              "sourceNodeId": "2-tool"
            }
          ]
        }
      },
      {
        "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": "Create Google Calendar events from Email Parser emails with AI",
    "folder": "all",
    "description": "Forward a booking confirmation, invite or meeting email to your FlowMattic parser address and an AI agent reads it, works out the title, date, time and location, and creates the event in Google Calendar. It saves retyping details from airline, venue and client emails. After import, connect an AI provider and Google Calendar, pick the calendar and set your time zone in the instructions.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}