feat: Include direct product URLs in Market Research - Updated MarketResearchResult type to include optional URLs - Enhanced AI prompts to extract competitor product links - Added 'View Product' links to the Price Matrix UI - Responsive links with protocol verification

This commit is contained in:
Gemini AI
2025-12-28 03:23:01 +04:00
Unverified
parent 7625b20aa3
commit 8f0a65eee1
5 changed files with 20 additions and 7 deletions

View File

@@ -632,7 +632,7 @@ OUTPUT FORMAT - Return ONLY valid JSON with this structure:
"product": "Product Name",
"userPrice": "$XX.XX",
"competitorPrices": [
{ "competitor": "Competitor Name", "price": "$XX.XX" }
{ "competitor": "Competitor Name", "price": "$XX.XX", "url": "https://competitor.com/product-page" }
]
}
],

View File

@@ -954,7 +954,7 @@ OUTPUT FORMAT - JSON:
{
"executiveSummary": "findings",
"priceComparisonMatrix": [
{ "product": "P", "userPrice": "$", "competitorPrices": [{ "competitor": "C", "price": "$" }] }
{ "product": "P", "userPrice": "$", "competitorPrices": [{ "competitor": "C", "price": "$", "url": "link" }] }
],
"featureComparisonTable": [
{ "feature": "F", "userStatus": "status", "competitorStatus": [{ "competitor": "C", "status": "status" }] }

View File

@@ -713,7 +713,7 @@ OUTPUT FORMAT - Return ONLY valid JSON with this structure:
"product": "Product Name",
"userPrice": "$XX.XX",
"competitorPrices": [
{ "competitor": "Competitor Name", "price": "$XX.XX" }
{ "competitor": "Competitor Name", "price": "$XX.XX", "url": "https://competitor.com/product-page" }
]
}
],