BitBear StudioINDEPENDENT SOFTWARE
6 PRODUCTS中文Blog
Back to blog

Build a Telegram FAQ bot that returns approved answers

Design a Telegram FAQ bot around approved answers, reviewed question variants, ambiguity choices, and honest fallbacks. Includes a build brief and acceptance checks without runtime AI.

A bot answering opening hours, service links, or event rules may not need a language model on every request. A useful first version can recognize a reviewed question, return its approved answer, and offer a choice or an honest fallback when the match is uncertain.

A public Telegram FAQ Chatbot via n8n project asks for this kind of task: return answers from a supplied Q&A list, admit when no match exists, and deliver an n8n workflow. Its original-page search index exposed the requirements on November 22, 2026, but direct access failed. The exact publication date and current project status could not be confirmed. This is a demand reference, not a current bidding recommendation or a claim of completed client work.

The following is an original design proposal for a small public FAQ. It is not a solution accepted by that buyer. Its purpose is to return approved answers consistently, rather than provide open-ended document Q&A or an autonomous AI agent.

Choose questions that have a fixed public answer

Start with information that does not depend on the person asking, an order's status, or an exception requiring judgment. Examples include a store address, a service application link, or event registration instructions. Assign someone to approve each answer.

“Can my order be refunded?” and “Where is your refund policy?” are different requests. The first requires case details and eligibility checks. The second can return an official information link. Sharing the word “refund” is not enough to justify the same affirmative response.

If the task requires searching arbitrary documents, combining sections, assessing individual cases, or acting in another system, evaluate knowledge-base support or a custom integration separately. Adding ever more guesses to a fixed answer table does not preserve its original promise.

Give each answer an identity and reviewed question variants

Begin with a small, reviewed Q&A dataset. CSV and JSON can be handover formats; that does not establish that a particular builder has a file importer. Each record should include:

  • A stable ID, such as hours-saturday, that survives wording changes.
  • A user-facing standard question, approved answer, and answer language.
  • Explicitly reviewed alternative questions mapped to the same ID.
  • Its applicable scope, such as a particular store or event.
  • An enabled status, last confirmation date, and content version.

For a fictional store, hours-saturday might accept “Are you open on Saturday?” and “What are your Saturday hours?”, returning “Saturday, 10:00–18:00.” Sunday belongs to a different record. Replacing every reference to the weekend with Saturday would create a wrong answer. These hours are illustrative only.

Chinese and English records can share a business ID while keeping separately reviewed questions and answers. Translating an incoming question at runtime is not a substitute for approving the resulting mapping.

Separate an approved match, a suggested question, and no match

For a small FAQ, start with standard questions and reviewed variants before adding more elaborate search. Agreed rules for trimming whitespace or handling English capitalization can remove superficial differences. Do not casually remove negation, numbers, dates, or product names.

Define three outcomes:

  1. One approved question mapping: return the currently enabled answer for that ID, without adding explanations, promises, or conditions.
  2. Only similar candidates, or conflicting IDs: offer a short list of standard questions for the user to choose. Do not answer with the first search result. If there is no useful candidate, use the no-match response.
  3. No eligible candidate: say the question is not covered and offer FAQ categories or an explicitly configured contact route. Do not claim that a human has taken over unless a handoff actually exists.

If the same normalized question maps to different answers, block that dataset from publication instead of taking the first row. Very short requests such as “refund” or “cancellation” usually need a category choice. A request containing two independent questions can be asked again as separate questions.

A search rank is not a probability of being right

Fuzzy search can suggest questions, but the closest question may still be the wrong one. A single changed date, plan name, or negative can reverse the required answer.

For example, the SQLite FTS5 documentation describes bm25() as a full-text ranking function, with better matches receiving numerically lower scores. That is a ranking mechanism, not evidence that an answer is “90% certain.” The distinction is a design inference; the documentation does not set your business's automatic-answer threshold.

Keywords, substring searches, and approved paraphrases are also different mechanisms. A first version can omit FTS5 entirely and rely on reviewed mappings and category choices. BotFatherV2's ability to generate SQLite structures does not establish that its runtime enables the FTS5 extension, arbitrary search libraries, or a model service.

Test the version actually serving users

After editing the dataset, check real answers rather than just the file. Validate a coherent set of questions and answers with test data before publishing it. If an update fails, keep an identifiable previous version rather than serving a partially replaced dataset.

Disabling an answer must also affect its variants and previously offered choices. Selecting yesterday's suggested question should check whether the answer is still enabled. Updating the table does not automatically remove historical answers already sent in Telegram.

An outcome, answer ID, content version, and no-match reason can be more useful for diagnosis than retaining every original question indefinitely. If unmatched questions will help expand the dataset, define their retention scope and period and require an administrator to review them. Ordinary chat messages must not become approved answers automatically.

A first-version brief for an AI builder or developer

This is an editable requirements example, not an implemented bot:

Build a private-chat bot for a public FAQ using reviewed Q&A records. Start with standard questions and approved variants; do not call a language model at runtime. Store an ID, language, scope, enabled status, and content version for each record. A unique approved mapping returns the current stored answer verbatim. Similar but unapproved questions only produce standard-question choices; no match produces an explicit fallback. Block publication when one matching question maps to different answers. Do not strip negatives or numbers to force a match, answer individual order cases, or claim a human handoff. Only designated administrators can update answers. Validate the required inputs, choices, and storage with a small dataset before expanding it.

Choose a delivery route by the required artifact. If the bot must run inside an existing n8n instance, commission and test an n8n workflow. If the goal is a small Telegram menu and Q&A tool, you can first request a prototype through BotFatherV2, inspect its validation report, and test the generated version in Telegram.

At this check, BotFatherV2 supports creating and modifying Telegram Serverless bots through AI conversation. This complete FAQ design is not an advertised ready-made template. Dataset maintenance, mapping conflicts, particular buttons, and matching logic need verification in the generated version. An n8n workflow cannot be imported directly; arbitrary npm packages and Node/Bun APIs must not be assumed available. The initial release does not add bot runtime features that depend on paid AI. AI-assisted development and runtime model calls are separate capabilities. BotFatherV2 is an independent product, unaffiliated with Telegram's official BotFather.

Acceptance checks should include wrong questions

Record the input, expected answer ID or fallback, actual output, and content version for each case:

  • Every standard question and approved variant returns the same current answer.
  • Whitespace and capitalization differences follow the documented normalization rules.
  • Saturday changed to Sunday, allowed changed to not allowed, and 7 days changed to 30 days do not produce a wrong affirmative answer just because the wording is similar.
  • Unapproved near matches, conflicting mappings, out-of-scope questions, and compound questions trigger a choice or fallback.
  • Chinese and English requests use their separately reviewed mappings without mixing answer versions.
  • After an answer changes or is disabled, new questions and old choice messages use current eligible content or explain that it is unavailable.
  • Attempts by ordinary users to edit answers, and failures to read the dataset, neither modify approved records nor trigger a model-generated substitute.

These checks make the deliverable more concrete than “the bot replies.” They establish why an answer was selected, when the user must clarify, and what happens outside the dataset.

Sources and verification

  • Freelancer, Telegram FAQ Chatbot via n8n, English buyer requirements, project 40828389. Checked through the original detail page's search index on November 22, 2026; direct page access failed. Exact publication date, current status, and HTML canonical were not confirmed. Bidder proposals were not treated as buyer requirements.
  • SQLite project, FTS5 Extension, primary English technical documentation, particularly the bm25() ranking explanation. No single publication date; consulted November 22, 2026. It does not establish which extensions Telegram Serverless supports.
  • BotFatherV2, AI development documentation and public product page, checked November 22, 2026. Data fields, the build brief, and acceptance scenarios above are original recommendations, not a list of built-in product features.
BITBEAR / TELEGRAM-FAQ-BOT-APPROVED-ANSWER-MATCHINGNovember 22, 2026