{
    "name": "Basic SerpApi-ChatGPT Integration",
    "flow": [
        {
            "id": 1,
            "module": "serpapi:searchGoogleHotels",
            "version": 1,
            "parameters": {},
            "mapper": {
                "q": "rhodes resorts",
                "check_in_date": "2025-05-10",
                "check_out_date": "2025-05-17",
                "adults": "2",
                "children": "2",
                "children_ages": "5,8",
                "amenities": "11,12",
                "pagination_limit": "1"
            },
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 0
                },
                "restore": {
                    "parameters": {},
                    "expect": {
                        "gl": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "hl": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "currency": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "sort_by": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "rating": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "free_cancellation": {
                            "mode": "chose"
                        },
                        "special_offers": {
                            "mode": "chose"
                        },
                        "eco_certified": {
                            "mode": "chose"
                        },
                        "vacation_rentals": {
                            "mode": "chose"
                        },
                        "no_cache": {
                            "mode": "chose"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:serpapi",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "q",
                        "type": "text",
                        "label": "`q` Search Query",
                        "required": true
                    },
                    {
                        "name": "check_in_date",
                        "type": "text",
                        "label": "`check_in_date` Check-in Date",
                        "required": true
                    },
                    {
                        "name": "check_out_date",
                        "type": "text",
                        "label": "`check_out_date` Check-out Date",
                        "required": true
                    },
                    {
                        "name": "adults",
                        "type": "number",
                        "label": "`adults` Number of Adults"
                    },
                    {
                        "name": "children",
                        "type": "number",
                        "label": "`children` Number of Children"
                    },
                    {
                        "name": "children_ages",
                        "type": "text",
                        "label": "`children_ages` Children's Ages"
                    },
                    {
                        "name": "gl",
                        "type": "select",
                        "label": "`gl` Country",
                        "validate": {
                            "enum": [
                                "af",
                                "al",
                                "dz",
                                "as",
                                "ad",
                                "ao",
                                "ai",
                                "aq",
                                "ag",
                                "ar",
                                "am",
                                "aw",
                                "au",
                                "at",
                                "az",
                                "bs",
                                "bh",
                                "bd",
                                "bb",
                                "by",
                                "be",
                                "bz",
                                "bj",
                                "bm",
                                "bt",
                                "bo",
                                "ba",
                                "bw",
                                "bv",
                                "br",
                                "io",
                                "bn",
                                "bg",
                                "bf",
                                "bi",
                                "kh",
                                "cm",
                                "ca",
                                "cv",
                                "ky",
                                "cf",
                                "td",
                                "cl",
                                "cn",
                                "cx",
                                "cc",
                                "co",
                                "km",
                                "cg",
                                "cd",
                                "ck",
                                "cr",
                                "ci",
                                "hr",
                                "cu",
                                "cy",
                                "cz",
                                "dk",
                                "dj",
                                "dm",
                                "do",
                                "ec",
                                "eg",
                                "sv",
                                "gq",
                                "er",
                                "ee",
                                "et",
                                "fk",
                                "fo",
                                "fj",
                                "fi",
                                "fr",
                                "gf",
                                "pf",
                                "tf",
                                "ga",
                                "gm",
                                "ge",
                                "de",
                                "gh",
                                "gi",
                                "gr",
                                "gl",
                                "gd",
                                "gp",
                                "gu",
                                "gt",
                                "gg",
                                "gn",
                                "gw",
                                "gy",
                                "ht",
                                "hm",
                                "va",
                                "hn",
                                "hk",
                                "hu",
                                "is",
                                "in",
                                "id",
                                "ir",
                                "iq",
                                "ie",
                                "im",
                                "il",
                                "it",
                                "je",
                                "jm",
                                "jp",
                                "jo",
                                "kz",
                                "ke",
                                "ki",
                                "kp",
                                "kr",
                                "kw",
                                "kg",
                                "la",
                                "lv",
                                "lb",
                                "ls",
                                "lr",
                                "ly",
                                "li",
                                "lt",
                                "lu",
                                "mo",
                                "mk",
                                "mg",
                                "mw",
                                "my",
                                "mv",
                                "ml",
                                "mt",
                                "mh",
                                "mq",
                                "mr",
                                "mu",
                                "yt",
                                "mx",
                                "fm",
                                "md",
                                "mc",
                                "mn",
                                "me",
                                "ms",
                                "ma",
                                "mz",
                                "mm",
                                "na",
                                "nr",
                                "np",
                                "nl",
                                "an",
                                "nc",
                                "nz",
                                "ni",
                                "ne",
                                "ng",
                                "nu",
                                "nf",
                                "mp",
                                "no",
                                "om",
                                "pk",
                                "pw",
                                "ps",
                                "pa",
                                "pg",
                                "py",
                                "pe",
                                "ph",
                                "pn",
                                "pl",
                                "pt",
                                "pr",
                                "qa",
                                "re",
                                "ro",
                                "ru",
                                "rw",
                                "sh",
                                "kn",
                                "lc",
                                "pm",
                                "vc",
                                "ws",
                                "sm",
                                "st",
                                "sa",
                                "sn",
                                "rs",
                                "sc",
                                "sl",
                                "sg",
                                "sk",
                                "si",
                                "sb",
                                "so",
                                "za",
                                "gs",
                                "es",
                                "lk",
                                "sd",
                                "sr",
                                "sj",
                                "sz",
                                "se",
                                "ch",
                                "sy",
                                "tw",
                                "tj",
                                "tz",
                                "th",
                                "tl",
                                "tg",
                                "tk",
                                "to",
                                "tt",
                                "tn",
                                "tr",
                                "tm",
                                "tc",
                                "tv",
                                "ug",
                                "ua",
                                "ae",
                                "uk",
                                "gb",
                                "us",
                                "um",
                                "uy",
                                "uz",
                                "vu",
                                "ve",
                                "vn",
                                "vg",
                                "vi",
                                "wf",
                                "eh",
                                "ye",
                                "zm",
                                "zw"
                            ]
                        }
                    },
                    {
                        "name": "hl",
                        "type": "select",
                        "label": "`hl` Language",
                        "validate": {
                            "enum": [
                                "af",
                                "ak",
                                "sq",
                                "ws",
                                "am",
                                "ar",
                                "hy",
                                "az",
                                "eu",
                                "be",
                                "bem",
                                "bn",
                                "bh",
                                "xx-bork",
                                "bs",
                                "br",
                                "bg",
                                "bt",
                                "km",
                                "ca",
                                "chr",
                                "ny",
                                "zh-cn",
                                "zh-tw",
                                "co",
                                "hr",
                                "cs",
                                "da",
                                "nl",
                                "xx-elmer",
                                "en",
                                "eo",
                                "et",
                                "ee",
                                "fo",
                                "tl",
                                "fi",
                                "fr",
                                "fy",
                                "gaa",
                                "gl",
                                "ka",
                                "de",
                                "el",
                                "kl",
                                "gn",
                                "gu",
                                "xx-hacker",
                                "ht",
                                "ha",
                                "haw",
                                "iw",
                                "he",
                                "hi",
                                "hu",
                                "is",
                                "ig",
                                "id",
                                "ia",
                                "ga",
                                "it",
                                "ja",
                                "jw",
                                "kn",
                                "kk",
                                "rw",
                                "rn",
                                "xx-klingon",
                                "kg",
                                "ko",
                                "kri",
                                "ku",
                                "ckb",
                                "ky",
                                "lo",
                                "la",
                                "lv",
                                "ln",
                                "lt",
                                "loz",
                                "lg",
                                "ach",
                                "mk",
                                "mg",
                                "ms",
                                "ml",
                                "mt",
                                "mv",
                                "mi",
                                "mr",
                                "mfe",
                                "mo",
                                "mn",
                                "sr-me",
                                "my",
                                "ne",
                                "pcm",
                                "nso",
                                "no",
                                "nn",
                                "oc",
                                "or",
                                "om",
                                "ps",
                                "fa",
                                "xx-pirate",
                                "pl",
                                "pt",
                                "pt-br",
                                "pt-pt",
                                "pa",
                                "qu",
                                "ro",
                                "rm",
                                "nyn",
                                "ru",
                                "gd",
                                "sr",
                                "sh",
                                "st",
                                "tn",
                                "crs",
                                "sn",
                                "sd",
                                "si",
                                "sk",
                                "sl",
                                "so",
                                "es",
                                "es-419",
                                "su",
                                "sw",
                                "sv",
                                "tg",
                                "ta",
                                "tt",
                                "te",
                                "th",
                                "ti",
                                "to",
                                "lua",
                                "tum",
                                "tr",
                                "tk",
                                "tw",
                                "ug",
                                "uk",
                                "ur",
                                "uz",
                                "vu",
                                "vi",
                                "cy",
                                "wo",
                                "xh",
                                "yi",
                                "yo",
                                "zu"
                            ]
                        }
                    },
                    {
                        "name": "currency",
                        "type": "select",
                        "label": "`currency` Currency",
                        "validate": {
                            "enum": [
                                "ALL",
                                "DZD",
                                "ARS",
                                "AMD",
                                "AWG",
                                "AUD",
                                "AZN",
                                "BSD",
                                "BHD",
                                "BYN",
                                "BMD",
                                "BAM",
                                "BRL",
                                "GBP",
                                "BGN",
                                "XPF",
                                "CAD",
                                "CLP",
                                "CNY",
                                "COP",
                                "CRC",
                                "CUP",
                                "CZK",
                                "DKK",
                                "DOP",
                                "EGP",
                                "EUR",
                                "GEL",
                                "HKD",
                                "HUF",
                                "ISK",
                                "INR",
                                "IDR",
                                "IRR",
                                "ILS",
                                "JMD",
                                "JPY",
                                "JOD",
                                "KZT",
                                "KWD",
                                "LBP",
                                "MKD",
                                "MYR",
                                "MXN",
                                "MDL",
                                "MAD",
                                "TWD",
                                "NZD",
                                "NOK",
                                "OMR",
                                "PKR",
                                "PAB",
                                "PEN",
                                "PHP",
                                "PLN",
                                "QAR",
                                "RON",
                                "RUB",
                                "SAR",
                                "RSD",
                                "SGD",
                                "ZAR",
                                "KRW",
                                "SEK",
                                "CHF",
                                "THB",
                                "TRY",
                                "USD",
                                "UAH",
                                "AED",
                                "VND"
                            ]
                        }
                    },
                    {
                        "name": "sort_by",
                        "type": "select",
                        "label": "`sort_by` Sort By",
                        "validate": {
                            "enum": [
                                "3",
                                "8",
                                "13"
                            ]
                        }
                    },
                    {
                        "name": "min_price",
                        "type": "number",
                        "label": "`min_price` Min. Price"
                    },
                    {
                        "name": "max_price",
                        "type": "number",
                        "label": "`max_price` Max. Price"
                    },
                    {
                        "name": "property_types",
                        "type": "text",
                        "label": "`property_types` Property Types"
                    },
                    {
                        "name": "amenities",
                        "type": "text",
                        "label": "`amenities` Amenities"
                    },
                    {
                        "name": "rating",
                        "type": "select",
                        "label": "`rating` Guest Rating",
                        "validate": {
                            "enum": [
                                "7",
                                "8",
                                "9"
                            ]
                        }
                    },
                    {
                        "name": "brands",
                        "type": "text",
                        "label": "`brands` Brands"
                    },
                    {
                        "name": "hotel_class",
                        "type": "text",
                        "label": "`hotel_class` Hotel Class"
                    },
                    {
                        "name": "free_cancellation",
                        "type": "boolean",
                        "label": "`free_cancellation` Free Cancellation"
                    },
                    {
                        "name": "special_offers",
                        "type": "boolean",
                        "label": "`special_offers` Special Offers"
                    },
                    {
                        "name": "eco_certified",
                        "type": "boolean",
                        "label": "`eco_certified` Eco Certified"
                    },
                    {
                        "name": "vacation_rentals",
                        "type": "boolean",
                        "label": "`vacation_rentals` Vacation Rentals"
                    },
                    {
                        "name": "bedrooms",
                        "type": "number",
                        "label": "`bedrooms` Min. bedrooms"
                    },
                    {
                        "name": "bathrooms",
                        "type": "number",
                        "label": "`bathrooms` Min. bathrooms"
                    },
                    {
                        "name": "next_page_token",
                        "type": "text",
                        "label": "`next_page_token` Next Page Token"
                    },
                    {
                        "name": "pagination_limit",
                        "type": "number",
                        "label": "Pagination Limit",
                        "required": true
                    },
                    {
                        "name": "property_token",
                        "type": "text",
                        "label": "`property_token` Property Token"
                    },
                    {
                        "name": "no_cache",
                        "type": "boolean",
                        "label": "`no_cache` Disable Caching"
                    },
                    {
                        "name": "async",
                        "type": "text",
                        "label": "`async` Async"
                    },
                    {
                        "name": "zero_trace",
                        "type": "text",
                        "label": "`zero_trace` ZeroTrace Mode"
                    },
                    {
                        "name": "output",
                        "type": "text",
                        "label": "`output` Output"
                    }
                ]
            }
        },
        {
            "id": 2,
            "module": "json:TransformToJSON",
            "version": 1,
            "parameters": {
                "space": ""
            },
            "mapper": {
                "object": "{{1.properties}}"
            },
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 0
                },
                "restore": {
                    "parameters": {
                        "space": {
                            "label": "Empty"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "space",
                        "type": "select",
                        "label": "Indentation",
                        "validate": {
                            "enum": [
                                "tab",
                                "2",
                                "4"
                            ]
                        }
                    }
                ],
                "expect": [
                    {
                        "name": "object",
                        "type": "any",
                        "label": "Object"
                    }
                ]
            }
        },
        {
            "id": 3,
            "module": "openai-gpt-3:CreateCompletion",
            "version": 1,
            "parameters": {},
            "mapper": {
                "select": "chat",
                "temperature": "1",
                "top_p": "1",
                "n_completions": "1",
                "model": "gpt-4o",
                "max_tokens": "2048",
                "messages": [
                    {
                        "role": "user",
                        "content": "I need your help finding a suitable hotel for a vacation in Rhodes, Greece. Analyze the search results below to find the 3 best options for me and my family. The hotels should ideally meet the following conditions:\n\nLess than $200 per night\nAt least 4.5 overall rating\nMore than 200 reviews\n\nI'm willing to expand the budget a bit if the hotel has a pool and lots of reviews.\n\nSearch results:\n{{2.json}}",
                        "imageDetail": "auto"
                    }
                ],
                "response_format": "text"
            },
            "metadata": {
                "designer": {
                    "x": 600,
                    "y": 0
                },
                "restore": {
                    "parameters": {},
                    "expect": {
                        "select": {
                            "label": "Create a Chat Completion (GPT and o1 models)"
                        },
                        "logit_bias": {
                            "mode": "chose"
                        },
                        "stop": {
                            "mode": "chose"
                        },
                        "additionalParameters": {
                            "mode": "chose"
                        },
                        "model": {
                            "mode": "chose",
                            "label": "gpt-4o (system)"
                        },
                        "messages": {
                            "mode": "chose",
                            "items": [
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "User"
                                    },
                                    "imageInputType": {
                                        "mode": "chose",
                                        "label": "Empty"
                                    },
                                    "imageDetail": {
                                        "mode": "chose",
                                        "label": "Auto"
                                    }
                                }
                            ]
                        },
                        "response_format": {
                            "mode": "chose",
                            "label": "Text"
                        }
                    }
                },
                "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",
                        "type": "array",
                        "label": "Token Probability",
                        "spec": {
                            "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",
                            "name": "value"
                        }
                    },
                    {
                        "name": "seed",
                        "type": "integer",
                        "label": "Seed"
                    },
                    {
                        "name": "stop",
                        "type": "array",
                        "label": "Stop Sequences",
                        "validate": {
                            "maxItems": 4
                        },
                        "spec": {
                            "type": "text",
                            "label": "Stop Sequence",
                            "name": "value"
                        }
                    },
                    {
                        "name": "additionalParameters",
                        "type": "array",
                        "label": "Other Input Parameters",
                        "spec": {
                            "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",
                            "name": "value"
                        }
                    },
                    {
                        "name": "model",
                        "type": "select",
                        "label": "Model",
                        "required": true
                    },
                    {
                        "name": "max_tokens",
                        "type": "uinteger",
                        "label": "Max Completion Tokens"
                    },
                    {
                        "name": "messages",
                        "type": "array",
                        "label": "Messages",
                        "required": true,
                        "spec": {
                            "label": "Message",
                            "type": "collection",
                            "spec": [
                                {
                                    "name": "role",
                                    "type": "select",
                                    "label": "Role",
                                    "required": true,
                                    "options": {
                                        "store": [
                                            {
                                                "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": "User",
                                                "value": "user",
                                                "nested": [
                                                    {
                                                        "help": "Text content of the message on behalf of the selected __Role__.",
                                                        "name": "content",
                                                        "type": "text",
                                                        "label": "Text Content"
                                                    },
                                                    {
                                                        "name": "imageInputType",
                                                        "type": "select",
                                                        "label": "Image Input Type",
                                                        "mappable": false,
                                                        "options": [
                                                            {
                                                                "value": "url",
                                                                "label": "URL",
                                                                "nested": [
                                                                    {
                                                                        "name": "imageUrl",
                                                                        "label": "Image URL",
                                                                        "type": "url",
                                                                        "help": "Make sure to use a publicly accessible URL.\nYou can test if your image is publicly accessible by opening the link in an incognito tab."
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "value": "file",
                                                                "label": "Image File",
                                                                "nested": [
                                                                    {
                                                                        "name": "imageFile",
                                                                        "label": "Image",
                                                                        "type": "collection",
                                                                        "spec": [
                                                                            {
                                                                                "name": "imageFilename",
                                                                                "type": "filename",
                                                                                "label": "Image Filename",
                                                                                "semantic": "file:name",
                                                                                "extension": [
                                                                                    "jpg",
                                                                                    "jpeg",
                                                                                    "png",
                                                                                    "webp",
                                                                                    "gif"
                                                                                ],
                                                                                "help": "Accepted extensions: `.jpg`, `.jpeg`, `.png`, `.webp` and `.gif`."
                                                                            },
                                                                            {
                                                                                "name": "imageData",
                                                                                "type": "buffer",
                                                                                "label": "Image Data",
                                                                                "semantic": "file:data"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "name": "imageDetail",
                                                        "type": "select",
                                                        "label": "Image Detail",
                                                        "advanced": true,
                                                        "options": [
                                                            {
                                                                "value": "auto",
                                                                "default": true,
                                                                "label": "Auto"
                                                            },
                                                            {
                                                                "value": "high",
                                                                "label": "High"
                                                            },
                                                            {
                                                                "value": "low",
                                                                "label": "Low"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "label": "Assistant",
                                                "value": "assistant",
                                                "nested": [
                                                    {
                                                        "help": "Text content of the message on behalf of the selected __Role__.",
                                                        "name": "content",
                                                        "type": "text",
                                                        "label": "Text Content"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                }
                            ],
                            "name": "value"
                        }
                    },
                    {
                        "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": {
                            "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": "refusal",
                                            "type": "text",
                                            "label": "Refusal"
                                        }
                                    ],
                                    "type": "collection",
                                    "label": "Message"
                                }
                            ],
                            "type": "collection"
                        },
                        "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": "system_fingerprint",
                        "type": "text",
                        "label": "System Fingerprint"
                    }
                ]
            }
        }
    ],
    "metadata": {
        "instant": false,
        "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": "eu2.make.com",
        "notes": []
    }
}
