Post a weekly Algolia search performance recap to Slack
Every Monday morning your team gets a plain-English rundown of the past week's search trends, top clicks, and dead-end queries, right in Slack.
Every Monday at 9am in my timezone, pull the last 7 days of search analytics from my main Algolia index and post a short, plain-English recap to a Slack channel.
Trigger: cron, weekly on Monday at 9am. The workflow should compute a startDate/endDate covering the previous 7 days (so a run on Monday covers the prior Monday through Sunday) and reuse that same date range for every analytics call below.
Data to fetch from Algolia for my main index (I will provide the index name during setup):
1. Analytics: Searches Count for the last 7 days AND the 7 days before that, so the recap can talk about week-over-week change.
2. Analytics: Top Searches for the last 7 days AND the prior 7 days, so the agent can spot surging and weakening queries by comparing rank and volume.
3. Analytics: Top Hits for the last 7 days — the records that get clicked or returned most often.
4. Analytics: Top Searches with No Results for the last 7 days — dead-end queries.
5. Analytics: Top Filter Attributes for the last 7 days — which facets shoppers are actually using.
6. Analytics: Top Countries for the last 7 days — where the search traffic is coming from.
Then use an agent to turn those six datasets into a short brief. The agent should focus on what actually moved and what a human should do about it, not dump raw tables. Specifically call out: total search volume and week-over-week change; the 3-5 queries that surged the most; any queries that clearly weakened; the no-results rate and the top 5 no-results queries the content or merchandising team should fix; the top clicked records and whether the mix shifted; notable filter-attribute usage (a facet suddenly popular is a signal); and notable country-mix changes. Keep the whole thing tight — about 8-15 short lines, written in Slack mrkdwn, with a clear 'this week's action items for merchandising and content' section at the bottom.
Finally, use the Send a Message action in Slack to post the recap to the channel I pick during setup. The message should be readable inline (Slack mrkdwn, not raw JSON), lead with the week the recap covers, and end with 2-4 concrete callouts phrased as suggestions the merchandising or content team can act on this week.
Skip the run and send nothing if the Algolia responses come back empty (zero searches for the week). Otherwise always post, even if the week looked flat.
Additional information
What does this prompt do?
- Every Monday morning, pulls the last seven days of search data from your main Algolia index.
- Turns the raw numbers into a short, plain-English recap of what actually moved.
- Highlights surging queries, weakening ones, no-results trends, and the records people clicked most.
- Posts the write-up to a Slack channel your merchandising and content teams already read.
What do I need to use this?
- An Algolia account with analytics enabled on the index you want to report on.
- A Slack workspace and the channel where the recap should land.
- The name of the Algolia index you want the recap to cover.
How can I customize it?
- Change the day, time, or timezone the recap runs on (weekly on Monday morning is the default).
- Point it at a different Algolia index or send it to more than one Slack channel.
- Adjust what the recap emphasizes: no-results issues, surging queries, top clicked products, or filter usage.
Frequently asked questions
Does this work if I have more than one Algolia index?
Can I send it on a different day or more than once a week?
Will the recap flag zero-result searches that need attention?
Do I need an Algolia Analytics add-on?
Can it post to a private Slack channel?
Related templates
Stop guessing what your shoppers are searching for.
Get a plain-English Algolia search recap in your team's Slack channel every Monday, no dashboard tab required.