この記事の日本語版はまだ公開されていないため、英語版を掲載しています。

Why LangBot?
LangBot is an open-source, production-grade IM bot platform. Unlike simple scripts or single-platform bots, LangBot gives you:- Unified Platform: Connect once, deploy to WeChat, Discord, Telegram, Slack, Lark, and more.
- Model Agnostic: Use DeepSeek R1, V3, Claude 3.5, GPT-4, or local Ollama models.
- No Coding: robust WebUI for configuration.
- Enterprise Features: Knowledge base (RAG), Plugin system, and multi-user management.
Prerequisites
- A Server or PC: Docker installed (VPS, local computer, or Synology/NAS).
- DeepSeek API Key:
- Official: platform.deepseek.com
- SiliconFlow (Recommended for speed): cloud.siliconflow.cn (Faster R1 inference).
Step 1: Deploy LangBot
If you haven’t deployed LangBot yet, run this one command:http://localhost:5300 (or your server IP).
Step 2: Configure DeepSeek Model
- Go to Models -> Provider List.
- Find DeepSeek (or SiliconFlow / OpenAI Compatible).
- Enter your API Key.
- Click Save.
- Name:
DeepSeek-R1-Bot - Model:
deepseek-reasoner(for R1) ordeepseek-chat(for V3).
Step 3: Create a Chat Pipeline
LangBot uses “Pipelines” to manage bot logic.- Go to Pipelines -> New Pipeline.
- Choose Chat Pipeline.
- Select your
DeepSeek-R1-Botmodel. - (Optional) Add a System Prompt:
“You are a helpful assistant powered by DeepSeek R1. You think deeply before answering.”
Step 4: Connect to WeChat (or any platform)
For WeChat (Personal / Wechaty)
Note: Personal WeChat access relies on third-party libraries and carries some risk. For business use, we recommend Enterprise WeChat (WeCom).- Go to Bots -> New Bot.
- Select WeChat.
- Choose the GeweChat or Wechaty adapter (depending on your preference).
- Click Save.
- Scan the QR code that appears in the logs or UI.
For Discord / Telegram
- Select Discord or Telegram.
- Paste your Bot Token (from Discord Developer Portal or BotFather).
- Click Save.
Step 5: Test It Out!
Open your chat app and send a message. You should see DeepSeek R1 “thinking” (if supported) and replying with high-quality reasoning.Advanced: Using Search & Tools
DeepSeek is great, but DeepSeek with Internet Access is better. In LangBot:- Go to Plugins.
- Install Tavily Search or Google Search.
- Add the plugin to your DeepSeek Pipeline.
Ready to build? Star us on GitHub or Read the Docs.
