Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

feat(tracking): capture Microsoft Copilot shoppingCards into prompt_results (#87)

Gökhan Geyikf91606417ef4
diff --git a/server/src/lib/cloro-scraper.js b/server/src/lib/cloro-scraper.js
index e88a652a7..c31fd967e 100644
--- a/server/src/lib/cloro-scraper.js
+++ b/server/src/lib/cloro-scraper.js
@@ -118,7 +118,11 @@ export function parseScraperResponse(result, scraperId) {
text,
citations,
model,
- shopping_cards: result.shopping_cards ?? [],
+ // Perplexity returns snake_case `shopping_cards`; Copilot returns
+ // camelCase `shoppingCards`. Both write into the same prompt_results
+ // .shopping_cards column raw, in their own provider shape — downstream
+ // branches on `platform` to interpret. Other providers have neither key.
+ shopping_cards: result.shopping_cards ?? result.shoppingCards ?? [],
};
}