{
    "name": "Generate high-converting descriptions for WooCommerce products using OpenAI",
    "flow": [
        {
            "id": 1,
            "module": "woocommerce:SearchProducts",
            "version": 3,
            "parameters": {},
            "mapper": {
                "tag": 733,
                "limit": "100",
                "stock_status": "instock"
            },
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 0
                },
                "restore": {
                    "expect": {
                        "tag": {
                            "mode": "chose",
                            "label": "Write AI Description"
                        },
                        "onSale": {
                            "mode": "chose"
                        },
                        "status": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "category": {
                            "mode": "chose"
                        },
                        "featured": {
                            "mode": "chose"
                        },
                        "attribute": {
                            "mode": "chose"
                        },
                        "stock_status": {
                            "mode": "chose",
                            "label": "In stock"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "woocommerce2"
                            },
                            "label": "My WooCommerce connection"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:woocommerce2",
                        "label": "Connection"
                    }
                ],
                "expect": [
                    {
                        "name": "search",
                        "type": "text",
                        "label": "Search"
                    },
                    {
                        "name": "slug",
                        "type": "text",
                        "label": "Slug"
                    },
                    {
                        "name": "category",
                        "type": "select",
                        "label": "Category"
                    },
                    {
                        "name": "tag",
                        "type": "select",
                        "label": "Tag"
                    },
                    {
                        "name": "status",
                        "type": "select",
                        "label": "Status",
                        "validate": {
                            "enum": [
                                "draft",
                                "pending",
                                "private",
                                "publish"
                            ]
                        }
                    },
                    {
                        "name": "sku",
                        "type": "text",
                        "label": "SKU"
                    },
                    {
                        "name": "stock_status",
                        "type": "select",
                        "label": "Stock Status",
                        "validate": {
                            "enum": [
                                "instock",
                                "outofstock",
                                "onbackorder"
                            ]
                        }
                    },
                    {
                        "name": "onSale",
                        "type": "boolean",
                        "label": "On Sale"
                    },
                    {
                        "name": "featured",
                        "type": "boolean",
                        "label": "Featured Product"
                    },
                    {
                        "name": "minPrice",
                        "type": "number",
                        "label": "Min Price"
                    },
                    {
                        "name": "maxPrice",
                        "type": "number",
                        "label": "Max Price"
                    },
                    {
                        "name": "attribute",
                        "type": "select",
                        "label": "Attribute"
                    },
                    {
                        "name": "limit",
                        "type": "number",
                        "label": "Limit",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 3,
            "module": "openai-gpt-3:CreateCompletion",
            "version": 1,
            "parameters": {},
            "mapper": {
                "model": "gpt-3.5-turbo",
                "select": "chat",
                "messages": [
                    {
                        "role": "user",
                        "content": "You are an e-commerce specialist that sells electronics, and your specialty is to write persuasive product descriptions.nnYour task is to write an SEO-friendly description for the product '{{1.name}}'.nnThe resulting description must convince users who are looking to buy a '{{1.name}}' online, must have a max word count of 100 words, the tone of the description will be informative but persuasive, and the writing style will be adapted to an audience of professionals with knowledge on electronics.nnThe paragraphs within each description must be easy to read and use blank spaces, stops, full stops, commas, listings, and emojis to achieve this.nnYou must deliver the content in the markdown format. Remember that the goal of this description is to incentivize the purchase of the product.nnPlease, do not repeat instructions, do not remember previous instructions, do not apologize, do not refer to yourself at any time, and do not make assumptions."
                    }
                ],
                "max_tokens": "1000",
                "temperature": "0.7",
                "n_completions": "1"
            },
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 0
                },
                "restore": {
                    "expect": {
                        "echo": {
                            "mode": "chose"
                        },
                        "model": {
                            "mode": "chose",
                            "label": "gpt-3.5-turbo"
                        },
                        "select": {
                            "label": "Create a Chat Completion (GPT Models)"
                        },
                        "messages": {
                            "mode": "chose",
                            "items": [
                                {
                                    "role": {
                                        "mode": "chose",
                                        "label": "User"
                                    }
                                }
                            ]
                        },
                        "additionalParameters": {
                            "mode": "chose"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "openai-gpt-3"
                            },
                            "label": "Make Global (OpenAI account)"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:openai-gpt-3",
                        "label": "Connection"
                    }
                ],
                "expect": [
                    {
                        "name": "select",
                        "type": "select",
                        "label": "Select Method",
                        "required": true,
                        "validate": {
                            "enum": [
                                "chat",
                                "prompt"
                            ]
                        }
                    },
                    {
                        "name": "max_tokens",
                        "type": "number",
                        "label": "Max 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": "n_completions",
                        "type": "number",
                        "label": "Number"
                    },
                    {
                        "name": "echo",
                        "type": "boolean",
                        "label": "Echo"
                    },
                    {
                        "name": "additionalParameters",
                        "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": "array",
                        "label": "Other Input Parameters"
                    },
                    {
                        "name": "model",
                        "type": "select",
                        "label": "Model",
                        "required": true
                    },
                    {
                        "name": "messages",
                        "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": "array",
                        "label": "Messages",
                        "required": true
                    }
                ],
                "advanced": true
            }
        },
        {
            "id": 5,
            "module": "markdown:Compile",
            "version": 2,
            "parameters": {},
            "mapper": {
                "gfm": true,
                "svg": false,
                "data": "{{3.choices[].message.content}}",
                "html": true,
                "mathM1": false,
                "sanitize": true,
                "wholeDocument": false,
                "sanitizeOutputType": "PROFILED_HTML"
            },
            "metadata": {
                "designer": {
                    "x": 600,
                    "y": 0
                },
                "restore": {
                    "expect": {
                        "gfm": {
                            "mode": "chose"
                        },
                        "svg": {
                            "mode": "chose"
                        },
                        "html": {
                            "mode": "chose"
                        },
                        "mathM1": {
                            "mode": "chose"
                        },
                        "sanitize": {
                            "mode": "chose"
                        },
                        "addedAttr": {
                            "mode": "chose"
                        },
                        "addedTags": {
                            "mode": "chose"
                        },
                        "forbiddenAttr": {
                            "mode": "chose"
                        },
                        "forbiddenTags": {
                            "mode": "chose"
                        },
                        "wholeDocument": {
                            "mode": "chose"
                        },
                        "sanitizeOutputType": {
                            "mode": "chose",
                            "label": "Predefined Profiles"
                        }
                    }
                },
                "expect": [
                    {
                        "name": "data",
                        "type": "text",
                        "label": "Markdown"
                    },
                    {
                        "name": "gfm",
                        "type": "boolean",
                        "label": "GitHub Flavored Markdown",
                        "required": true
                    },
                    {
                        "name": "sanitize",
                        "type": "boolean",
                        "label": "Sanitize",
                        "required": true
                    },
                    {
                        "name": "sanitizeOutputType",
                        "type": "select",
                        "label": "Output Type",
                        "required": true,
                        "validate": {
                            "enum": [
                                "PROFILED_HTML",
                                "PREDEFINED_TAGS_ATTR"
                            ]
                        }
                    },
                    {
                        "name": "forbiddenTags",
                        "spec": {
                            "name": "value",
                            "type": "text"
                        },
                        "type": "array",
                        "label": "Forbidden Tags"
                    },
                    {
                        "name": "forbiddenAttr",
                        "spec": {
                            "name": "value",
                            "type": "text"
                        },
                        "type": "array",
                        "label": "Forbidden Attributes"
                    },
                    {
                        "name": "addedTags",
                        "spec": {
                            "name": "value",
                            "type": "text"
                        },
                        "type": "array",
                        "label": "Extended List of Allowed Tags"
                    },
                    {
                        "name": "addedAttr",
                        "spec": {
                            "name": "value",
                            "type": "text"
                        },
                        "type": "array",
                        "label": "Extended List of Allowed Attributes"
                    },
                    {
                        "name": "wholeDocument",
                        "type": "boolean",
                        "label": "Return Entire Document Including html ",
                        "required": true
                    },
                    {
                        "name": "html",
                        "type": "boolean",
                        "label": "HTML",
                        "required": true
                    },
                    {
                        "name": "svg",
                        "type": "boolean",
                        "label": "SVG",
                        "required": true
                    },
                    {
                        "name": "mathM1",
                        "type": "boolean",
                        "label": "Math ML",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 4,
            "module": "woocommerce:UpdateProduct",
            "version": 3,
            "parameters": {},
            "mapper": {
                "id": "{{1.id}}",
                "metaData": [
                    {
                        "key": "gpt",
                        "value": "true"
                    }
                ],
                "dimensions": {},
                "description": "{{5.data}}"
            },
            "metadata": {
                "designer": {
                    "x": 900,
                    "y": 0
                },
                "restore": {
                    "expect": {
                        "tags": {
                            "mode": "chose"
                        },
                        "type": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "images": {
                            "mode": "chose"
                        },
                        "status": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "virtual": {
                            "mode": "chose"
                        },
                        "featured": {
                            "mode": "chose"
                        },
                        "metaData": {
                            "mode": "chose",
                            "items": [
                                null
                            ]
                        },
                        "taxClass": {
                            "mode": "chose"
                        },
                        "downloads": {
                            "mode": "chose"
                        },
                        "taxStatus": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "upsellIds": {
                            "mode": "chose"
                        },
                        "attributes": {
                            "mode": "chose"
                        },
                        "backorders": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "categories": {
                            "mode": "chose"
                        },
                        "manageStock": {
                            "mode": "chose"
                        },
                        "crossSellIds": {
                            "mode": "chose"
                        },
                        "downloadable": {
                            "mode": "chose"
                        },
                        "stock_status": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "shippingClass": {
                            "mode": "chose"
                        },
                        "reviewsAllowed": {
                            "mode": "chose"
                        },
                        "soldIndividually": {
                            "mode": "chose"
                        },
                        "catalogVisibility": {
                            "mode": "chose",
                            "label": "Empty"
                        },
                        "default_attributes": {
                            "mode": "chose"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "woocommerce2"
                            },
                            "label": "My WooCommerce connection"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:woocommerce2",
                        "label": "Connection"
                    }
                ],
                "expect": [
                    {
                        "name": "id",
                        "type": "number",
                        "label": "Product ID",
                        "required": true
                    },
                    {
                        "name": "name",
                        "type": "text",
                        "label": "Name"
                    },
                    {
                        "name": "slug",
                        "type": "text",
                        "label": "Slug"
                    },
                    {
                        "name": "type",
                        "type": "select",
                        "label": "Type",
                        "validate": {
                            "enum": [
                                "simple",
                                "grouped",
                                "external",
                                "variable"
                            ]
                        }
                    },
                    {
                        "name": "status",
                        "type": "select",
                        "label": "Status",
                        "validate": {
                            "enum": [
                                "draft",
                                "pending",
                                "private",
                                "publish"
                            ]
                        }
                    },
                    {
                        "name": "featured",
                        "type": "boolean",
                        "label": "Featured"
                    },
                    {
                        "name": "catalogVisibility",
                        "type": "select",
                        "label": "Catalog Visibility",
                        "validate": {
                            "enum": [
                                "visible",
                                "catalog",
                                "search",
                                "hidden"
                            ]
                        }
                    },
                    {
                        "name": "description",
                        "type": "text",
                        "label": "Description"
                    },
                    {
                        "name": "shortDescription",
                        "type": "text",
                        "label": "Short Description"
                    },
                    {
                        "name": "sku",
                        "type": "text",
                        "label": "SKU"
                    },
                    {
                        "name": "regularPrice",
                        "type": "text",
                        "label": "Regular Price"
                    },
                    {
                        "name": "salePrice",
                        "type": "text",
                        "label": "Sale Price"
                    },
                    {
                        "name": "dateOnSaleFrom",
                        "type": "date",
                        "label": "Date on Sale From"
                    },
                    {
                        "name": "dateOnSaleTo",
                        "type": "date",
                        "label": "Date On Sale To"
                    },
                    {
                        "name": "virtual",
                        "type": "boolean",
                        "label": "Virtual"
                    },
                    {
                        "name": "downloadable",
                        "type": "boolean",
                        "label": "Downloadable"
                    },
                    {
                        "name": "downloads",
                        "spec": [
                            {
                                "name": "name",
                                "type": "text",
                                "label": "File Name",
                                "required": true
                            },
                            {
                                "name": "file",
                                "type": "url",
                                "label": "File URL",
                                "required": true
                            }
                        ],
                        "type": "array",
                        "label": "Downloads"
                    },
                    {
                        "name": "downloadLimit",
                        "type": "number",
                        "label": "Download Limit"
                    },
                    {
                        "name": "downloadExpiry",
                        "type": "number",
                        "label": "Download Expiry"
                    },
                    {
                        "name": "externalUrl",
                        "type": "url",
                        "label": "External URL"
                    },
                    {
                        "name": "buttonText",
                        "type": "text",
                        "label": "Button Text"
                    },
                    {
                        "name": "taxStatus",
                        "type": "select",
                        "label": "Tax Status",
                        "validate": {
                            "enum": [
                                "taxable",
                                "shipping",
                                "none"
                            ]
                        }
                    },
                    {
                        "name": "taxClass",
                        "type": "select",
                        "label": "Tax Class"
                    },
                    {
                        "name": "manageStock",
                        "type": "boolean",
                        "label": "Stock Management at Product Level"
                    },
                    {
                        "name": "stockQuantity",
                        "type": "number",
                        "label": "Stock Quantity"
                    },
                    {
                        "name": "stock_status",
                        "type": "select",
                        "label": "Stock Status",
                        "validate": {
                            "enum": [
                                "instock",
                                "outofstock",
                                "onbackorder"
                            ]
                        }
                    },
                    {
                        "name": "backorders",
                        "type": "select",
                        "label": "Backorders",
                        "validate": {
                            "enum": [
                                "no",
                                "notify",
                                "yes"
                            ]
                        }
                    },
                    {
                        "name": "soldIndividually",
                        "type": "boolean",
                        "label": "Sold Individually"
                    },
                    {
                        "name": "weight",
                        "type": "text",
                        "label": "Weight"
                    },
                    {
                        "name": "dimensions",
                        "spec": [
                            {
                                "name": "length",
                                "type": "text",
                                "label": "Length"
                            },
                            {
                                "name": "width",
                                "type": "text",
                                "label": "Width"
                            },
                            {
                                "name": "height",
                                "type": "text",
                                "label": "Height"
                            }
                        ],
                        "type": "collection",
                        "label": "Dimensions"
                    },
                    {
                        "name": "shippingClass",
                        "type": "select",
                        "label": "Shipping Class"
                    },
                    {
                        "name": "reviewsAllowed",
                        "type": "boolean",
                        "label": "Reviews Allowed"
                    },
                    {
                        "name": "upsellIds",
                        "spec": {
                            "name": "value",
                            "type": "text"
                        },
                        "type": "array",
                        "label": "Upsell IDs"
                    },
                    {
                        "name": "crossSellIds",
                        "spec": {
                            "name": "value",
                            "type": "text"
                        },
                        "type": "array",
                        "label": "Cross Sell IDs"
                    },
                    {
                        "name": "parentId",
                        "type": "number",
                        "label": "Product Parent ID"
                    },
                    {
                        "name": "purchaseNote",
                        "type": "text",
                        "label": "Purchase Note"
                    },
                    {
                        "name": "categories",
                        "type": "select",
                        "label": "Categories",
                        "multiple": true
                    },
                    {
                        "name": "tags",
                        "type": "select",
                        "label": "Tags",
                        "multiple": true
                    },
                    {
                        "name": "images",
                        "spec": [
                            {
                                "name": "src",
                                "type": "url",
                                "label": "Image URL"
                            },
                            {
                                "name": "name",
                                "type": "text",
                                "label": "Name"
                            },
                            {
                                "name": "alt",
                                "type": "text",
                                "label": "Image Alternative Text"
                            }
                        ],
                        "type": "array",
                        "label": "Images"
                    },
                    {
                        "name": "menuOrder",
                        "type": "number",
                        "label": "Menu Order"
                    },
                    {
                        "name": "attributes",
                        "spec": [
                            {
                                "name": "id",
                                "type": "select",
                                "label": "Attribute",
                                "dynamic": true,
                                "options": {
                                    "store": []
                                },
                                "required": true
                            },
                            {
                                "name": "position",
                                "type": "number",
                                "label": "Position",
                                "required": true
                            },
                            {
                                "name": "visible",
                                "type": "boolean",
                                "label": "Visible"
                            },
                            {
                                "name": "variation",
                                "type": "boolean",
                                "label": "Variation"
                            }
                        ],
                        "type": "array",
                        "label": "Attributes"
                    },
                    {
                        "name": "default_attributes",
                        "spec": [
                            {
                                "name": "id",
                                "type": "select",
                                "label": "Attribute",
                                "dynamic": true,
                                "options": {
                                    "store": []
                                },
                                "required": true
                            }
                        ],
                        "type": "array",
                        "label": "Default Attributes"
                    },
                    {
                        "name": "metaData",
                        "spec": [
                            {
                                "name": "key",
                                "type": "text",
                                "label": "Key",
                                "required": true
                            },
                            {
                                "name": "value",
                                "type": "text",
                                "label": "Value",
                                "required": true
                            }
                        ],
                        "type": "array",
                        "label": "Meta Data"
                    }
                ]
            }
        }
    ],
    "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": []
    }
}