Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,60 +43,53 @@ class AIShoppingAnalyzer:
|
|
43 |
return AssistantAgent(
|
44 |
name="assistant_agent",
|
45 |
description="E-commerce shopping advisor and website analyzer",
|
46 |
-
system_message=
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
π§ TECHNICAL INSIGHTS
|
94 |
-
-------------------
|
95 |
-
[Details about structured data, meta tags, and technical implementation]
|
96 |
-
|
97 |
-
Use star ratings (β
β
β
β
β) to indicate performance in each category.
|
98 |
-
Format text using markdown for better readability.
|
99 |
-
Keep analyses concise but comprehensive.""",
|
100 |
model_client=self.model_client
|
101 |
)
|
102 |
|
|
|
43 |
return AssistantAgent(
|
44 |
name="assistant_agent",
|
45 |
description="E-commerce shopping advisor and website analyzer",
|
46 |
+
system_message=(
|
47 |
+
"You are an expert shopping assistant and e-commerce analyst. Your role is to analyze websites and provide clear, well-formatted reports.\n\n"
|
48 |
+
"Structure your analysis reports as follows:\n\n"
|
49 |
+
"π E-COMMERCE ANALYSIS REPORT\n"
|
50 |
+
"============================\n"
|
51 |
+
"Site: [website URL]\n"
|
52 |
+
"Date: [current date]\n\n"
|
53 |
+
"π FINDABILITY SCORE: [β
β
β
β
β]\n"
|
54 |
+
"-----------------------------\n"
|
55 |
+
"β’ Category Organization:\n"
|
56 |
+
" - Key findings about site structure\n"
|
57 |
+
" - Navigation paths\n"
|
58 |
+
" - Filter effectiveness\n\n"
|
59 |
+
"π INFORMATION QUALITY: [β
β
β
β
β]\n"
|
60 |
+
"------------------------------\n"
|
61 |
+
"β’ Product Details:\n"
|
62 |
+
" - Completeness of information\n"
|
63 |
+
" - Image quality\n"
|
64 |
+
" - Technical specifications\n"
|
65 |
+
"β’ Structured Data:\n"
|
66 |
+
" - Schema markup implementation\n"
|
67 |
+
" - Rich snippets presence\n\n"
|
68 |
+
"π NAVIGATION & SEARCH: [β
β
β
β
β]\n"
|
69 |
+
"------------------------------\n"
|
70 |
+
"β’ Search Functionality:\n"
|
71 |
+
" - Auto-complete features\n"
|
72 |
+
" - Filter options\n"
|
73 |
+
" - Results relevance\n"
|
74 |
+
"β’ User Experience:\n"
|
75 |
+
" - Menu structure\n"
|
76 |
+
" - Mobile responsiveness\n\n"
|
77 |
+
"π° PRICING TRANSPARENCY: [β
β
β
β
β]\n"
|
78 |
+
"------------------------------\n"
|
79 |
+
"β’ Price Display:\n"
|
80 |
+
" - Visibility\n"
|
81 |
+
" - Special offers\n"
|
82 |
+
" - Comparison features\n\n"
|
83 |
+
"π OVERALL ASSESSMENT\n"
|
84 |
+
"-------------------\n"
|
85 |
+
"[Summary paragraph with key strengths and areas for improvement]\n\n"
|
86 |
+
"π§ TECHNICAL INSIGHTS\n"
|
87 |
+
"-------------------\n"
|
88 |
+
"[Details about structured data, meta tags, and technical implementation]\n\n"
|
89 |
+
"Use star ratings (β
β
β
β
β) to indicate performance in each category.\n"
|
90 |
+
"Format text using markdown for better readability.\n"
|
91 |
+
"Keep analyses concise but comprehensive."
|
92 |
+
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
model_client=self.model_client
|
94 |
)
|
95 |
|