{"type_of":"article","id":4884586,"title":"Building an Open-Source Support Tool That Turns Your Docs into Reusable Knowledge","description":"I spend a good part of my day working with the community at CopilotKit, answering questions in...","readable_publish_date":"Oct 20","slug":"your-team-has-answered-this-before-im-building-a-tool-that-remembers-5604","path":"/nathan_tarbert/your-team-has-answered-this-before-im-building-a-tool-that-remembers-5604","url":"https://dev.to/nathan_tarbert/your-team-has-answered-this-before-im-building-a-tool-that-remembers-5604","comments_count":59,"public_reactions_count":153,"collection_id":null,"published_timestamp":"2026-10-20T17:15:15Z","language":"en","subforem_id":1,"ai_disclosure_level":"not_disclosed","ai_disclosure_label":"Not Disclosed","positive_reactions_count":153,"cover_image":"https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl0qfhqjgbvaejbwbk7ct.png","social_image":"https://media2.dev.to/dynamic/image/width=1200,height=627,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl0qfhqjgbvaejbwbk7ct.png","canonical_url":"https://answerloops.com/blog/turn-support-answers-into-reusable-knowledge","created_at":"2026-10-20T17:01:54Z","edited_at":"2026-10-23T12:23:41Z","crossposted_at":null,"published_at":"2026-10-20T17:15:15Z","last_comment_at":"2026-12-01T00:21:07Z","reading_time_minutes":7,"tag_list":"ai, webdev, programming, showdev","tags":["ai","webdev","programming","showdev"],"body_html":"\u003cp\u003eI spend a good part of my day working with the community at CopilotKit, answering questions in Discord, GitHub, and Slack, helping people get unstuck, and pointing them to the right resources.\u003c/p\u003e\n\n\u003cp\u003eI started building \u003ca href=\"https://github.com/answerLoops/answerLoops\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eanswerLoops\u003c/a\u003e to help me with that work. As it took shape, I added integrations for more platforms so other teams could use it in their communities too.\u003c/p\u003e\n\n\u003cp\u003eIt’s open source, and I’m building it in public.\u003c/p\u003e\n\n\u003cp\u003e\u003ca href=\"https://github.com/answerLoops/answerLoops\" class=\"crayons-btn crayons-btn--primary\" role=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eExplore answerLoops on ⭐️ GitHub\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp\u003eA big part of the work has been deciding how knowledge gets into the system. Some answers are in the docs. Others come out of a support conversation or are things someone on the team just knows.\u003c/p\u003e\n\n\u003cp\u003eFor an agent to use those answers, the team needs a straightforward way to save them, review them, and keep them current. That’s what I’ve been building into the knowledge base.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"answering-the-question-is-only-part-of-the-work\" href=\"#answering-the-question-is-only-part-of-the-work\"\u003e\n  \u003c/a\u003e\n  Answering the question is only part of the work\n\u003c/h2\u003e\n\n\u003cp\u003eA question comes in. You find the relevant documentation or resource, figure out how it applies to that person’s setup, and write a reply.\u003c/p\u003e\n\n\u003cp\u003eDuring that conversation, you might discover something the docs don’t cover. A missing setup step, a confusing default, or a workaround that deserves its own article.\u003c/p\u003e\n\n\u003cp\u003eYou resolve the question, but that useful detail stays buried in the conversation. When someone else asks, the team has to find it again.\u003c/p\u003e\n\n\u003cp\u003eI want answerLoops to help with both parts: preparing a useful answer now and saving what the team learns for future questions.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"what-answerloops-does\" href=\"#what-answerloops-does\"\u003e\n  \u003c/a\u003e\n  What answerLoops does\n\u003c/h2\u003e\n\n\u003cp\u003e\u003ca href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21k4d1099k5yfp24yke0.png\" class=\"article-body-image-wrapper\"\u003e\u003cimg src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21k4d1099k5yfp24yke0.png\" alt=\"Ticket and website chat workflows in answerLoops\" loading=\"lazy\" width=\"800\" height=\"450\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eanswerLoops is an open-source AI support tool that brings questions from Discord, Slack, GitHub, Telegram, and other connected channels into one dashboard. It uses your knowledge base to help prepare answers.\u003c/p\u003e\n\n\u003cp\u003eFor knowledge-based replies in the ticket pipeline, a Mastra agent generates a draft and a separate agent scores its confidence and whether it fully answers the question. Automatic replies are off by default. When enabled, answers that meet the configured criteria can be sent automatically; other drafts remain available for human review.\u003c/p\u003e\n\n\u003cp\u003eThere’s also an embeddable website chat widget built with CopilotKit and connected to a Mastra support agent. Visitors can ask questions directly, with published knowledge-base articles supplied as reference material.\u003c/p\u003e\n\n\u003cp\u003eThe widget supports richer responses, including step-by-step guides, quick replies, callouts, link cards, and contact options.\u003c/p\u003e\n\n\u003cp\u003eBut the quality of those answers depends on the information available to the agent. That’s why much of the recent work has been on the knowledge base.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"add-the-answer-that-isnt-in-your-docs\" href=\"#add-the-answer-that-isnt-in-your-docs\"\u003e\n  \u003c/a\u003e\n  Add the answer that isn’t in your docs\n\u003c/h2\u003e\n\n\u003cp\u003e\u003ca href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F905by9pwudz9d445bzj3.gif\" class=\"article-body-image-wrapper\"\u003e\u003cimg src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F905by9pwudz9d445bzj3.gif\" alt=\"Entering a question and answer, then publishing it directly to the knowledge base\" loading=\"lazy\" width=\"800\" height=\"450\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eSometimes you don’t need to import a documentation site. You just need to write down something the agent should know.\u003c/p\u003e\n\n\u003cp\u003eAn owner or admin can open \u003cstrong\u003eKnowledge Base → Manage\u003c/strong\u003e and use \u003cstrong\u003eWrite an answer by hand\u003c/strong\u003e:\u003c/p\u003e\n\n\u003col\u003e\n\u003cli\u003eEnter a question or title.\u003c/li\u003e\n\u003cli\u003eWrite the answer or context.\u003c/li\u003e\n\u003cli\u003eClick \u003cstrong\u003eAdd to knowledge base\u003c/strong\u003e.\u003c/li\u003e\n\u003c/ol\u003e\n\n\u003cp\u003eFor example, a customer might ask whether changing a configuration requires a restart. Someone on your team knows the answer, but it isn’t documented anywhere.\u003c/p\u003e\n\n\u003cp\u003eThe article is published and indexed when it’s saved, making it available for subsequent questions. There’s no draft step in this form, so the answer should be suitable for customers to read.\u003c/p\u003e\n\n\u003cp\u003eAdding an article doesn’t retrain the model. It gives the agent another reference to retrieve when a relevant question comes in.\u003c/p\u003e\n\n\u003cp\u003eArticles added this way appear under \u003cstrong\u003eAdded by hand\u003c/strong\u003e in the Knowledge coverage tab.\u003c/p\u003e\n\n\u003cp\u003eIt’s a small feature, but it gives the person with the answer a direct way to improve what the agent knows.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"bring-in-the-knowledge-you-already-have\" href=\"#bring-in-the-knowledge-you-already-have\"\u003e\n  \u003c/a\u003e\n  Bring in the knowledge you already have\n\u003c/h2\u003e\n\n\u003cp\u003e\u003ca href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozmg8uwzn0d06kchipy2.png\" class=\"article-body-image-wrapper\"\u003e\u003cimg src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozmg8uwzn0d06kchipy2.png\" alt=\"Knowledge sources including documentation, files, GitHub, Notion, manual answers, and resolved tickets\" loading=\"lazy\" width=\"800\" height=\"450\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eYou can also populate the knowledge base from existing content:\u003c/p\u003e\n\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eDocumentation URLs:\u003c/strong\u003e import a page or crawl a documentation site.\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eFiles:\u003c/strong\u003e upload PDF, DOCX, Markdown, text, or CSV files.\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGitHub:\u003c/strong\u003e sync Markdown and MDX files, with optional syncs when changes are pushed to the default branch.\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eNotion:\u003c/strong\u003e connect pages and databases your team wants to use.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cp\u003eNotion content imports unpublished. Your team can inspect it before making it available for customer-facing answers, and that publishing choice is preserved across syncs.\u003c/p\u003e\n\n\u003cp\u003eThe manual-entry form sits alongside these sources. If an answer already exists in your docs, import it. If it only exists in someone’s head, write it down.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"turn-a-resolved-ticket-into-reusable-knowledge\" href=\"#turn-a-resolved-ticket-into-reusable-knowledge\"\u003e\n  \u003c/a\u003e\n  Turn a resolved ticket into reusable knowledge\n\u003c/h2\u003e\n\n\u003cp\u003eClosing a ticket helps the person who asked. Turning that resolution into a knowledge-base article makes the explanation available for future questions.\u003c/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003ePromote to KB\u003c/strong\u003e action lets an owner or admin turn that ticket’s question and answer into a knowledge-base article.\u003c/p\u003e\n\n\u003cp\u003eBefore promoting it, check that the answer applies beyond the original conversation. Remove account-specific details and make the explanation useful to someone encountering the same problem later.\u003c/p\u003e\n\n\u003cp\u003eThis matters for the website widget in particular. Its retrieved reference material comes from published KB articles, rather than raw resolved tickets.\u003c/p\u003e\n\n\u003cp\u003ePromoting an answer gives it a place in the shared knowledge base where the widget can find it.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"let-customer-questions-help-you-decide-what-to-write\" href=\"#let-customer-questions-help-you-decide-what-to-write\"\u003e\n  \u003c/a\u003e\n  Let customer questions help you decide what to write\n\u003c/h2\u003e\n\n\u003cp\u003eYou won’t know every gap in your documentation ahead of time.\u003c/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eReview\u003c/strong\u003e tab captures questions that weren’t covered by the available knowledge. On hosted plans, this queue is available on Pro and above.\u003c/p\u003e\n\n\u003cp\u003eA usable draft can come along as a starting point. If there isn’t one, the item is marked \u003cstrong\u003eNo usable answer\u003c/strong\u003e, and someone can write it.\u003c/p\u003e\n\n\u003cp\u003eOwners and admins can edit the question and answer, then choose \u003cstrong\u003eApprove and add to knowledge base\u003c/strong\u003e. If the item shouldn’t become an article, they can reject it instead.\u003c/p\u003e\n\n\u003cp\u003eNothing in the queue becomes searchable customer-facing knowledge until it’s approved.\u003c/p\u003e\n\n\u003cp\u003eWhen the same question comes in again, its counter increases instead of creating another copy. The most-asked questions appear first.\u003c/p\u003e\n\n\u003cp\u003eIf several people ask about the same setup step, that’s a useful signal about what your knowledge base is missing. The queue gives your team a question to work from and a place to review the answer before publishing it.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"go-from-a-knowledge-gap-to-a-new-article\" href=\"#go-from-a-knowledge-gap-to-a-new-article\"\u003e\n  \u003c/a\u003e\n  Go from a knowledge gap to a new article\n\u003c/h2\u003e\n\n\u003cp\u003e\u003ca href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fggvfo6g6ansyq0q7l859.png\" class=\"article-body-image-wrapper\"\u003e\u003cimg src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fggvfo6g6ansyq0q7l859.png\" alt=\"The review queue and Knowledge Gaps provide separate paths to adding published articles\" loading=\"lazy\" width=\"800\" height=\"450\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eKnowledge Gaps\u003c/strong\u003e page provides another view of where support needs attention.\u003c/p\u003e\n\n\u003cp\u003eIt surfaces tickets with low-confidence answers, tickets that need a person, and resolved questions without a covering KB article.\u003c/p\u003e\n\n\u003cp\u003eRepeated questions are grouped with an \u003cstrong\u003eAsked N times\u003c/strong\u003e badge, so you can see recurring topics without reading every ticket separately.\u003c/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003e+ KB\u003c/strong\u003e action opens the manual-entry form with the ticket’s question and any existing answer filled in. Review the text, add the article, and it’s linked back to the ticket to close that gap.\u003c/p\u003e\n\n\u003cp\u003eYou don’t have to leave the question behind and start a blank document somewhere else.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"check-what-the-agent-can-actually-find\" href=\"#check-what-the-agent-can-actually-find\"\u003e\n  \u003c/a\u003e\n  Check what the agent can actually find\n\u003c/h2\u003e\n\n\u003cp\u003e\u003ca href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2nlrd9a0mbmweozc4hr9.png\" class=\"article-body-image-wrapper\"\u003e\u003cimg src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2nlrd9a0mbmweozc4hr9.png\" alt=\"Knowledge coverage shows article availability and lets you test the widget’s retrieval\" loading=\"lazy\" width=\"800\" height=\"450\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eImporting a document doesn’t tell you whether it will help with a particular question.\u003c/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eKnowledge coverage\u003c/strong\u003e tab shows articles grouped by source, including whether they’re live, unpublished, or not searchable.\u003c/p\u003e\n\n\u003cp\u003eThere’s also a \u003cstrong\u003eTry a customer question\u003c/strong\u003e field. It runs the same lookup the website widget uses and shows which articles match—or that nothing covers the question.\u003c/p\u003e\n\n\u003cp\u003eAfter adding an answer, try the original customer question and a few variations. Does the lookup find the article you just wrote? If it doesn’t, you have something concrete to investigate before judging the generated reply.\u003c/p\u003e\n\n\u003cp\u003eThis checks retrieval, not whether every generated reply will be correct. You still need to review the answers themselves. But it gives you a way to investigate whether the intended information is being found.\u003c/p\u003e\n\n\u003cp\u003eThe KB is the source of product knowledge your team maintains for the agent. If no article matches, the assistant can fall back to general knowledge, which may not fit your product. Finding those gaps and adding the right material is part of maintaining it.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"see-which-articles-are-being-used\" href=\"#see-which-articles-are-being-used\"\u003e\n  \u003c/a\u003e\n  See which articles are being used\n\u003c/h2\u003e\n\n\u003cp\u003e\u003ca href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2i86xfl1031fo3ougx44.png\" class=\"article-body-image-wrapper\"\u003e\u003cimg src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2i86xfl1031fo3ougx44.png\" alt=\"Article usage tracks references supplied for generated answers, excluding searches and simulations\" loading=\"lazy\" width=\"800\" height=\"450\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eanswerLoops also tracks article usage.\u003c/p\u003e\n\n\u003cp\u003eIt counts when an article is supplied as context for an answer that is actually produced, including website replies and ticket drafts.\u003c/p\u003e\n\n\u003cp\u003eThe distinction matters: this means the article was given to the agent, not necessarily that the final reply quoted it.\u003c/p\u003e\n\n\u003cp\u003eSearches and simulations don’t increase the count.\u003c/p\u003e\n\n\u003cp\u003eTogether with the coverage view and repeated-question counts, this helps you understand what information is being retrieved and where more work might be useful.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"where-copilotkit-and-mastra-fit\" href=\"#where-copilotkit-and-mastra-fit\"\u003e\n  \u003c/a\u003e\n  Where CopilotKit and Mastra fit\n\u003c/h2\u003e\n\n\u003cp\u003eI work in DevRel at CopilotKit, so part of building answerLoops is putting the tools I work with into a product and sharing what I learn.\u003c/p\u003e\n\n\u003cp\u003eMastra runs the agents behind the support drafts and website conversation, including the chat agent’s thread memory.\u003c/p\u003e\n\n\u003cp\u003eCopilotKit provides the foundation for the custom widget interface. The application connects that interface to the agent and supplies the relevant knowledge-base context.\u003c/p\u003e\n\n\u003cp\u003eThe product also has its own workflows around those pieces: importing sources, reviewing unanswered questions, publishing articles, and handling staff actions on tickets.\u003c/p\u003e\n\n\u003cp\u003eThose workflows are where the team gets to improve the information the agent uses. Someone can spot a missing answer, write it, publish it, and check whether a future question retrieves it.\u003c/p\u003e\n\n\u003cp\u003eThat’s become a much bigger part of answerLoops as I’ve kept building.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"try-it-i-would-love-your-feedback\" href=\"#try-it-i-would-love-your-feedback\"\u003e\n  \u003c/a\u003e\n  Try it, I would love your feedback\n\u003c/h2\u003e\n\n\u003cp\u003eI started this to help with my own community work. I’m sharing it so other developers and support teams can try it in theirs.\u003c/p\u003e\n\n\u003cp\u003eThe code and setup instructions are on \u003ca href=\"https://github.com/answerLoops/answerLoops\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eGitHub\u003c/a\u003e. You can explore how retrieval, the review queue, and the integrations work, or run answerLoops yourself. The \u003ca href=\"https://answerloops.com/docs/product/knowledge-base\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eknowledge-base documentation\u003c/a\u003e walks through the workflows in this article.\u003c/p\u003e\n\n\u003cp\u003eIf it looks useful, give the repo a ⭐️. If you try it, tell me what worked and what got in your way.\u003c/p\u003e\n\n\u003cp\u003eNew to contributing to open source? Reach out—I’d be happy to help you find a place to start.\u003c/p\u003e\n\n\u003cp\u003eWhere does your team keep the useful answers that haven’t made it into the docs yet?\u003c/p\u003e\n\n","body_markdown":"I spend a good part of my day working with the community at CopilotKit, answering questions in Discord, GitHub, and Slack, helping people get unstuck, and pointing them to the right resources.\n\nI started building [answerLoops](https://github.com/answerLoops/answerLoops) to help me with that work. As it took shape, I added integrations for more platforms so other teams could use it in their communities too.\n\nIt’s open source, and I’m building it in public.\n\n{% cta https://github.com/answerLoops/answerLoops %}Explore answerLoops on ⭐️ GitHub {% endcta %}\n\nA big part of the work has been deciding how knowledge gets into the system. Some answers are in the docs. Others come out of a support conversation or are things someone on the team just knows.\n\nFor an agent to use those answers, the team needs a straightforward way to save them, review them, and keep them current. That’s what I’ve been building into the knowledge base.\n\n## Answering the question is only part of the work\n\nA question comes in. You find the relevant documentation or resource, figure out how it applies to that person’s setup, and write a reply.\n\nDuring that conversation, you might discover something the docs don’t cover. A missing setup step, a confusing default, or a workaround that deserves its own article.\n\nYou resolve the question, but that useful detail stays buried in the conversation. When someone else asks, the team has to find it again.\n\nI want answerLoops to help with both parts: preparing a useful answer now and saving what the team learns for future questions.\n\n## What answerLoops does\n\n![Ticket and website chat workflows in answerLoops](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/ahjb2e4njw5022dbjakj.png)\n\nanswerLoops is an open-source AI support tool that brings questions from Discord, Slack, GitHub, Telegram, and other connected channels into one dashboard. It uses your knowledge base to help prepare answers.\n\nFor knowledge-based replies in the ticket pipeline, a Mastra agent generates a draft and a separate agent scores its confidence and whether it fully answers the question. Automatic replies are off by default. When enabled, answers that meet the configured criteria can be sent automatically; other drafts remain available for human review.\n\nThere’s also an embeddable website chat widget built with CopilotKit and connected to a Mastra support agent. Visitors can ask questions directly, with published knowledge-base articles supplied as reference material.\n\nThe widget supports richer responses, including step-by-step guides, quick replies, callouts, link cards, and contact options.\n\nBut the quality of those answers depends on the information available to the agent. That’s why much of the recent work has been on the knowledge base.\n\n## Add the answer that isn’t in your docs\n\n![Entering a question and answer, then publishing it directly to the knowledge base](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/40gkk6gehe5j84ur2qyz.gif)\n\nSometimes you don’t need to import a documentation site. You just need to write down something the agent should know.\n\nAn owner or admin can open **Knowledge Base → Manage** and use **Write an answer by hand**:\n\n1. Enter a question or title.\n2. Write the answer or context.\n3. Click **Add to knowledge base**.\n\nFor example, a customer might ask whether changing a configuration requires a restart. Someone on your team knows the answer, but it isn’t documented anywhere.\n\nThe article is published and indexed when it’s saved, making it available for subsequent questions. There’s no draft step in this form, so the answer should be suitable for customers to read.\n\nAdding an article doesn’t retrain the model. It gives the agent another reference to retrieve when a relevant question comes in.\n\nArticles added this way appear under **Added by hand** in the Knowledge coverage tab.\n\nIt’s a small feature, but it gives the person with the answer a direct way to improve what the agent knows.\n\n## Bring in the knowledge you already have\n\n![Knowledge sources including documentation, files, GitHub, Notion, manual answers, and resolved tickets](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/thn3r0ign6o6q3orun1a.png)\n\nYou can also populate the knowledge base from existing content:\n\n- **Documentation URLs:** import a page or crawl a documentation site.\n- **Files:** upload PDF, DOCX, Markdown, text, or CSV files.\n- **GitHub:** sync Markdown and MDX files, with optional syncs when changes are pushed to the default branch.\n- **Notion:** connect pages and databases your team wants to use.\n\nNotion content imports unpublished. Your team can inspect it before making it available for customer-facing answers, and that publishing choice is preserved across syncs.\n\nThe manual-entry form sits alongside these sources. If an answer already exists in your docs, import it. If it only exists in someone’s head, write it down.\n\n## Turn a resolved ticket into reusable knowledge\n\nClosing a ticket helps the person who asked. Turning that resolution into a knowledge-base article makes the explanation available for future questions.\n\nThe **Promote to KB** action lets an owner or admin turn that ticket’s question and answer into a knowledge-base article.\n\nBefore promoting it, check that the answer applies beyond the original conversation. Remove account-specific details and make the explanation useful to someone encountering the same problem later.\n\nThis matters for the website widget in particular. Its retrieved reference material comes from published KB articles, rather than raw resolved tickets.\n\nPromoting an answer gives it a place in the shared knowledge base where the widget can find it.\n\n## Let customer questions help you decide what to write\n\nYou won’t know every gap in your documentation ahead of time.\n\nThe **Review** tab captures questions that weren’t covered by the available knowledge. On hosted plans, this queue is available on Pro and above.\n\nA usable draft can come along as a starting point. If there isn’t one, the item is marked **No usable answer**, and someone can write it.\n\nOwners and admins can edit the question and answer, then choose **Approve and add to knowledge base**. If the item shouldn’t become an article, they can reject it instead.\n\nNothing in the queue becomes searchable customer-facing knowledge until it’s approved.\n\nWhen the same question comes in again, its counter increases instead of creating another copy. The most-asked questions appear first.\n\nIf several people ask about the same setup step, that’s a useful signal about what your knowledge base is missing. The queue gives your team a question to work from and a place to review the answer before publishing it.\n\n## Go from a knowledge gap to a new article\n\n![The review queue and Knowledge Gaps provide separate paths to adding published articles](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/7jvbu5d3qsou8x776q5f.png)\n\nThe **Knowledge Gaps** page provides another view of where support needs attention.\n\nIt surfaces tickets with low-confidence answers, tickets that need a person, and resolved questions without a covering KB article.\n\nRepeated questions are grouped with an **Asked N times** badge, so you can see recurring topics without reading every ticket separately.\n\nThe **+ KB** action opens the manual-entry form with the ticket’s question and any existing answer filled in. Review the text, add the article, and it’s linked back to the ticket to close that gap.\n\nYou don’t have to leave the question behind and start a blank document somewhere else.\n\n## Check what the agent can actually find\n\n![Knowledge coverage shows article availability and lets you test the widget’s retrieval](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/4gp0q95f6sc11k9jwd9n.png)\n\nImporting a document doesn’t tell you whether it will help with a particular question.\n\nThe **Knowledge coverage** tab shows articles grouped by source, including whether they’re live, unpublished, or not searchable.\n\nThere’s also a **Try a customer question** field. It runs the same lookup the website widget uses and shows which articles match—or that nothing covers the question.\n\nAfter adding an answer, try the original customer question and a few variations. Does the lookup find the article you just wrote? If it doesn’t, you have something concrete to investigate before judging the generated reply.\n\nThis checks retrieval, not whether every generated reply will be correct. You still need to review the answers themselves. But it gives you a way to investigate whether the intended information is being found.\n\nThe KB is the source of product knowledge your team maintains for the agent. If no article matches, the assistant can fall back to general knowledge, which may not fit your product. Finding those gaps and adding the right material is part of maintaining it.\n\n## See which articles are being used\n\n![Article usage tracks references supplied for generated answers, excluding searches and simulations](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/12q5pudj0vsvo3c07bhv.png)\n\nanswerLoops also tracks article usage.\n\nIt counts when an article is supplied as context for an answer that is actually produced, including website replies and ticket drafts.\n\nThe distinction matters: this means the article was given to the agent, not necessarily that the final reply quoted it.\n\nSearches and simulations don’t increase the count.\n\nTogether with the coverage view and repeated-question counts, this helps you understand what information is being retrieved and where more work might be useful.\n\n## Where CopilotKit and Mastra fit\n\nI work in DevRel at CopilotKit, so part of building answerLoops is putting the tools I work with into a product and sharing what I learn.\n\nMastra runs the agents behind the support drafts and website conversation, including the chat agent’s thread memory.\n\nCopilotKit provides the foundation for the custom widget interface. The application connects that interface to the agent and supplies the relevant knowledge-base context.\n\nThe product also has its own workflows around those pieces: importing sources, reviewing unanswered questions, publishing articles, and handling staff actions on tickets.\n\nThose workflows are where the team gets to improve the information the agent uses. Someone can spot a missing answer, write it, publish it, and check whether a future question retrieves it.\n\nThat’s become a much bigger part of answerLoops as I’ve kept building.\n\n## Try it, I would love your feedback\n\nI started this to help with my own community work. I’m sharing it so other developers and support teams can try it in theirs.\n\nThe code and setup instructions are on [GitHub](https://github.com/answerLoops/answerLoops). You can explore how retrieval, the review queue, and the integrations work, or run answerLoops yourself. The [knowledge-base documentation](https://answerloops.com/docs/product/knowledge-base) walks through the workflows in this article.\n\nIf it looks useful, give the repo a ⭐️. If you try it, tell me what worked and what got in your way.\n\nNew to contributing to open source? Reach out—I’d be happy to help you find a place to start.\n\nWhere does your team keep the useful answers that haven’t made it into the docs yet?","user":{"name":"Nathan Tarbert","username":"nathan_tarbert","twitter_username":"CopilotKit","github_username":"NathanTarbert","user_id":1031984,"website_url":"https://github.com/NathanTarbert","profile_image":"https://media2.dev.to/dynamic/image/width=640,height=640,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1031984%2Fe6629bb7-d446-4f40-b537-d2fa664bf5fd.jpg","profile_image_90":"https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1031984%2Fe6629bb7-d446-4f40-b537-d2fa664bf5fd.jpg"},"flare_tag":{"name":"showdev","bg_color_hex":"#091b47","text_color_hex":"#b2ffe1"}}