Bot that answers from your documents
A Telegram bot that answers questions from your own documents and FAQ, for customers or for your team.
This template is in the works
There is no ready-made template yet. BitHut already runs projects like this one: tell your AI what it should do, and it writes the program and puts it online. When the template is ready, this page will say so.
Choose AI Claude CodeCodexGoogle AntigravityCursorVS CodeAnother AI
Claude Code can add BitHut by itself. Paste this into it:
Add the BitHut MCP server for me: run “claude mcp add --transport http bithut https://api.bithut.app/mcp”.
Then restart Claude Code, type /mcp, pick bithut and sign in: sign in to BitHut in your browser and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the command yourself
Run this command in a terminal.
claude mcp add --transport http bithut https://api.bithut.app/mcp
Start Claude Code, type /mcp, pick bithut and sign in. Sign in to BitHut in your browser and press Allow.
Already added BitHut in Claude, and you sign in to Claude Code with the same Claude account? Then BitHut is already in Claude Code.
Codex can connect BitHut by itself. Paste this into it:
Connect the BitHut MCP server for me: run “codex mcp add bithut --url https://api.bithut.app/mcp”, then “codex mcp login bithut”. The address must be exactly https://api.bithut.app/mcp: if a backslash got into it when pasting, remove it before adding.
A page opens in your browser: sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the commands yourself
Run these two commands.
codex mcp add bithut --url https://api.bithut.app/mcp codex mcp login bithut
The second one opens a page in your browser. Sign in to BitHut and press Allow.
Antigravity can add BitHut by itself. Paste this into its agent:
Add the BitHut MCP server for me: in ~/.gemini/config/mcp_config.json, under “mcpServers”, add "bithut": {"serverUrl": "https://api.bithut.app/mcp"}.
When Antigravity asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In the Antigravity editor, click … at the top of the agent panel, then MCP Servers, Manage MCP Servers, View raw config.
Under “mcpServers”, add this line and save the file.
"bithut": {"serverUrl": "https://api.bithut.app/mcp"}
When Antigravity asks, sign in to BitHut and press Allow.
Cursor can add BitHut by itself. Paste this into its chat:
Add the BitHut MCP server to Cursor for me: in ~/.cursor/mcp.json, under “mcpServers”, add "bithut": {"url": "https://api.bithut.app/mcp"}.
Then open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In ~/.cursor/mcp.json, under “mcpServers”, add this line and save the file.
"bithut": {"url": "https://api.bithut.app/mcp"}
Open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Open the Command Palette (Ctrl+Shift+P, on a Mac ⇧⌘P) and run “MCP: Add Server”.
Choose HTTP, paste this address and name the server bithut.
https://api.bithut.app/mcp
When VS Code asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Find where your AI app adds MCP servers. It may be called MCP servers, connectors or tools.
Add a remote (HTTP) server with this address.
https://api.bithut.app/mcp
If it asks how to sign in, choose OAuth. Sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Can’t find the setting? Ask your AI: “How do I add a remote MCP server here?”
Copy the prompt into it: Put a Telegram bot on BitHut using the docs-answer-bot template. It should answer questions from my documents and FAQ. Ask me for the documents. I'll paste the bot token and my AI service key on the BitHut page you give me, not here.
What you get
A bot in Telegram that replies in plain words, based only on the documents you gave it, and says so when the answer isn't there.
Do you deliver on Saturdays?
- Answer
- Yes, from 10:00 to 14:00 in the city center.
- Source
- “Delivery FAQ”, section 3
answers only from your documents
Who it's for
Small businesses and team leads who answer the same questions again and again: prices, opening hours, how a process works, where a file is.
What you'll need
- A Telegram bot token from @BotFather.
- Your own key for an AI service, such as OpenAI or Anthropic. Its use is billed by that service, not by BitHut.
- The documents and FAQ to answer from: text, PDF or Word files, or links to Google Docs.
- Who the bot is for: anyone who writes to it, or only your team.
What's included
-
Runs all the time
Starts again on its own if it stops.
-
A safe place for both keys
The bot token and the AI service key are kept apart from the code.
-
Your documents on the project's disk
Kept with daily backups, and updated when you send new ones.
-
Questions it couldn't answer
Listed in the logs, so you know what to add to the FAQ.
Your data and privacy
Your documents stay on the project's disk. To write an answer, the bot sends the question and the matching parts of your documents to the AI service whose key you gave, under that service's terms. Nothing is shared with other BitHut projects.
Limits
- The answers are written by an AI model and can be wrong. For prices, contracts or medical and legal matters, have it point people to a person.
- The AI service charges for its use by its own rules. A busy bot costs more there; BitHut's price stays the same.
- Large document sets take more disk space and start more slowly. Scanned PDFs without text need to be converted first.
- Answers in Telegram only. A chat on your website is a change your AI can make.
After you start it
- Your AI loads your documents, starts the bot and asks it a few test questions.
- Write to your bot in Telegram and try the questions people really ask.
- When a document changes, send the new version to your AI. The bot answers from it right away.
Questions
Will it make things up?
It is told to answer only from your documents and to say “I don't know” otherwise. AI models still make mistakes sometimes, so test it with real questions before you share it.
Why do I need my own AI service key?
The bot uses an AI model to read your documents and write answers. With your own key you choose the service and see what it costs you. BitHut doesn't resell AI.
Can only my staff use it?
Yes. Your AI can limit the bot to certain Telegram users or to one group chat.