{
  "name": "book_meeting",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {
        "hook": 2363463,
        "maxResults": 1
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        },
        "restore": {
          "parameters": {
            "hook": {
              "data": {
                "editable": "true"
              },
              "label": "book_meeting"
            }
          }
        },
        "parameters": [
          {
            "name": "hook",
            "type": "hook:gateway-webhook",
            "label": "Webhook",
            "required": true
          },
          {
            "name": "maxResults",
            "type": "number",
            "label": "Maximum number of results"
          }
        ],
        "interface": [
          {
            "name": "start_time",
            "type": "text"
          },
          {
            "name": "event_name",
            "type": "text"
          }
        ]
      }
    },
    {
      "id": 2,
      "module": "openai-gpt-3:CreateCompletion",
      "version": 1,
      "parameters": {
        "__IMTCONN__": 1796128
      },
      "mapper": {
        "model": "gpt-4",
        "top_p": "1",
        "select": "chat",
        "messages": [
          {
            "role": "user",
            "content": "Extract the date and time from the following message and return it in ISO 8601 format (Eastern Time). \n\nIf the message only contains a start time, assume the meeting is 15 minutes long. \n\nAlways include both start and end. Respond only with JSON like:\n\n{\n  \"start\": \"2025-07-24T14:30:00-04:00\",\n  \"end\": \"2025-07-24T14:45:00-04:00\",\n  \"attendee_name\": \"John Doe\"\n}\n\nMessage: {{1.start_time}}\nAttendee Email: {{1.attendee_email}}\nEvent Data: {{1.event_name}}"
          }
        ],
        "max_tokens": "60",
        "temperature": "1",
        "n_completions": "1",
        "response_format": "text"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        },
        "restore": {
          "expect": {
            "stop": {
              "mode": "chose"
            },
            "model": {
              "mode": "chose",
              "label": "gpt-4"
            },
            "select": {
              "label": "Create a Chat Completion (GPT and o1 models)"
            },
            "messages": {
              "mode": "chose",
              "items": [
                {
                  "role": {
                    "mode": "chose",
                    "label": "User"
                  }
                }
              ]
            },
            "logit_bias": {
              "mode": "chose"
            },
            "tool_choice": {
              "mode": "chose",
              "label": "Empty"
            },
            "response_format": {
              "mode": "chose",
              "label": "Text"
            },
            "additionalParameters": {
              "mode": "chose"
            }
          },
          "parameters": {
            "__IMTCONN__": {
              "data": {
                "scoped": "true",
                "connection": "openai-gpt-3"
              },
              "label": "My OpenAI connection"
            }
          }
        },
        "parameters": [
          {
            "name": "__IMTCONN__",
            "type": "account:openai-gpt-3",
            "label": "Connection",
            "required": true
          }
        ],
        "expect": [
          {
            "name": "select",
            "type": "select",
            "label": "Select Method",
            "required": true,
            "validate": {
              "enum": [
                "chat",
                "prompt"
              ]
            }
          },
          {
            "name": "temperature",
            "type": "number",
            "label": "Temperature",
            "validate": {
              "max": 2,
              "min": 0
            }
          },
          {
            "name": "top_p",
            "type": "number",
            "label": "Top P",
            "validate": {
              "max": 1,
              "min": 0
            }
          },
          {
            "name": "n_completions",
            "type": "number",
            "label": "Number"
          },
          {
            "name": "frequency_penalty",
            "type": "number",
            "label": "Frequency Penalty",
            "validate": {
              "max": 2,
              "min": -2
            }
          },
          {
            "name": "presence_penalty",
            "type": "number",
            "label": "Presence Penalty",
            "validate": {
              "max": 2,
              "min": -2
            }
          },
          {
            "name": "logit_bias",
            "spec": {
              "name": "value",
              "spec": [
                {
                  "name": "token",
                  "type": "text",
                  "label": "Token ID",
                  "required": true
                },
                {
                  "name": "probability",
                  "type": "number",
                  "label": "Probability",
                  "required": true,
                  "validate": {
                    "max": 100,
                    "min": -100
                  }
                }
              ],
              "type": "collection",
              "label": "Token Probability"
            },
            "type": "array",
            "label": "Token Probability"
          },
          {
            "name": "seed",
            "type": "integer",
            "label": "Seed"
          },
          {
            "name": "tool_choice",
            "type": "select",
            "label": "Tool Choice",
            "validate": {
              "enum": [
                "none",
                "auto",
                "required"
              ]
            }
          },
          {
            "name": "stop",
            "spec": {
              "name": "value",
              "type": "text",
              "label": "Stop Sequence"
            },
            "type": "array",
            "label": "Stop Sequences",
            "validate": {
              "maxItems": 4
            }
          },
          {
            "name": "additionalParameters",
            "spec": {
              "name": "value",
              "spec": [
                {
                  "name": "key",
                  "type": "text",
                  "label": "Parameter Name",
                  "required": true
                },
                {
                  "name": "type",
                  "type": "select",
                  "label": "Input Type",
                  "options": [
                    {
                      "label": "Text",
                      "value": "text",
                      "nested": [
                        {
                          "name": "value",
                          "type": "text",
                          "label": "Parameter Value"
                        }
                      ],
                      "default": true
                    },
                    {
                      "label": "Number",
                      "value": "number",
                      "nested": [
                        {
                          "name": "value",
                          "type": "number",
                          "label": "Parameter Value"
                        }
                      ]
                    },
                    {
                      "label": "Boolean",
                      "value": "boolean",
                      "nested": [
                        {
                          "name": "value",
                          "type": "boolean",
                          "label": "Parameter Value"
                        }
                      ]
                    },
                    {
                      "label": "Date",
                      "value": "date",
                      "nested": [
                        {
                          "name": "value",
                          "type": "date",
                          "label": "Parameter Value"
                        }
                      ]
                    },
                    {
                      "label": "Any",
                      "value": "any",
                      "nested": [
                        {
                          "name": "value",
                          "type": "any",
                          "label": "Parameter Value"
                        }
                      ]
                    }
                  ]
                }
              ],
              "type": "collection",
              "label": "Input Parameter"
            },
            "type": "array",
            "label": "Other Input Parameters"
          },
          {
            "name": "model",
            "type": "select",
            "label": "Model",
            "required": true
          },
          {
            "name": "max_tokens",
            "type": "uinteger",
            "label": "Max Completion Tokens"
          },
          {
            "name": "messages",
            "spec": {
              "name": "value",
              "spec": [
                {
                  "name": "role",
                  "type": "select",
                  "label": "Role",
                  "options": {
                    "store": [
                      {
                        "label": "User",
                        "value": "user",
                        "nested": [
                          {
                            "help": "Text content of the message on behalf of the selected __Role__.",
                            "name": "content",
                            "type": "text",
                            "label": "Text Content"
                          }
                        ]
                      },
                      {
                        "label": "Assistant",
                        "value": "assistant",
                        "nested": [
                          {
                            "help": "Text content of the message on behalf of the selected __Role__.",
                            "name": "content",
                            "type": "text",
                            "label": "Text Content"
                          },
                          {
                            "mode": "edit",
                            "name": "tool_calls",
                            "spec": {
                              "spec": [
                                {
                                  "name": "type",
                                  "type": "hidden",
                                  "default": "function"
                                },
                                {
                                  "help": "Map this directly from the output of a previous **Create a Completion** module. Look for `Choices[]: Message.Tool Calls[]: ID`.",
                                  "name": "id",
                                  "type": "text",
                                  "label": "Tool call ID"
                                },
                                {
                                  "name": "function",
                                  "spec": [
                                    {
                                      "help": "The name of the function previously called.",
                                      "name": "name",
                                      "type": "text",
                                      "label": "Name",
                                      "required": true
                                    },
                                    {
                                      "help": "The arguments previously output by the AI.",
                                      "name": "arguments",
                                      "type": "text",
                                      "label": "Arguments",
                                      "required": true
                                    }
                                  ],
                                  "type": "collection",
                                  "label": "Function"
                                }
                              ],
                              "type": "collection",
                              "label": "Tool Call"
                            },
                            "type": "array",
                            "label": "Tool Calls",
                            "labels": {
                              "add": "Add tool call"
                            },
                            "mappable": {
                              "help": "You can map the entire `Choices[]: Message.Tool Calls` array from a previous Create a Completion module here."
                            }
                          }
                        ]
                      },
                      {
                        "label": "Developer / System",
                        "value": "system",
                        "nested": [
                          {
                            "help": "Text content of the message on behalf of the selected __Role__.",
                            "name": "content",
                            "type": "text",
                            "label": "Text Content"
                          }
                        ]
                      },
                      {
                        "label": "Tool",
                        "value": "tool",
                        "nested": [
                          {
                            "help": "The return of the function. This role should only be used when you have processed a previous function call and want to send the output of the function execution back to the AI.",
                            "name": "content",
                            "type": "text",
                            "label": "Text Content",
                            "required": true
                          },
                          {
                            "help": "Map this directly from the output of a previous **Create a Completion** module. Look for `Choices[]: Message.Tool Calls[]: ID`.",
                            "name": "tool_call_id",
                            "type": "text",
                            "label": "Tool Call ID.",
                            "required": true
                          }
                        ]
                      }
                    ]
                  },
                  "required": true
                }
              ],
              "type": "collection",
              "label": "Message"
            },
            "type": "array",
            "label": "Messages",
            "required": true
          },
          {
            "name": "response_format",
            "type": "select",
            "label": "Response Format",
            "validate": {
              "enum": [
                "text",
                "json_object"
              ]
            }
          }
        ],
        "interface": [
          {
            "name": "result",
            "type": "any",
            "label": "Result"
          },
          {
            "name": "id",
            "type": "text",
            "label": "ID"
          },
          {
            "name": "object",
            "type": "text",
            "label": "Object"
          },
          {
            "name": "created",
            "type": "date",
            "label": "Created"
          },
          {
            "name": "model",
            "type": "text",
            "label": "Model"
          },
          {
            "name": "choices",
            "spec": [
              {
                "name": "text",
                "type": "text",
                "label": "Text"
              },
              {
                "name": "index",
                "type": "number",
                "label": "Index"
              },
              {
                "name": "logprobs",
                "type": "text",
                "label": "Log Probs"
              },
              {
                "name": "finish_reason",
                "type": "text",
                "label": "Finish Reason"
              },
              {
                "name": "message",
                "spec": [
                  {
                    "name": "role",
                    "type": "text",
                    "label": "Role"
                  },
                  {
                    "name": "content",
                    "type": "text",
                    "label": "Content"
                  },
                  {
                    "name": "tool_calls",
                    "spec": [
                      {
                        "name": "id",
                        "type": "text",
                        "label": "ID"
                      },
                      {
                        "name": "type",
                        "type": "text",
                        "label": "Type"
                      },
                      {
                        "name": "function",
                        "spec": [
                          {
                            "name": "name",
                            "type": "text",
                            "label": "Name"
                          },
                          {
                            "name": "arguments",
                            "type": "text",
                            "label": "Arguments"
                          }
                        ],
                        "type": "collection",
                        "label": "Function"
                      }
                    ],
                    "type": "array",
                    "label": "Tool Calls"
                  },
                  {
                    "name": "refusal",
                    "type": "text",
                    "label": "Refusal"
                  },
                  {
                    "name": "annotations",
                    "spec": [
                      {
                        "name": "type",
                        "type": "text",
                        "label": "Type"
                      },
                      {
                        "name": "url_citation",
                        "spec": [
                          {
                            "name": "end_index",
                            "type": "number",
                            "label": "End Index"
                          },
                          {
                            "name": "start_index",
                            "type": "number",
                            "label": "Start Index"
                          },
                          {
                            "name": "title",
                            "type": "text",
                            "label": "Title"
                          },
                          {
                            "name": "url",
                            "type": "text",
                            "label": "URL"
                          }
                        ],
                        "type": "collection",
                        "label": "URL Citation"
                      }
                    ],
                    "type": "array",
                    "label": "Annotations"
                  }
                ],
                "type": "collection",
                "label": "Message"
              }
            ],
            "type": "array",
            "label": "Choices"
          },
          {
            "name": "usage",
            "spec": [
              {
                "name": "prompt_tokens",
                "type": "number",
                "label": "Prompt Tokens"
              },
              {
                "name": "completion_tokens",
                "type": "text",
                "label": "Completion Tokens"
              },
              {
                "name": "total_tokens",
                "type": "number",
                "label": "Total Tokens"
              },
              {
                "name": "prompt_tokens_details",
                "spec": [
                  {
                    "name": "cached_tokens",
                    "type": "uinteger",
                    "label": "Cached Tokens"
                  },
                  {
                    "name": "text_tokens",
                    "type": "uinteger",
                    "label": "Text Tokens"
                  },
                  {
                    "name": "image_tokens",
                    "type": "uinteger",
                    "label": "Image Tokens"
                  },
                  {
                    "name": "audio_tokens",
                    "type": "uinteger",
                    "label": "Audio Tokens"
                  }
                ],
                "type": "collection",
                "label": "Prompt Tokens Details"
              },
              {
                "name": "completion_tokens_details",
                "spec": [
                  {
                    "name": "reasoning_tokens",
                    "type": "uinteger",
                    "label": "Reasoning Tokens"
                  },
                  {
                    "name": "text_tokens",
                    "type": "uinteger",
                    "label": "Text Tokens"
                  },
                  {
                    "name": "audio_tokens",
                    "type": "uinteger",
                    "label": "Audio Tokens"
                  },
                  {
                    "name": "accepted_prediction_tokens",
                    "type": "uinteger",
                    "label": "Accepted Prediction Tokens"
                  },
                  {
                    "name": "rejected_prediction_tokens",
                    "type": "uinteger",
                    "label": "Rejected Prediction Tokens"
                  }
                ],
                "type": "collection",
                "label": "Completion Tokens Details"
              }
            ],
            "type": "collection",
            "label": "Usage"
          },
          {
            "name": "service_tier",
            "type": "text",
            "label": "Service Tier"
          },
          {
            "name": "system_fingerprint",
            "type": "text",
            "label": "System Fingerprint"
          }
        ]
      }
    },
    {
      "id": 4,
      "module": "json:ParseJSON",
      "version": 1,
      "parameters": {
        "type": 240237
      },
      "mapper": {
        "json": "{{2.result}}"
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        },
        "restore": {
          "parameters": {
            "type": {
              "label": "EventTime"
            }
          }
        },
        "parameters": [
          {
            "name": "type",
            "type": "udt",
            "label": "Data structure"
          }
        ],
        "expect": [
          {
            "name": "json",
            "type": "text",
            "label": "JSON string",
            "required": true
          }
        ],
        "interface": [
          {
            "help": "ISO 8601 start time of the event (Eastern Time)",
            "name": "start",
            "type": "text",
            "label": null,
            "default": null,
            "required": false,
            "multiline": false
          },
          {
            "help": "ISO 8601 end time of the event (Eastern Time)",
            "name": "end",
            "type": "text",
            "label": null,
            "default": null,
            "required": false,
            "multiline": false
          }
        ]
      }
    },
    {
      "id": 3,
      "module": "google-calendar:createAnEvent",
      "version": 5,
      "parameters": {
        "__IMTCONN__": 2625482
      },
      "mapper": {
        "end": "{{4.end}}",
        "start": "{{4.start}}",
        "select": "detail",
        "colorId": 1,
        "summary": "AI Automation Demo with Nate Shelly",
        "calendar": "nate.shelly@vitoautomation.com",
        "duration": "00:15",
        "attendees": [
          {
            "email": "nshelly382@gmail.com",
            "displayName": "Pete"
          }
        ],
        "overrides": [
          {
            "method": "popup",
            "minutes": "10"
          },
          {
            "method": "email",
            "minutes": "1440"
          }
        ],
        "visibility": "default",
        "allDayEvent": false,
        "description": "We’ll walk through a few ideas tailored to your business and explore ways automation can save time, reduce costs, or increase output.",
        "sendUpdates": "all",
        "transparency": "opaque",
        "conferenceDate": true,
        "guestPermissions": {
          "guestsCanModify": false,
          "guestsCanInviteOthers": true,
          "guestsCanSeeOtherGuests": true
        }
      },
      "metadata": {
        "designer": {
          "x": 900,
          "y": 0
        },
        "restore": {
          "expect": {
            "select": {
              "label": "In Detail"
            },
            "colorId": {
              "mode": "chose",
              "label": "#a4bdfc (#1d1d1d)"
            },
            "calendar": {
              "mode": "chose",
              "label": "nate.shelly@vitoautomation.com"
            },
            "attendees": {
              "mode": "chose",
              "items": [
                null
              ]
            },
            "overrides": {
              "mode": "chose",
              "items": [
                {
                  "method": {
                    "mode": "chose",
                    "label": "Pop-up"
                  }
                },
                {
                  "method": {
                    "mode": "chose",
                    "label": "Email"
                  }
                }
              ]
            },
            "recurrence": {
              "mode": "chose"
            },
            "visibility": {
              "mode": "chose",
              "label": "Default"
            },
            "allDayEvent": {
              "mode": "chose"
            },
            "attachments": {
              "mode": "chose"
            },
            "sendUpdates": {
              "mode": "chose",
              "label": "To All Guests"
            },
            "transparency": {
              "mode": "chose",
              "label": "Busy"
            },
            "conferenceDate": {
              "mode": "chose"
            }
          },
          "parameters": {
            "__IMTCONN__": {
              "data": {
                "scoped": "true",
                "connection": "google"
              },
              "label": "My Google Vito Automation connection (nate.shelly@vitoautomation.com)"
            }
          }
        },
        "parameters": [
          {
            "name": "__IMTCONN__",
            "type": "account:google",
            "label": "Connection",
            "required": true
          }
        ],
        "expect": [
          {
            "name": "select",
            "type": "select",
            "label": "Create an Event",
            "required": true,
            "validate": {
              "enum": [
                "quick",
                "detail"
              ]
            }
          },
          {
            "name": "calendar",
            "type": "select",
            "label": "Calendar ID",
            "required": true
          },
          {
            "name": "colorId",
            "type": "select",
            "label": "Color"
          },
          {
            "name": "summary",
            "type": "text",
            "label": "Event Name",
            "required": true
          },
          {
            "name": "allDayEvent",
            "type": "boolean",
            "label": "All Day Event",
            "required": true
          },
          {
            "name": "start",
            "time": true,
            "type": "date",
            "label": "Start Date",
            "required": true
          },
          {
            "name": "end",
            "time": true,
            "type": "date",
            "label": "End Date"
          },
          {
            "name": "duration",
            "type": "time",
            "label": "Duration"
          },
          {
            "name": "description",
            "type": "text",
            "label": "Description"
          },
          {
            "name": "location",
            "type": "text",
            "label": "Location"
          },
          {
            "name": "useDefault",
            "type": "boolean",
            "label": "Use the default reminder settings for this event"
          },
          {
            "name": "overrides",
            "spec": [
              {
                "name": "method",
                "type": "select",
                "label": "Method",
                "options": [
                  {
                    "label": "Email",
                    "value": "email"
                  },
                  {
                    "label": "Pop-up",
                    "value": "popup"
                  }
                ],
                "required": true
              },
              {
                "name": "minutes",
                "type": "uinteger",
                "label": "Minutes",
                "required": true,
                "validate": {
                  "max": 40320
                }
              }
            ],
            "type": "array",
            "label": "Reminders",
            "validate": {
              "maxItems": 5
            }
          },
          {
            "name": "attendees",
            "spec": [
              {
                "name": "displayName",
                "type": "text",
                "label": "Name"
              },
              {
                "name": "email",
                "type": "email",
                "label": "Email",
                "required": true
              }
            ],
            "type": "array",
            "label": "Attendees"
          },
          {
            "name": "transparency",
            "type": "select",
            "label": "Show me as",
            "required": true,
            "validate": {
              "enum": [
                "opaque",
                "transparent"
              ]
            }
          },
          {
            "name": "visibility",
            "type": "select",
            "label": "Visibility",
            "required": true,
            "validate": {
              "enum": [
                "default",
                "public",
                "private"
              ]
            }
          },
          {
            "name": "sendUpdates",
            "type": "select",
            "label": "Send notifications about the event creation",
            "validate": {
              "enum": [
                "all",
                "externalOnly",
                "none"
              ]
            }
          },
          {
            "name": "guestPermissions",
            "spec": [
              {
                "name": "guestsCanModify",
                "type": "boolean",
                "label": "Modify event",
                "required": true
              },
              {
                "name": "guestsCanInviteOthers",
                "type": "boolean",
                "label": "Invite others",
                "required": true
              },
              {
                "name": "guestsCanSeeOtherGuests",
                "type": "boolean",
                "label": "See guest list",
                "required": true
              }
            ],
            "type": "collection",
            "label": "Guest Permissions"
          },
          {
            "name": "recurrence",
            "spec": {
              "name": "value",
              "type": "text",
              "label": "Value"
            },
            "type": "array",
            "label": "Recurrence"
          },
          {
            "name": "conferenceDate",
            "type": "boolean",
            "label": "Add Google Meet Video Conferencing",
            "required": true
          },
          {
            "name": "attachments",
            "spec": [
              {
                "name": "fileUrl",
                "type": "url",
                "label": "File URL",
                "required": true
              }
            ],
            "type": "array",
            "label": "Attachments"
          }
        ],
        "interface": [
          {
            "name": "kind",
            "type": "text",
            "label": "Kind"
          },
          {
            "name": "etag",
            "type": "text",
            "label": "Etag"
          },
          {
            "name": "id",
            "type": "text",
            "label": "Event ID"
          },
          {
            "name": "status",
            "type": "text",
            "label": "Status"
          },
          {
            "name": "htmlLink",
            "type": "text",
            "label": "Html Link"
          },
          {
            "name": "description",
            "type": "text",
            "label": "Description"
          },
          {
            "name": "location",
            "type": "text",
            "label": "Location"
          },
          {
            "name": "created",
            "type": "date",
            "label": "Created"
          },
          {
            "name": "updated",
            "type": "date",
            "label": "Updated"
          },
          {
            "name": "summary",
            "type": "text",
            "label": "Summary"
          },
          {
            "name": "colorId",
            "type": "text",
            "label": "Color ID"
          },
          {
            "name": "creator",
            "spec": [
              {
                "name": "email",
                "type": "text",
                "label": "Email"
              },
              {
                "name": "displayName",
                "type": "text",
                "label": "Display Name"
              },
              {
                "name": "self",
                "type": "boolean",
                "label": "Self"
              }
            ],
            "type": "collection",
            "label": "Creator"
          },
          {
            "name": "organizer",
            "spec": [
              {
                "name": "email",
                "type": "text",
                "label": "Email"
              },
              {
                "name": "displayName",
                "type": "text",
                "label": "Display Name"
              },
              {
                "name": "self",
                "type": "boolean",
                "label": "Self"
              }
            ],
            "type": "collection",
            "label": "Organizer"
          },
          {
            "name": "start",
            "type": "date",
            "label": "Start"
          },
          {
            "name": "end",
            "type": "date",
            "label": "End"
          },
          {
            "name": "recurrence",
            "type": "array",
            "label": "Recurrence"
          },
          {
            "name": "recurringEventId",
            "type": "text",
            "label": "Recurring Event ID"
          },
          {
            "name": "originalStartTime",
            "spec": [
              {
                "name": "dateTime",
                "time": true,
                "type": "date",
                "label": "Date Time"
              },
              {
                "name": "timeZone",
                "type": "text",
                "label": "Time Zone"
              }
            ],
            "type": "collection",
            "label": "Original Start Time"
          },
          {
            "name": "transparency",
            "type": "text",
            "label": "Transparency"
          },
          {
            "name": "iCalUID",
            "type": "text",
            "label": "I Cal UID"
          },
          {
            "name": "sequence",
            "type": "number",
            "label": "Sequence"
          },
          {
            "name": "attendees",
            "spec": [
              {
                "name": "email",
                "type": "email",
                "label": "Email"
              },
              {
                "name": "self",
                "type": "boolean",
                "label": "Self"
              },
              {
                "name": "organizer",
                "type": "boolean",
                "label": "Organizer"
              },
              {
                "name": "displayName",
                "type": "text",
                "label": "Display Name"
              },
              {
                "name": "responseStatus",
                "type": "text",
                "label": "Response Status"
              },
              {
                "name": "optional",
                "type": "boolean",
                "label": "Optional"
              }
            ],
            "type": "array",
            "label": "Attendees"
          },
          {
            "name": "guestsCanInviteOthers",
            "type": "boolean",
            "label": "Guests Can Invite Others"
          },
          {
            "name": "hangoutLink",
            "type": "url",
            "label": "Hangout Link"
          },
          {
            "name": "conferenceData",
            "spec": [
              {
                "name": "createRequest",
                "spec": [
                  {
                    "name": "requestId",
                    "type": "text",
                    "label": "Request ID"
                  },
                  {
                    "name": "conferenceSolutionKey",
                    "spec": [
                      {
                        "name": "type",
                        "type": "text",
                        "label": "Type"
                      }
                    ],
                    "type": "collection",
                    "label": "Conference Solution Key"
                  },
                  {
                    "name": "status",
                    "spec": [
                      {
                        "name": "statusCode",
                        "type": "text",
                        "label": "Status Code"
                      }
                    ],
                    "type": "collection",
                    "label": "Status"
                  }
                ],
                "type": "collection",
                "label": "Create Request"
              },
              {
                "name": "entryPoints",
                "spec": {
                  "spec": [
                    {
                      "name": "regionCode",
                      "type": "text",
                      "label": "Region Code"
                    },
                    {
                      "name": "entryPointType",
                      "type": "text",
                      "label": "Entry Point Type"
                    },
                    {
                      "name": "uri",
                      "type": "text",
                      "label": "Uri"
                    },
                    {
                      "name": "label",
                      "type": "text",
                      "label": "Label"
                    },
                    {
                      "name": "pin",
                      "type": "text",
                      "label": "Pin"
                    }
                  ],
                  "type": "collection"
                },
                "type": "array",
                "label": "Entry Points"
              },
              {
                "name": "conferenceSolution",
                "spec": [
                  {
                    "name": "key",
                    "spec": [
                      {
                        "name": "type",
                        "type": "text",
                        "label": "Type"
                      }
                    ],
                    "type": "collection",
                    "label": "Key"
                  },
                  {
                    "name": "name",
                    "type": "text",
                    "label": "Name"
                  },
                  {
                    "name": "iconUri",
                    "type": "text",
                    "label": "Icon Uri"
                  }
                ],
                "type": "collection",
                "label": "Conference Solution"
              },
              {
                "name": "conferenceId",
                "type": "text",
                "label": "Conference ID"
              },
              {
                "name": "signature",
                "type": "text",
                "label": "Signature"
              }
            ],
            "type": "collection",
            "label": "Conference Data"
          },
          {
            "name": "reminders",
            "spec": [
              {
                "name": "useDefault",
                "type": "boolean",
                "label": "Use Default"
              },
              {
                "name": "overrides",
                "spec": {
                  "spec": [
                    {
                      "name": "method",
                      "type": "text",
                      "label": "Method"
                    },
                    {
                      "name": "minutes",
                      "type": "number",
                      "label": "Minutes"
                    }
                  ],
                  "type": "collection"
                },
                "type": "array",
                "label": "Overrides"
              }
            ],
            "type": "collection",
            "label": "Reminders"
          },
          {
            "name": "eventType",
            "type": "text",
            "label": "Event Type"
          },
          {
            "name": "visibility",
            "type": "text",
            "label": "Visibility"
          },
          {
            "name": "outOfOfficeProperties",
            "spec": [
              {
                "name": "autoDeclineMode",
                "type": "text",
                "label": "Auto Decline Mode"
              },
              {
                "name": "declineMessage",
                "type": "text",
                "label": "Decline Message"
              }
            ],
            "type": "collection",
            "label": "Out of Office Properties"
          },
          {
            "name": "guestsCanSeeOtherGuests",
            "type": "boolean",
            "label": "Guests Can See Other Guests"
          },
          {
            "name": "attachments",
            "spec": {
              "spec": [
                {
                  "name": "fileUrl",
                  "type": "url",
                  "label": "File URL"
                },
                {
                  "name": "title",
                  "type": "text",
                  "label": "Title"
                },
                {
                  "name": "mimeType",
                  "type": "text",
                  "label": "Mime Type"
                },
                {
                  "name": "iconLink",
                  "type": "url",
                  "label": "Icon Link"
                },
                {
                  "name": "fileId",
                  "type": "text",
                  "label": "File ID"
                }
              ],
              "type": "collection"
            },
            "type": "array",
            "label": "Attachments"
          },
          {
            "name": "workingLocationProperties",
            "spec": [
              {
                "name": "type",
                "type": "text",
                "label": "Type"
              },
              {
                "name": "officeLocation",
                "type": "collection",
                "label": "Office Location"
              },
              {
                "name": "homeOffice",
                "type": "collection",
                "label": "Home Office"
              }
            ],
            "type": "collection",
            "label": "Working Location Properties"
          },
          {
            "name": "guestsCanModify",
            "type": "boolean",
            "label": "Guests Can Modify"
          }
        ],
        "advanced": true
      }
    },
    {
      "id": 5,
      "module": "onesaas:codejavascript",
      "version": 2,
      "parameters": {
        "__IMTCONN__": 4369617
      },
      "mapper": {
        "jsCode": "// Diagnostic code: Try to find any global input variable\nlet debugOutput = {\n    message: \"Attempting to find input data...\",\n    typeofBundle: typeof bundle,\n    typeofInputData: typeof inputData, // Common alternative name\n    typeofParameters: typeof parameters, // Another common alternative\n    typeofData: typeof data, // Yet another\n    typeofCalendarDataDirect: typeof calendarData // If passed as direct variable\n};\n\n// If bundle is defined, let's explore it\nif (typeof bundle !== 'undefined') {\n    debugOutput.bundleInputData = bundle.inputData;\n}\n\nreturn debugOutput;",
        "otherInputParameters": [
          {
            "key": "calendarData",
            "value": "{{`3`}}"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 1200,
          "y": 0
        },
        "restore": {
          "expect": {
            "otherInputParameters": {
              "mode": "chose",
              "items": [
                null
              ]
            }
          },
          "parameters": {
            "__IMTCONN__": {
              "data": {
                "scoped": "true",
                "connection": "onesaas2"
              },
              "label": "My 0-CodeKit connection"
            }
          }
        },
        "parameters": [
          {
            "name": "__IMTCONN__",
            "type": "account:onesaas2",
            "label": "Connection",
            "required": true
          }
        ],
        "expect": [
          {
            "name": "otherInputParameters",
            "spec": [
              {
                "name": "key",
                "type": "text",
                "label": "Key"
              },
              {
                "name": "value",
                "type": "any",
                "label": "Value"
              }
            ],
            "type": "array",
            "label": "Other Input Parameters"
          },
          {
            "name": "jsCode",
            "type": "text",
            "label": "Your JavaScript code",
            "required": true
          }
        ],
        "interface": [
          {
            "name": "data",
            "type": "any",
            "label": "Result"
          }
        ],
        "advanced": true
      }
    },
    {
      "id": 6,
      "module": "gateway:WebhookRespond",
      "version": 1,
      "parameters": {},
      "mapper": {
        "body": "{\n  \"status\": \"success\",\n  \"message\": \"Meeting booked successfully.\",\n  \"start_time\": \"{{4.start}}\", // Map from your OpenAI output\n  \"end_time\": \"{{4.end}}\",     // Map from your OpenAI output\n  \"attendee_name\": \"{{4.attendee_name}}\", // Or from OpenAI if extracted\n  \"meetLink\": \"{{3.hangoutLink}}\", // Map from your 0CodeKit output\n  \"eventId\": \"{{3.id}}\"   // Map from your 0CodeKit output\n}",
        "status": "200",
        "headers": []
      },
      "metadata": {
        "designer": {
          "x": 1500,
          "y": 0
        },
        "restore": {
          "expect": {
            "headers": {
              "mode": "chose"
            }
          }
        },
        "expect": [
          {
            "name": "status",
            "type": "uinteger",
            "label": "Status",
            "required": true,
            "validate": {
              "min": 100
            }
          },
          {
            "name": "body",
            "type": "any",
            "label": "Body"
          },
          {
            "name": "headers",
            "spec": [
              {
                "name": "key",
                "type": "text",
                "label": "Key",
                "required": true,
                "validate": {
                  "max": 256
                }
              },
              {
                "name": "value",
                "type": "text",
                "label": "Value",
                "required": true,
                "validate": {
                  "max": 4096
                }
              }
            ],
            "type": "array",
            "label": "Custom headers",
            "validate": {
              "maxItems": 16
            }
          }
        ],
        "advanced": true
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "slots": null,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    },
    "zone": "us1.make.com",
    "notes": []
  }
}