{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "tencentcloud-octop-gateway--isolate-two-feishu-teams",
 "repo": "TencentCloud/octop-gateway",
 "repo_url": "https://github.com/TencentCloud/octop-gateway",
 "repo_slug": "tencentcloud-octop-gateway",
 "title": "Run two Feishu apps for two teams in one process",
 "page_title": "How to run two Feishu apps for two teams in one process with Octop Gateway",
 "summary": "Register two channels of the same kind with separate credentials and keep them isolated.",
 "who": "An operator supporting two internal teams that each need their own Feishu app and bot.",
 "problem": "Running two bots in separate processes doubles deployment work, and mixing them in one channel leaks context between teams.",
 "outcome": "One process with two Feishu channels, each isolated by its channel_id and tied to its own app credentials.",
 "steps": [
  "Run `pip install octop-gateway` in a Python 3.12+ environment.",
  "Create two FeishuConfig objects, one for each team's app_id and app_secret.",
  "Create one ChannelManager with a shared processor and call add_feishu_channel once for each config.",
  "Send a test message to each team's bot and check the replies come from the matching channel."
 ],
 "agent_prompt": "In the TencentCloud/octop-gateway repo, create one ChannelManager with two Feishu channels using credentials for <team A> and <team B> from environment variables. Expected output: two channels running side by side with distinct channel_id values. Verify that a message to team A's bot never appears on team B's channel.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README says channels are isolated by channel_id, but it does not describe how to set a custom channel_id, so check the generated ids in the startup logs.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.12+",
  "Credentials for each platform you connect, such as a Telegram bot token, Feishu app ID and secret, or a Discord bot token",
  "Access to the developer portal of each platform you use",
  "A processor function that reads InboundMessage and yields MessageEvent objects"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Each team's Feishu app secret must be stored separately so one team's credentials are not exposed to the other."
  }
 ],
 "best": false,
 "score": 0.6,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/tencentcloud-octop-gateway/isolate-two-feishu-teams/",
 "md": "https://dedupedai.com/use-cases/tencentcloud-octop-gateway/isolate-two-feishu-teams/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/tencentcloud-octop-gateway--isolate-two-feishu-teams.json",
 "api_version": "v1"
}
