{
    "name": "Demo - AI Customer Feedback Assistant",
    "flow": [
        {
            "id": 1,
            "module": "gateway:CustomWebHook",
            "version": 1,
            "parameters": {
                "hook": 1068351,
                "maxResults": 1
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 150
                },
                "restore": {
                    "parameters": {
                        "hook": {
                            "data": {
                                "editable": "true"
                            },
                            "label": "Demo - AI Customer Feedback Assistant"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "hook",
                        "type": "hook:gateway-webhook",
                        "label": "Webhook",
                        "required": true
                    },
                    {
                        "name": "maxResults",
                        "type": "number",
                        "label": "Maximum number of results"
                    }
                ]
            }
        },
        {
            "id": 2,
            "module": "openai-gpt-3:messageAssistantAdvanced",
            "version": 1,
            "parameters": {
                "__IMTCONN__": 2356104
            },
            "mapper": {
                "role": "user",
                "top_p": "1",
                "message": "{{1.message.body}}",
                "threadId": "{{1.`Thread ID`}}",
                "assistantId": "asst_rrbV7i313ObeobjyNiduFLed",
                "temperature": "0.1",
                "instructions": "# Role\n\nYou are a customer feedback assistant for RJ Fitness. Your goal is to speak with a current customer and find out how they are finding our classes. \n\n# Context\n\nRJ Fitness is a personal training gym based in London. We are the most elite personal training gym in London. We offer extremely amazing results and high quality training.\n\n# Task\n\nYou must speak with the current customer and ask them for feedback on classes.\n\nFind out what they enjoy and don't enjoy.\n\nIf they are enjoying classes you can ask them how they would rate it from 1 to 5. If they rate it a 5 you can ask them to leave a review here: www.reviewus.com\n\nIf they aren't enjoying classes ask them why and also say we will relay this to our team and make sure we improve things.\n\n# Rules\n\nYou must come across friendly and human like.\n\nThe customer name is {{1.first_name}}. You can reference their name once during the conversation to seem human.\n\nYou must be informal and friendly and act as a friend.",
                "response_format": "text"
            },
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 150,
                    "name": "Customer Feedback AI Assistant"
                },
                "restore": {
                    "expect": {
                        "role": {
                            "label": "User"
                        },
                        "model": {
                            "mode": "chose",
                            "collapsed": true
                        },
                        "tools": {
                            "mode": "chose",
                            "collapsed": true
                        },
                        "image_urls": {
                            "mode": "chose",
                            "collapsed": true
                        },
                        "assistantId": {
                            "mode": "chose",
                            "label": "Demo - Customer Feedback AI Assistant (gpt-4o)",
                            "nested": []
                        },
                        "image_files": {
                            "mode": "chose",
                            "collapsed": true
                        },
                        "tool_choice": {
                            "mode": "chose",
                            "label": "Empty",
                            "collapsed": true
                        },
                        "response_format": {
                            "mode": "chose",
                            "label": "Text"
                        },
                        "max_prompt_tokens": {
                            "collapsed": true
                        },
                        "truncation_strategy": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "file_search_resources": {
                            "mode": "chose",
                            "collapsed": true
                        },
                        "max_completion_tokens": {
                            "collapsed": true
                        },
                        "code_interpreter_resources": {
                            "mode": "chose",
                            "collapsed": true
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "openai-gpt-3"
                            },
                            "label": "RJ Media"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:openai-gpt-3",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "assistantId",
                        "type": "select",
                        "label": "Assistant",
                        "required": true
                    },
                    {
                        "name": "role",
                        "type": "select",
                        "label": "Role",
                        "required": true,
                        "validate": {
                            "enum": [
                                "user",
                                "assistant"
                            ]
                        }
                    },
                    {
                        "name": "threadId",
                        "type": "text",
                        "label": "Thread ID"
                    },
                    {
                        "name": "model",
                        "type": "select",
                        "label": "Model"
                    },
                    {
                        "name": "tools",
                        "type": "select",
                        "label": "Tools",
                        "multiple": true,
                        "validate": {
                            "enum": [
                                "file_search",
                                "code_interpreter"
                            ]
                        }
                    },
                    {
                        "name": "file_search_resources",
                        "type": "select",
                        "label": "File Search Resources"
                    },
                    {
                        "name": "code_interpreter_resources",
                        "type": "select",
                        "label": "Code Interpreter Resources",
                        "multiple": true,
                        "validate": {
                            "maxItems": 20
                        }
                    },
                    {
                        "name": "tool_choice",
                        "type": "select",
                        "label": "Tool Choice",
                        "validate": {
                            "enum": [
                                "none",
                                "auto",
                                "required",
                                "file_search",
                                "code_interpreter",
                                "function"
                            ]
                        }
                    },
                    {
                        "name": "instructions",
                        "type": "text",
                        "label": "Instructions"
                    },
                    {
                        "name": "max_prompt_tokens",
                        "type": "uinteger",
                        "label": "Max Prompt Tokens"
                    },
                    {
                        "name": "max_completion_tokens",
                        "type": "uinteger",
                        "label": "Max Completion Tokens"
                    },
                    {
                        "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": "response_format",
                        "type": "select",
                        "label": "Response Format",
                        "validate": {
                            "enum": [
                                "auto",
                                "json_object",
                                "text"
                            ]
                        }
                    },
                    {
                        "name": "truncation_strategy",
                        "type": "select",
                        "label": "Truncation Strategy",
                        "validate": {
                            "enum": [
                                "auto",
                                "last_messages"
                            ]
                        }
                    },
                    {
                        "name": "message",
                        "type": "text",
                        "label": "Message",
                        "required": true
                    },
                    {
                        "name": "image_files",
                        "type": "select",
                        "label": "Image Files",
                        "multiple": true
                    },
                    {
                        "name": "image_urls",
                        "spec": {
                            "name": "value",
                            "type": "url",
                            "label": "Image URL",
                            "required": true
                        },
                        "type": "array",
                        "label": "Image URLs"
                    }
                ],
                "advanced": true
            },
            "onerror": [
                {
                    "id": 13,
                    "module": "builtin:Break",
                    "version": 1,
                    "parameters": {},
                    "mapper": {
                        "count": "3",
                        "retry": true,
                        "interval": "15"
                    },
                    "metadata": {
                        "designer": {
                            "x": 304,
                            "y": -139
                        },
                        "restore": {
                            "expect": {
                                "retry": {
                                    "mode": "chose"
                                }
                            }
                        },
                        "expect": [
                            {
                                "name": "retry",
                                "type": "boolean",
                                "label": "Automatically complete execution",
                                "required": true
                            },
                            {
                                "name": "count",
                                "type": "uinteger",
                                "label": "Number of attempts",
                                "required": true,
                                "validate": {
                                    "max": 10000,
                                    "min": 1
                                }
                            },
                            {
                                "name": "interval",
                                "type": "uinteger",
                                "label": "Interval between attempts",
                                "required": true,
                                "validate": {
                                    "max": 44640,
                                    "min": 1
                                }
                            }
                        ]
                    }
                }
            ]
        },
        {
            "id": 3,
            "module": "regexp:Replace",
            "version": 1,
            "parameters": {},
            "mapper": {
                "text": "{{2.result}}",
                "value": ".",
                "global": false,
                "pattern": "\\【.*?\\】.",
                "multiline": false,
                "sensitive": false,
                "singleline": false
            },
            "metadata": {
                "designer": {
                    "x": 605,
                    "y": 151,
                    "name": "Remove Source References"
                },
                "restore": {
                    "expect": {
                        "global": {
                            "mode": "chose"
                        },
                        "multiline": {
                            "mode": "chose"
                        },
                        "sensitive": {
                            "mode": "chose"
                        },
                        "singleline": {
                            "mode": "chose"
                        }
                    }
                },
                "expect": [
                    {
                        "name": "pattern",
                        "type": "text",
                        "label": "Pattern",
                        "required": true
                    },
                    {
                        "name": "value",
                        "type": "text",
                        "label": "New value"
                    },
                    {
                        "name": "global",
                        "type": "boolean",
                        "label": "Global match",
                        "required": true
                    },
                    {
                        "name": "sensitive",
                        "type": "boolean",
                        "label": "Case sensitive",
                        "required": true
                    },
                    {
                        "name": "multiline",
                        "type": "boolean",
                        "label": "Multiline",
                        "required": true
                    },
                    {
                        "name": "singleline",
                        "type": "boolean",
                        "label": "Singleline",
                        "required": true
                    },
                    {
                        "name": "text",
                        "type": "text",
                        "label": "Text"
                    }
                ]
            }
        },
        {
            "id": 4,
            "module": "regexp:Replace",
            "version": 1,
            "parameters": {},
            "mapper": {
                "text": "{{3.text}}",
                "value": "{{emptystring}}",
                "global": true,
                "pattern": "\\*\\*",
                "multiline": false,
                "sensitive": true,
                "singleline": false
            },
            "metadata": {
                "designer": {
                    "x": 900,
                    "y": 150,
                    "name": "Remove Asterisks"
                },
                "restore": {
                    "expect": {
                        "global": {
                            "mode": "chose"
                        },
                        "multiline": {
                            "mode": "chose"
                        },
                        "sensitive": {
                            "mode": "chose"
                        },
                        "singleline": {
                            "mode": "chose"
                        }
                    }
                },
                "expect": [
                    {
                        "name": "pattern",
                        "type": "text",
                        "label": "Pattern",
                        "required": true
                    },
                    {
                        "name": "value",
                        "type": "text",
                        "label": "New value"
                    },
                    {
                        "name": "global",
                        "type": "boolean",
                        "label": "Global match",
                        "required": true
                    },
                    {
                        "name": "sensitive",
                        "type": "boolean",
                        "label": "Case sensitive",
                        "required": true
                    },
                    {
                        "name": "multiline",
                        "type": "boolean",
                        "label": "Multiline",
                        "required": true
                    },
                    {
                        "name": "singleline",
                        "type": "boolean",
                        "label": "Singleline",
                        "required": true
                    },
                    {
                        "name": "text",
                        "type": "text",
                        "label": "Text"
                    }
                ]
            }
        },
        {
            "id": 5,
            "module": "highlevel:updateAContact",
            "version": 1,
            "parameters": {
                "__IMTCONN__": 2892099
            },
            "mapper": {
                "address": {},
                "contact": "{{1.contact_id}}",
                "customField": {
                    "t4Lzpxl4MbXD7ej9ogdI": "{{4.text}}",
                    "umnbrbmYGwS8V0oHlH1X": "{{2.thread_id}}"
                }
            },
            "metadata": {
                "designer": {
                    "x": 1200,
                    "y": 150,
                    "name": "Send SMS Response"
                },
                "restore": {
                    "expect": {
                        "dnd": {
                            "mode": "chose",
                            "collapsed": true
                        },
                        "tags": {
                            "mode": "chose",
                            "collapsed": true
                        },
                        "email": {
                            "collapsed": true
                        },
                        "phone": {
                            "collapsed": true
                        },
                        "source": {
                            "collapsed": true
                        },
                        "address": {
                            "nested": {
                                "country": {
                                    "mode": "chose",
                                    "label": "Empty"
                                }
                            },
                            "collapsed": true
                        },
                        "contact": {
                            "mode": "edit"
                        },
                        "website": {
                            "collapsed": true
                        },
                        "lastName": {
                            "collapsed": true
                        },
                        "timezone": {
                            "mode": "chose",
                            "label": "Empty",
                            "collapsed": true
                        },
                        "firstName": {
                            "collapsed": true
                        },
                        "companyName": {
                            "collapsed": true
                        },
                        "customField": {
                            "nested": {
                                "0rHmbRk8caJgrCGVycEp": {
                                    "collapsed": true
                                },
                                "1kjfho7O0kUQ1ZIbeFwN": {
                                    "collapsed": true
                                },
                                "82HJr8oaq8BqrW6nRpGE": {
                                    "collapsed": true
                                },
                                "DEcd1W2MHICsTRLbmV3O": {
                                    "collapsed": true
                                },
                                "gOqTNe63sJhQommjHWhp": {
                                    "mode": "chose",
                                    "label": "Empty",
                                    "collapsed": true
                                },
                                "pkZxw4OJNgCK96H7ndrD": {
                                    "collapsed": true
                                }
                            }
                        },
                        "dateOfBirth": {
                            "collapsed": true
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "highlevel3"
                            },
                            "label": "Demo (Location: Demo)"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:highlevel,highlevel3",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "mode": "edit",
                        "name": "contact",
                        "type": "select",
                        "label": "Contact ID",
                        "required": true
                    },
                    {
                        "name": "firstName",
                        "type": "text",
                        "label": "First Name"
                    },
                    {
                        "name": "lastName",
                        "type": "text",
                        "label": "Last Name"
                    },
                    {
                        "name": "email",
                        "type": "email",
                        "label": "Email"
                    },
                    {
                        "name": "phone",
                        "type": "text",
                        "label": "Phone"
                    },
                    {
                        "name": "dateOfBirth",
                        "time": false,
                        "type": "date",
                        "label": "Date of Birth"
                    },
                    {
                        "name": "companyName",
                        "type": "text",
                        "label": "Company Name"
                    },
                    {
                        "name": "website",
                        "type": "url",
                        "label": "Website"
                    },
                    {
                        "name": "tags",
                        "type": "select",
                        "label": "Tags",
                        "multiple": true
                    },
                    {
                        "name": "address",
                        "spec": [
                            {
                                "name": "address1",
                                "type": "text",
                                "label": "Street"
                            },
                            {
                                "name": "city",
                                "type": "text",
                                "label": "City"
                            },
                            {
                                "name": "state",
                                "type": "text",
                                "label": "State"
                            },
                            {
                                "name": "postalCode",
                                "type": "text",
                                "label": "PostalCode"
                            },
                            {
                                "name": "country",
                                "type": "select",
                                "label": "Country"
                            }
                        ],
                        "type": "collection",
                        "label": "Address"
                    },
                    {
                        "name": "source",
                        "type": "text",
                        "label": "Source"
                    },
                    {
                        "name": "timezone",
                        "type": "select",
                        "label": "Timezone"
                    },
                    {
                        "name": "dnd",
                        "type": "boolean",
                        "label": "Dnd"
                    },
                    {
                        "name": "customField",
                        "spec": [
                            {
                                "name": "t4Lzpxl4MbXD7ej9ogdI",
                                "type": "text",
                                "label": "AI Assistant Response"
                            },
                            {
                                "name": "82HJr8oaq8BqrW6nRpGE",
                                "type": "text",
                                "label": "What are your health & fitness goals?"
                            },
                            {
                                "name": "pkZxw4OJNgCK96H7ndrD",
                                "type": "text",
                                "label": "What's holding you back from hitting these goals?"
                            },
                            {
                                "name": "gOqTNe63sJhQommjHWhp",
                                "type": "select",
                                "label": "On a scale of 1 - 10 how committed and ready are you to making a serious change in your life right now?"
                            },
                            {
                                "name": "1kjfho7O0kUQ1ZIbeFwN",
                                "type": "text",
                                "label": "AI Text Message"
                            },
                            {
                                "name": "DEcd1W2MHICsTRLbmV3O",
                                "type": "text",
                                "label": "AI Email Subject"
                            },
                            {
                                "name": "0rHmbRk8caJgrCGVycEp",
                                "type": "text",
                                "label": "AI Email Body"
                            },
                            {
                                "name": "umnbrbmYGwS8V0oHlH1X",
                                "type": "text",
                                "label": "Thread ID"
                            }
                        ],
                        "type": "collection",
                        "label": "Custom Fields"
                    }
                ],
                "interface": [
                    {
                        "name": "id",
                        "type": "text",
                        "label": "Contact ID"
                    },
                    {
                        "name": "timezone",
                        "type": "text",
                        "label": "Timezone"
                    },
                    {
                        "name": "type",
                        "type": "text",
                        "label": "Type"
                    },
                    {
                        "name": "locationId",
                        "type": "text",
                        "label": "Location ID"
                    },
                    {
                        "name": "dnd",
                        "type": "boolean",
                        "label": "Dnd"
                    },
                    {
                        "name": "inboundDndSettings",
                        "spec": [
                            {
                                "name": "all",
                                "spec": [
                                    {
                                        "name": "message",
                                        "type": "text",
                                        "label": "Message"
                                    },
                                    {
                                        "name": "status",
                                        "type": "text",
                                        "label": "Status"
                                    }
                                ],
                                "type": "collection",
                                "label": "All"
                            }
                        ],
                        "type": "collection",
                        "label": "Inbound Dnd Settings"
                    },
                    {
                        "name": "dndSettings",
                        "spec": [
                            {
                                "name": "Call",
                                "spec": [
                                    {
                                        "name": "code",
                                        "type": "text",
                                        "label": "Code"
                                    },
                                    {
                                        "name": "message",
                                        "type": "text",
                                        "label": "Message"
                                    },
                                    {
                                        "name": "status",
                                        "type": "text",
                                        "label": "Status"
                                    }
                                ],
                                "type": "collection",
                                "label": "Call"
                            },
                            {
                                "name": "Email",
                                "spec": [
                                    {
                                        "name": "code",
                                        "type": "text",
                                        "label": "Code"
                                    },
                                    {
                                        "name": "message",
                                        "type": "text",
                                        "label": "Message"
                                    },
                                    {
                                        "name": "status",
                                        "type": "text",
                                        "label": "Status"
                                    }
                                ],
                                "type": "collection",
                                "label": "Email"
                            },
                            {
                                "name": "SMS",
                                "spec": [
                                    {
                                        "name": "code",
                                        "type": "text",
                                        "label": "Code"
                                    },
                                    {
                                        "name": "message",
                                        "type": "text",
                                        "label": "Message"
                                    },
                                    {
                                        "name": "status",
                                        "type": "text",
                                        "label": "Status"
                                    }
                                ],
                                "type": "collection",
                                "label": "SMS"
                            },
                            {
                                "name": "WhatsApp",
                                "spec": [
                                    {
                                        "name": "code",
                                        "type": "text",
                                        "label": "Code"
                                    },
                                    {
                                        "name": "message",
                                        "type": "text",
                                        "label": "Message"
                                    },
                                    {
                                        "name": "status",
                                        "type": "text",
                                        "label": "Status"
                                    }
                                ],
                                "type": "collection",
                                "label": "WhatsApp"
                            },
                            {
                                "name": "GMB",
                                "spec": [
                                    {
                                        "name": "code",
                                        "type": "text",
                                        "label": "Code"
                                    },
                                    {
                                        "name": "message",
                                        "type": "text",
                                        "label": "Message"
                                    },
                                    {
                                        "name": "status",
                                        "type": "text",
                                        "label": "Status"
                                    }
                                ],
                                "type": "collection",
                                "label": "GMB"
                            },
                            {
                                "name": "FB",
                                "spec": [
                                    {
                                        "name": "code",
                                        "type": "text",
                                        "label": "Code"
                                    },
                                    {
                                        "name": "message",
                                        "type": "text",
                                        "label": "Message"
                                    },
                                    {
                                        "name": "status",
                                        "type": "text",
                                        "label": "Status"
                                    }
                                ],
                                "type": "collection",
                                "label": "FB"
                            }
                        ],
                        "type": "collection",
                        "label": "Dnd Settings"
                    },
                    {
                        "name": "createdBy",
                        "spec": [
                            {
                                "name": "sourceId",
                                "type": "text",
                                "label": "Source ID"
                            },
                            {
                                "name": "channel",
                                "type": "text",
                                "label": "Channel"
                            },
                            {
                                "name": "source",
                                "type": "text",
                                "label": "Source"
                            },
                            {
                                "name": "sourceName",
                                "type": "text",
                                "label": "Source Name"
                            },
                            {
                                "name": "timestamp",
                                "type": "date",
                                "label": "Timestamp"
                            }
                        ],
                        "type": "collection",
                        "label": "Created By"
                    },
                    {
                        "name": "tags",
                        "type": "array",
                        "label": "Tags"
                    },
                    {
                        "name": "dateAdded",
                        "type": "date",
                        "label": "Date Added"
                    },
                    {
                        "name": "additionalEmails",
                        "type": "array",
                        "label": "Additional Emails"
                    },
                    {
                        "name": "additionalPhones",
                        "type": "array",
                        "label": "Additional Phones"
                    },
                    {
                        "name": "country",
                        "type": "text",
                        "label": "Country"
                    },
                    {
                        "name": "lastName",
                        "type": "text",
                        "label": "Last Name"
                    },
                    {
                        "name": "lastNameLowerCase",
                        "type": "text",
                        "label": "Last Name Lower Case"
                    },
                    {
                        "name": "emailLowerCase",
                        "type": "text",
                        "label": "Email Lower Case"
                    },
                    {
                        "name": "email",
                        "type": "text",
                        "label": "Email"
                    },
                    {
                        "name": "postalCode",
                        "type": "text",
                        "label": "Postal Code"
                    },
                    {
                        "name": "dateUpdated",
                        "type": "date",
                        "label": "Date Updated"
                    },
                    {
                        "name": "fullNameLowerCase",
                        "type": "text",
                        "label": "Full Name Lower Case"
                    },
                    {
                        "name": "firstName",
                        "type": "text",
                        "label": "First Name"
                    },
                    {
                        "name": "firstNameLowerCase",
                        "type": "text",
                        "label": "First Name Lower Case"
                    },
                    {
                        "name": "source",
                        "type": "text",
                        "label": "Source"
                    },
                    {
                        "name": "companyName",
                        "type": "text",
                        "label": "Company Name"
                    },
                    {
                        "name": "website",
                        "type": "text",
                        "label": "Website"
                    },
                    {
                        "name": "phone",
                        "type": "text",
                        "label": "Phone"
                    },
                    {
                        "name": "customField",
                        "spec": [
                            {
                                "name": "t4Lzpxl4MbXD7ej9ogdI",
                                "type": "text",
                                "label": "AI Assistant Response",
                                "multiline": true
                            },
                            {
                                "name": "82HJr8oaq8BqrW6nRpGE",
                                "type": "text",
                                "label": "What are your health & fitness goals?",
                                "multiline": true
                            },
                            {
                                "name": "pkZxw4OJNgCK96H7ndrD",
                                "type": "text",
                                "label": "What's holding you back from hitting these goals?",
                                "multiline": true
                            },
                            {
                                "name": "gOqTNe63sJhQommjHWhp",
                                "type": "text",
                                "label": "On a scale of 1 - 10 how committed and ready are you to making a serious change in your life right now?"
                            },
                            {
                                "name": "1kjfho7O0kUQ1ZIbeFwN",
                                "type": "text",
                                "label": "AI Text Message",
                                "multiline": true
                            },
                            {
                                "name": "DEcd1W2MHICsTRLbmV3O",
                                "type": "text",
                                "label": "AI Email Subject",
                                "multiline": true
                            },
                            {
                                "name": "0rHmbRk8caJgrCGVycEp",
                                "type": "text",
                                "label": "AI Email Body",
                                "multiline": true
                            },
                            {
                                "name": "umnbrbmYGwS8V0oHlH1X",
                                "type": "text",
                                "label": "Thread ID",
                                "multiline": true
                            }
                        ],
                        "type": "collection",
                        "label": "Custom Fields"
                    }
                ]
            }
        },
        {
            "id": 9,
            "module": "openai-gpt-3:CreateCompletion",
            "version": 1,
            "parameters": {
                "__IMTCONN__": 2356104
            },
            "mapper": {
                "model": "gpt-4o-mini",
                "top_p": "1",
                "select": "chat",
                "messages": [
                    {
                        "role": "system",
                        "content": "You must evaluate the input message to determine whether the feedback from the user is positive or negative and also output a summary of the feedback.\n\nIf it is negative output the number 0.\n\nIf it is positive output the number 1.\n\nIf there is no clear indication of positive or negative feedback output the number 2.\n\nYou must output in JSON format as follows:\n\n{\n\"number\":\"\",\n\"summary\":\"\"\n}"
                    },
                    {
                        "role": "user",
                        "content": "Classes have been amazing thanks!"
                    },
                    {
                        "role": "assistant",
                        "content": "{\n\"number\":\"1\",\n\"summary\":\"Classes are amazing\"\n}"
                    },
                    {
                        "role": "user",
                        "content": "great"
                    },
                    {
                        "role": "assistant",
                        "content": "{\n\"number\":\"2\",\n\"summary\":\"Difficult to understand whether the user is saying classes are great or just saying the word great\"\n}"
                    },
                    {
                        "role": "user",
                        "content": "classes have been good but sometimes the studio is too hot"
                    },
                    {
                        "role": "assistant",
                        "content": "{\n\"number\":\"0\",\n\"summary\":\"Classes are good but the studio can be hot sometimes\"\n}"
                    },
                    {
                        "role": "user",
                        "content": "{{1.message.body}}"
                    }
                ],
                "max_tokens": "0",
                "temperature": "0.1",
                "n_completions": "1",
                "response_format": "json_object",
                "parseJSONResponse": true
            },
            "metadata": {
                "designer": {
                    "x": 1500,
                    "y": 150,
                    "name": "Evaluate Message"
                },
                "restore": {
                    "expect": {
                        "stop": {
                            "mode": "chose"
                        },
                        "model": {
                            "mode": "chose",
                            "label": "gpt-4o-mini (system)"
                        },
                        "select": {
                            "label": "Create a Chat Completion (GPT Models)"
                        },
                        "messages": {
                            "mode": "chose",
                            "items": [
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "System"
                                    }
                                },
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "User"
                                    }
                                },
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "Assistant"
                                    }
                                },
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "User"
                                    }
                                },
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "Assistant"
                                    }
                                },
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "User"
                                    }
                                },
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "Assistant"
                                    }
                                },
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "User"
                                    }
                                }
                            ]
                        },
                        "logit_bias": {
                            "mode": "chose"
                        },
                        "response_format": {
                            "mode": "chose",
                            "label": "JSON Object"
                        },
                        "parseJSONResponse": {
                            "mode": "chose"
                        },
                        "additionalParameters": {
                            "mode": "chose"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "openai-gpt-3"
                            },
                            "label": "RJ Media"
                        }
                    }
                },
                "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": "max_tokens",
                        "type": "number",
                        "label": "Max Tokens",
                        "required": true
                    },
                    {
                        "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": "response_format",
                        "type": "select",
                        "label": "Response Format",
                        "validate": {
                            "enum": [
                                "text",
                                "json_object"
                            ]
                        }
                    },
                    {
                        "name": "seed",
                        "type": "integer",
                        "label": "Seed"
                    },
                    {
                        "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": "messages",
                        "spec": {
                            "name": "value",
                            "spec": [
                                {
                                    "name": "role",
                                    "type": "select",
                                    "label": "Role",
                                    "options": [
                                        {
                                            "label": "System",
                                            "value": "system"
                                        },
                                        {
                                            "label": "User",
                                            "value": "user"
                                        },
                                        {
                                            "label": "Assistant",
                                            "value": "assistant"
                                        }
                                    ],
                                    "required": true
                                },
                                {
                                    "name": "content",
                                    "type": "text",
                                    "label": "Message Content"
                                }
                            ],
                            "type": "collection",
                            "label": "Message"
                        },
                        "type": "array",
                        "label": "Messages",
                        "required": true
                    },
                    {
                        "name": "parseJSONResponse",
                        "type": "boolean",
                        "label": "Parse JSON Response",
                        "required": true
                    }
                ],
                "advanced": true
            },
            "onerror": [
                {
                    "id": 14,
                    "module": "builtin:Break",
                    "version": 1,
                    "parameters": {},
                    "mapper": {
                        "count": "3",
                        "retry": true,
                        "interval": "15"
                    },
                    "metadata": {
                        "designer": {
                            "x": 1513,
                            "y": 447
                        },
                        "restore": {
                            "expect": {
                                "retry": {
                                    "mode": "chose"
                                }
                            }
                        },
                        "expect": [
                            {
                                "name": "retry",
                                "type": "boolean",
                                "label": "Automatically complete execution",
                                "required": true
                            },
                            {
                                "name": "count",
                                "type": "uinteger",
                                "label": "Number of attempts",
                                "required": true,
                                "validate": {
                                    "max": 10000,
                                    "min": 1
                                }
                            },
                            {
                                "name": "interval",
                                "type": "uinteger",
                                "label": "Interval between attempts",
                                "required": true,
                                "validate": {
                                    "max": 44640,
                                    "min": 1
                                }
                            }
                        ]
                    }
                }
            ]
        },
        {
            "id": 11,
            "module": "builtin:BasicRouter",
            "version": 1,
            "mapper": null,
            "metadata": {
                "designer": {
                    "x": 1793,
                    "y": 146
                }
            },
            "routes": [
                {
                    "flow": [
                        {
                            "id": 10,
                            "module": "slack:CreateMessage",
                            "version": 4,
                            "parameters": {
                                "__IMTCONN__": 2999147
                            },
                            "filter": {
                                "name": "Negative",
                                "conditions": [
                                    [
                                        {
                                            "a": "{{9.result.number}}",
                                            "b": "0",
                                            "o": "text:equal"
                                        }
                                    ]
                                ]
                            },
                            "mapper": {
                                "text": "Negative Feedback: {{9.result.summary}}",
                                "parse": false,
                                "mrkdwn": true,
                                "channel": "C07EK5Z1LV9",
                                "channelType": "public",
                                "channelWType": "list"
                            },
                            "metadata": {
                                "designer": {
                                    "x": 2100,
                                    "y": 0
                                },
                                "restore": {
                                    "expect": {
                                        "parse": {
                                            "mode": "chose"
                                        },
                                        "blocks": {
                                            "collapsed": true
                                        },
                                        "mrkdwn": {
                                            "mode": "chose"
                                        },
                                        "channel": {
                                            "mode": "chose",
                                            "label": "general"
                                        },
                                        "link_names": {
                                            "mode": "chose"
                                        },
                                        "channelType": {
                                            "label": "Public channel"
                                        },
                                        "channelWType": {
                                            "label": "Select from the list"
                                        },
                                        "unfurl_links": {
                                            "mode": "chose"
                                        },
                                        "unfurl_media": {
                                            "mode": "chose"
                                        },
                                        "reply_broadcast": {
                                            "mode": "chose"
                                        }
                                    },
                                    "parameters": {
                                        "__IMTCONN__": {
                                            "data": {
                                                "scoped": "true",
                                                "connection": "slack3"
                                            },
                                            "label": "Slack Bot (make)"
                                        }
                                    }
                                },
                                "parameters": [
                                    {
                                        "name": "__IMTCONN__",
                                        "type": "account:slack2,slack3",
                                        "label": "Connection",
                                        "required": true
                                    }
                                ],
                                "expect": [
                                    {
                                        "name": "channelWType",
                                        "type": "select",
                                        "label": "Enter a channel ID or name",
                                        "required": true,
                                        "validate": {
                                            "enum": [
                                                "manualy",
                                                "list"
                                            ]
                                        }
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "blocks",
                                        "type": "text",
                                        "label": "Blocks"
                                    },
                                    {
                                        "name": "thread_ts",
                                        "type": "text",
                                        "label": "Thread message ID (time stamp)"
                                    },
                                    {
                                        "name": "reply_broadcast",
                                        "type": "boolean",
                                        "label": "Reply broadcast"
                                    },
                                    {
                                        "name": "link_names",
                                        "type": "boolean",
                                        "label": "Link names"
                                    },
                                    {
                                        "name": "parse",
                                        "type": "boolean",
                                        "label": "Parse message text"
                                    },
                                    {
                                        "name": "mrkdwn",
                                        "type": "boolean",
                                        "label": "Use markdown"
                                    },
                                    {
                                        "name": "unfurl_links",
                                        "type": "boolean",
                                        "label": "Unfurl primarily text-based content"
                                    },
                                    {
                                        "name": "unfurl_media",
                                        "type": "boolean",
                                        "label": "Unfurl media content"
                                    },
                                    {
                                        "name": "icon_emoji",
                                        "type": "text",
                                        "label": "Icon emoji"
                                    },
                                    {
                                        "name": "icon_url",
                                        "type": "url",
                                        "label": "Icon url"
                                    },
                                    {
                                        "name": "username",
                                        "type": "text",
                                        "label": "User name"
                                    },
                                    {
                                        "name": "channelType",
                                        "type": "select",
                                        "label": "Channel type",
                                        "required": true,
                                        "validate": {
                                            "enum": [
                                                "public",
                                                "private",
                                                "im",
                                                "mpim"
                                            ]
                                        }
                                    },
                                    {
                                        "name": "channel",
                                        "type": "select",
                                        "label": "Public channel",
                                        "required": true
                                    }
                                ]
                            }
                        }
                    ]
                },
                {
                    "flow": [
                        {
                            "id": 12,
                            "module": "slack:CreateMessage",
                            "version": 4,
                            "parameters": {
                                "__IMTCONN__": 2999147
                            },
                            "filter": {
                                "name": "Positive",
                                "conditions": [
                                    [
                                        {
                                            "a": "{{9.result.number}}",
                                            "b": "1",
                                            "o": "text:equal"
                                        }
                                    ]
                                ]
                            },
                            "mapper": {
                                "text": "Positive Feedback: {{9.result.summary}}",
                                "parse": false,
                                "mrkdwn": true,
                                "channel": "C07EK5Z1LV9",
                                "channelType": "public",
                                "channelWType": "list"
                            },
                            "metadata": {
                                "designer": {
                                    "x": 2100,
                                    "y": 300
                                },
                                "restore": {
                                    "expect": {
                                        "parse": {
                                            "mode": "chose"
                                        },
                                        "blocks": {
                                            "collapsed": true
                                        },
                                        "mrkdwn": {
                                            "mode": "chose"
                                        },
                                        "channel": {
                                            "mode": "chose",
                                            "label": "general"
                                        },
                                        "link_names": {
                                            "mode": "chose"
                                        },
                                        "channelType": {
                                            "label": "Public channel"
                                        },
                                        "channelWType": {
                                            "label": "Select from the list"
                                        },
                                        "unfurl_links": {
                                            "mode": "chose"
                                        },
                                        "unfurl_media": {
                                            "mode": "chose"
                                        },
                                        "reply_broadcast": {
                                            "mode": "chose"
                                        }
                                    },
                                    "parameters": {
                                        "__IMTCONN__": {
                                            "data": {
                                                "scoped": "true",
                                                "connection": "slack3"
                                            },
                                            "label": "Slack Bot (make)"
                                        }
                                    }
                                },
                                "parameters": [
                                    {
                                        "name": "__IMTCONN__",
                                        "type": "account:slack2,slack3",
                                        "label": "Connection",
                                        "required": true
                                    }
                                ],
                                "expect": [
                                    {
                                        "name": "channelWType",
                                        "type": "select",
                                        "label": "Enter a channel ID or name",
                                        "required": true,
                                        "validate": {
                                            "enum": [
                                                "manualy",
                                                "list"
                                            ]
                                        }
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "blocks",
                                        "type": "text",
                                        "label": "Blocks"
                                    },
                                    {
                                        "name": "thread_ts",
                                        "type": "text",
                                        "label": "Thread message ID (time stamp)"
                                    },
                                    {
                                        "name": "reply_broadcast",
                                        "type": "boolean",
                                        "label": "Reply broadcast"
                                    },
                                    {
                                        "name": "link_names",
                                        "type": "boolean",
                                        "label": "Link names"
                                    },
                                    {
                                        "name": "parse",
                                        "type": "boolean",
                                        "label": "Parse message text"
                                    },
                                    {
                                        "name": "mrkdwn",
                                        "type": "boolean",
                                        "label": "Use markdown"
                                    },
                                    {
                                        "name": "unfurl_links",
                                        "type": "boolean",
                                        "label": "Unfurl primarily text-based content"
                                    },
                                    {
                                        "name": "unfurl_media",
                                        "type": "boolean",
                                        "label": "Unfurl media content"
                                    },
                                    {
                                        "name": "icon_emoji",
                                        "type": "text",
                                        "label": "Icon emoji"
                                    },
                                    {
                                        "name": "icon_url",
                                        "type": "url",
                                        "label": "Icon url"
                                    },
                                    {
                                        "name": "username",
                                        "type": "text",
                                        "label": "User name"
                                    },
                                    {
                                        "name": "channelType",
                                        "type": "select",
                                        "label": "Channel type",
                                        "required": true,
                                        "validate": {
                                            "enum": [
                                                "public",
                                                "private",
                                                "im",
                                                "mpim"
                                            ]
                                        }
                                    },
                                    {
                                        "name": "channel",
                                        "type": "select",
                                        "label": "Public channel",
                                        "required": true
                                    }
                                ]
                            }
                        }
                    ]
                }
            ]
        }
    ],
    "metadata": {
        "instant": true,
        "version": 1,
        "scenario": {
            "roundtrips": 1,
            "maxErrors": 3,
            "autoCommit": true,
            "autoCommitTriggerLast": true,
            "sequential": false,
            "slots": null,
            "confidential": false,
            "dataloss": false,
            "dlq": true,
            "freshVariables": false
        },
        "designer": {
            "orphans": []
        },
        "zone": "eu2.make.com"
    }
}