{
    "model": "gpt-4o",
    "system_message": "You are a professional copywriter specializing in e-commerce optimization. Your task is to create a base title from the unfiltered title by using all applicable 'usable words' and correcting any inaccuracies (like incorrect set size). Ensure to exclude any 'negative keywords' that are not accurate or relevant. Then refine this base title into an optimized title by potentially adding relevant SEO keywords from the description to achieve a target length close to 80 characters, while maintaining the structural integrity of the original title.",
    "function_schema": {
        "name": "construct_optimized_product_title",
        "description": "Creates an optimized product title by first forming a base title using relevant words from the unfiltered title, ensuring all irrelevant words are excluded. The base title is then enhanced with additional relevant keywords derived from the product description to maximize relevance and SEO potential, ensuring the optimized title starts with the base title.",
        "parameters": {
            "type": "object",
            "properties": {
                "unfiltered_title": {"type": "string"},
                "brand": {"type": "string"},
                "description": {"type": "string"},
                "irrelevant_keywords_in_unfiltered_title": {"type": "array", "items": {"type": "string"}},
                "relevant_keywords": {"type": "array", "items": {"type": "string"}},
                "relevant_words_in_unfiltered_title": {"type": "array", "items": {"type": "string"}},
                "base_title": {"type": "string"},
                "optimized_title": {"type": "string"},
                "optimized_title_length": {"type": "integer"}
            },
            "required": ["unfiltered_title", "brand", "description", "irrelevant_keywords_in_unfiltered_title", "relevant_keywords", "relevant_words_in_unfiltered_title", "base_title", "optimized_title", "optimized_title_length"]
        }
    },
    "example_user_input": "Unfiltered Title: Camillus Carnivore Inject 5\" Machete with 5\" Trimming Knife and Sheath, Black/Silve \n\n\n Item Information:\n(Product Title): Large Flipper Assisted Opening Pocket Knife, 5‘’ \n(Product Description): D2 Steel Folding Knife with G10 Handle and Liner Lock, for EDC Survival Camping Hiking. Black recommended uses for product: camping, special feature: lightweight, age range (description): adult, included components: pocket clip, handle material: fiberglass, color: black, blade material: alloy steel, style: modern, blade length: 5 inches, product care instructions: hand wash only, hand orientation: ambidextrous, item weight: 233 grams, blade shape: spear point, blade edge: compound bevel, item length: 10.7 inches. Pocket Knife Dimensions - Overall Length: 10.7 inch; Blade Length: 5 inch; Handle Length: 5.7 inch; Blade thickness: 2 mm; Handle Thickness: 0.67 inch; Weight: 8.21 oz. Material of Flipper knife - D2 steel blade has excellent strength, edge retention and corrosion resistance for lasting durability, good for piercing, detail work, and cutting in tight places. Handle Grip Design - Handle made of G10 material, its curved design is specifically non-slip, ergonomic. Utility Pocket clip designs pocket clips to fit specific knives according to their weight, intended end use, size, style, and hardware. Some knives have multiple carry options, others are more streamlined. Wide Applicable Occasions - Suitable for various military, hunting, survival, tactical, industrial, and outdoor activities.",
    "example_assistant_output_arguments": {
        "unfiltered_title": "Camillus Carnivore Inject 5\" Machete with 5\" Trimming Knife and Sheath, Black/Silve",
        "brand": "Camillus",
        "description": "Large Flipper Assisted Opening Pocket Knife, 5‘’ D2 Steel Folding Knife with G10 Handle and Liner Lock, for EDC Survival Camping Hiking. Black recommended uses for product: camping, special feature: lightweight, age range (description): adult, included components: pocket clip, handle material: fiberglass, color: black, blade material: alloy steel, style: modern, blade length: 5 inches, product care instructions: hand wash only, hand orientation: ambidextrous, item weight: 233 grams, blade shape: spear point, blade edge: compound bevel, item length: 10.7 inches. Pocket Knife Dimensions - Overall Length: 10.7 inch; Blade Length: 5 inch; Handle Length: 5.7 inch; Blade thickness: 2 mm; Handle Thickness: 0.67 inch; Weight: 8.21 oz. Material of Flipper knife - D2 steel blade has excellent strength, edge retention and corrosion resistance for lasting durability, good for piercing, detail work, and cutting in tight places. Handle Grip Design - Handle made of G10 material, its curved design is specifically non-slip, ergonomic. Utility Pocket clip designs pocket clips to fit specific knives according to their weight, intended end use, size, style, and hardware. Some knives have multiple carry options, others are more streamlined. Wide Applicable Occasions - Suitable for various military, hunting, survival, tactical, industrial, and outdoor activities.",
        "irrelevant_keywords_in_unfiltered_title": ["Machete", "Inject", "Carnivore", "Silve", "Sheath"],
        "relevant_keywords": ["D2 steel", "camping", "tactical", "EDC", "survival", "pocket clip", "non-slip", "ergonomic"],
        "relevant_words_in_unfiltered_title": ["5\"", "Trimming", "Knife"],
        "base_title": "5\" Trimming Knife",
        "optimized_title": "5\" Trimming Knife - D2 Steel Folding with G10 Handle for EDC, Survival, Camping",
        "optimized_title_length": 80
    },
    "user_input": "Unfiltered Title: {{Unfiltered Title}} \n\n\n Description: {{Description}}"
}
