I build data scrapers, and “watch my app’s reviews” kept coming up as the thing people actually wanted them for. So I wired the whole job end to end in n8n: every Monday it pulls the week’s new reviews from both stores and sends one email — counts, average rating per store, and the negative reviews that need a reply, quoted with author and app version.
Import from URL:
https://inmanjeffrey89-cell.github.io/data-tools/workflows/t1-app-review-digest.json
The flow is a schedule trigger, a Config node (app ids, country, email), two HTTP Request calls to hosted scrapers on Apify, a Code node that builds the HTML digest, and Gmail. The scrapers are mine (disclosure) — pay-per-review at $0.0002/$0.0001, so a typical 200+200 week costs about six cents and a quiet week costs nothing. There’s a hard $1 cost cap per run in the URL.
No community nodes, just plain HTTP Request, so it runs on n8n Cloud and self-hosted. The sticky notes inside carry the whole setup — the Header Auth credential is the only fiddly bit.
It’s also in review for the template library; the JSON above imports directly in the meantime. Happy to post a Slack-digest variant if anyone wants one.
Quoting the review with the app version is a useful detail. I’d add a few checks around the digest itself: a quiet week should show “0 new reviews”, while a failed scrape should show “source unavailable” rather than the same zero.
For the HTML email, treat review text and author names as plain data and escape them before inserting them into the markup. A review containing <, &, or a pasted HTML fragment is a good fixture.
One recovery case worth testing: Gmail fails after both scrapes succeed. Can you resend the saved digest for that week without fetching the reviews again? That would help keep retry costs and duplicate emails predictable.
Good points. Two of them are half-handled, and I should be honest about where the gap is.
A failed request errors the workflow out (the HTTP node throws, so no email goes out), but an empty feed doesn’t fail. Apple’s review feed occasionally answers with nothing for an app that has reviews, and the template currently shows that as “No new reviews this week”. That’s exactly the case you describe. The fix is to keep the actor’s typed error rows (NO_REVIEWS) instead of filtering them out, and render them as “feed didn’t answer” rather than zero. I’ll push that.
Review text and author names already go through an escape helper before they reach the HTML, but a fixture with <, & and a pasted HTML fragment is a better test than what I have.
The resend-without-refetch case I don’t handle at all. Storing the built digest in workflow static data, keyed by ISO week, would let a Gmail retry just read it back. I’m adding that one.
Pushed both changes. The import URL above now has them.
Each store is read from its own node now, and the two HTTP nodes are set to continue on failure. A store that errors, or comes back with nothing, shows as “unavailable this week” along with the reason, and a quiet week shows “0 new reviews”. If one store is down, the email still goes out for the other one.
I also ran the HTML fixture you suggested (a review with < and & in it and a pasted script tag). It renders as text, nothing gets through as markup.
For the resend case it turned out n8n already covers it. A failed run can be retried from Executions starting at the failed node, so the scrapers don’t run again. The Gmail node also retries a few times on its own now.
Thanks for the push on this.