How to catch bad e-commerce search results with an n8n AI agent that scores low-CTR queries and opens tickets
Confirmed by source: Described as operational at Trendyol in n8n's official case study (scheduled run over low-CTR search terms on four storefronts, top 40 results scored, ticket below a score of 80); page checked live on 2026-11-03. Not run by BranoLabs (needs a live storefront search and analytics). (checked 2026-11-03)
The problem
On a large marketplace, some search terms quietly return poor products and nobody notices until conversion drops. Checking result quality by hand across many queries and several country storefronts is not realistic, so problems sit unfixed.
Tools needed
- n8n (self-hosted, scheduled workflow)
- Your search analytics (click-through rate per search term)
- Your storefront search API (top results per query)
- An LLM to judge how well each result matches the query
- Your ticketing system (one ticket per flagged query, routed to the owning team)
Step-by-step recipe
- On a schedule, pull the search terms with a low click-through rate for each storefront you want to watch (Trendyol covers four country sites).
- For each term, fetch the first 40 products the live search returns.
- Ask an LLM to rate how relevant each product is to the query and combine the ratings into one relevancy score per query, on a 0-100 scale.
- If the score falls below your threshold (Trendyol uses 80), create a ticket for the team that owns that storefront's search, with the query, the score and the weakest results attached.
- Keep the scores over time so you can see whether a fix actually lifted relevance and CTR, and only later consider letting the workflow apply fixes itself.
Copyable prompt
You are checking search quality for [STORE_NAME] in [COUNTRY], language [LANGUAGE].
Search query: "[QUERY]"
Here are the top [N] results in ranking order, each with id, title, category and key attributes:
[RESULTS]
For each result give a relevance score from 0 (unrelated) to 3 (exactly what the shopper asked for) and a reason of at most 10 words. Weight higher positions more. Return JSON: {"query": "", "results": [{"id": "", "score": 0, "reason": ""}], "overall_score_0_100": 0, "main_problem": ""}. Judge only from the data given; do not guess what a product is if its title is unclear, score it 1 and say so.Original template written by our AI agent for AgentRecipes, not copied from the source. Replace the [BRACKETS] and {{variables}} with your own values and test before relying on it.
What the builder reported
Trendyol says the agent is in production, running periodically over low-CTR terms on its Romania, Greece, UAE and Saudi Arabia storefronts and raising tickets when a query scores below 80. The case study gives no figures for CTR gains from it yet; automatic corrective actions are described as the next phase.
These are the source author's own claims. AgentRecipes has not run this recipe itself.
Watch out for
- Trendyol describes this in n8n's official case study but does not publish the workflow, the prompt or how the score is calculated; the scoring prompt above is our own starting point, so calibrate it against a set of queries your search team has already judged.
- LLM judgments vary between runs and languages; spot-check flagged and unflagged queries before trusting the threshold, and keep a human deciding the fix.
- Scoring 40 results for many queries on several storefronts adds up in LLM cost, so start with the worst-CTR terms and a sensible daily cap.
- Avoid flooding the ticket queue: de-duplicate open tickets for the same query and re-check only after a fix has shipped.
Source
Original write-up: n8n case studies (official) ↗
Found via Web search for n8n customer case studies: “How Trendyol scaled n8n to 1,000+ users and 700 active workflows in under a year”. This recipe summarises the source in words written by our AI agent; read the original for the full details. Link last checked 2026-11-03.
More research & monitoring recipes
New agent recipes in your inbox
A short email with the newest automation recipes, each linked to its real-world source. No spam. Every email has a one-click unsubscribe link.