Answer engineers' library questions in Slack from live docs

By General Input

When someone asks a library or framework question in your help channel, they get a straight answer with working code and a source link, right in the thread.

Integrations

  • Context7
  • Slack Bot
  • Linear

Type

Agentic Task

Categories

  • Engineering
  • Operations

Watch our #eng-help Slack channel and answer library and framework questions for the team. Use a webhook trigger that fires on each new message posted in the channel. Use the Slack Bot integration throughout so replies come from a bot identity rather than from any individual person's account.

First decide whether the message is actually a question about a software library or framework. Genuine questions qualify: how to do something with a named library, why an API behaves a certain way, which method or option to use, how something changed between versions, or how to fix a specific error from a library. Ignore everything else: greetings, thanks, jokes, status updates, opinions, questions about our own internal systems that no public library documents, and any message posted by the bot itself so it never replies to its own output. If the message does not qualify, stop and do nothing. Staying quiet is the correct outcome for most messages in the channel.

If the message was posted inside an existing thread, use Get Thread Replies to read the whole thread before deciding anything. That tells you what the person is really asking after follow-ups, and stops you from answering a question a teammate has already answered.

When it is a real question, work out which library or framework it is about and resolve it with Context7 Search for Libraries to get a Context7 library ID. If several candidates come back, pick the best match on name and description, and prefer the one whose description matches the technology the person is clearly using. If nothing matches confidently, treat the question as not covered rather than forcing a bad match.

Then call Context7 Get Documentation Context with that library ID, passing the person's question as the natural-language query, close to verbatim so the ranking works against what they actually asked. Request type=json so the response comes back as structured code snippets and info snippets, which makes it far easier to pull out a clean snippet and its source link.

Reply in the same thread using Send a Message with thread_ts set to the original message, so the answer stays threaded and the main channel stays clean. Keep the reply short and direct: two or three sentences that answer the question, one working code snippet taken from the documentation, and a link to the source page that snippet came from. Format for Slack mrkdwn rather than standard Markdown, so *bold* uses single asterisks and links are written as <url|text>. Do not restate the question, do not pad with caveats, and do not add a snippet you invented rather than took from the docs.

If the documentation genuinely does not answer the question, or answering it makes clear that our own internal documentation has a gap, create a Linear issue with Create Issue. Title it with the question itself. In the description capture who asked, a link to the Slack thread, the exact question, which library was checked, and specifically what was missing. Then reply in the thread saying the documentation did not cover it and that it has been logged for a human to pick up, including the issue link. Never guess or fill the gap from memory when the documentation does not support the answer, because a confidently wrong answer is worse than no answer.

Create at most one Linear issue per question, and only when there is a real gap. Do not open issues for questions you answered successfully from the documentation.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasonLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsLinkedIn Ads budget pacing dashboard for every client accountGive your team Looker numbers without buying more seatsPause marketing emails to escalated customers, then restore them