Weekly Context7 docs usage report in Sheets and Slack
See which AI coding assistants are reading your published documentation each week, with a running history in Sheets and a Monday summary in Slack.
Every Monday at 9am, run a scheduled workflow that reports on how AI coding assistants consumed the documentation we publish to Context7 over the previous 7 days. This is a fixed report with fixed fields and fixed destinations, so build it as a deterministic workflow with no reasoning step.
Keep the list of library IDs we own as a configurable input at the top of the workflow so we can add or remove libraries without rebuilding it. For each library in that list, call Get Library Usage Metrics in Context7 with the days parameter set to 7. From each response, pull the request counters, the MCP client breakdown, the topic distribution and the country distribution. Note that this operation requires our Context7 API key to belong to a member of the teamspace or team project that owns the library, so it only works for libraries we publish ourselves.
Before writing anything new, use Get Values in Google Sheets to read the existing rows on the tracking tab and find the most recent prior row for each library. Use that row's total request count to compute the week over week change, as both an absolute difference and a percentage. If there is no prior row for a library, treat this run as the baseline and record the change as not applicable rather than as zero.
Then use Append Values in Google Sheets to append one row per library per week to the tracking tab. Each row should carry: the week start date, the week end date, the library ID, total requests for the window, the absolute and percentage change versus the prior week, the per client request counts for the MCP clients returned (Cursor, Claude Code, Windsurf and any others), the top topics with their request counts, and the top countries with their request counts. Serialize the client, topic and country breakdowns into single cells as compact name equals count lists so the row stays one row wide and the column layout never shifts between weeks. Always append a row for every tracked library, even when a library returned no traffic, recording zeros so the history has no gaps.
Finally, use Send a Message in Slack to post the weekly summary to our developer relations channel. The message should lead with the reporting window and the combined request total across all libraries with its week over week change, then list each library on its own line with its total and its change versus last week, then show the aggregate client breakdown so we can see which coding assistants are hitting our docs hardest, and close with the most requested topics across all libraries. Sort libraries by request volume descending and mark clear risers and fallers so the trend is readable at a glance.
If Context7 returns an error for one library, skip that library, still report the others, and note the failure at the end of the Slack message rather than aborting the whole run.
Example output
Additional information
What does this prompt do?
- Every Monday morning, pulls the last seven days of usage for each library your team publishes to Context7.
- Records one row per library per week in a Google Sheet, so you build a clean history of request volume over time.
- Breaks down which AI coding assistants are reading your docs, including Cursor, Claude Code and Windsurf, alongside the topics and countries the requests came from.
- Posts a summary to your developer relations Slack channel with this week's totals, the change against last week, and the topics developers asked about most.
What do I need to use this?
- A Context7 account that belongs to the teamspace or team project that owns your libraries. This is the important one: usage figures are only available to the team that publishes the documentation, so this report is for teams who publish their own libraries to Context7, not for people who only read the public catalog.
- The list of libraries your team publishes, so the report knows what to track.
- A Google account and a spreadsheet with a tab set aside for the weekly history.
- A Slack workspace and a channel where your developer relations team wants the summary posted.
How can I customize it?
- Change the day and time it runs, and the length of the reporting window if you would rather see fourteen or thirty days.
- Add or remove libraries from the tracked list as your team publishes more documentation.
- Point the summary at a different Slack channel, or post to several at once.
- Adjust how many top topics and clients are included in the Slack message.
FAQs
Which AI coding tools will I see in the report?
Does this work for any library, or only my own?
What happens on the very first run, when there is no previous week to compare against?
What if one of my libraries had no traffic that week?
Can I run this more often than weekly?
Related templates
New roof inspection requests from your website form land in JobNimbus within a minute, with no duplicate records and nothing retyped by your team.
Every weekday at 7am, your active courses are checked for missing work, silent logins, and slipping grades, with a ranked list sent to your advising channel.
Every new customer request gets a priority, triage labels, a friendly reply with the right help article, and a Slack ping only when it is truly urgent.
Every Monday at 8am, see exactly which assignments have work waiting, sorted worst first, posted to Slack and logged to a spreadsheet.
When a bot opens a version bump pull request, we read the real documentation for that exact version and tell you whether it is safe to merge.
The moment a deal hits Closed Won, the right contract starts in Ironclad, the link lands on the deal, and your sales channel hears who owns the next step.
Stop guessing how AI coding tools use your docs.
Get a Monday morning readout of who is reading your documentation and what they are asking about, logged automatically week after week.