Skip to content

sparklkt/BotCom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BotCom — AI 一人公司操作系统

BotCom 是一键生成小红书/公众号/YouTube 内容(文案+图片+视频脚本)的 AI 内容生产系统。当前 MVP 阶段。

本地启动

# 1. 配置密钥
cp .env.example .env
# 编辑 .env,填入至少一个 DEEPSEEK_API_KEY

# 2. 启动服务
bash launch.sh
# 访问 http://127.0.0.1:9878

或者手动启动:

PYTHONPATH=. python3 -m botcom.feishu.server --port 9878

运行测试

# 语法检查
python3 -m compileall -q botcom

# 自动化测试 (不依赖真实 API key)
python3 -m unittest discover -s tests -p 'test_*.py'

# 启动脚本语法
bash -n launch.sh

当前能力边界

✅ 已实现

  • 文案生成: DeepSeek LLM 生产小红书/公众号/YouTube 文案(标题+正文+标签)
  • AI 图片生成: 豆包 Seedream / GPT-Image-2 / FLUX 多模型自动故障转移
  • 内容研究: LLM 驱动的赛道洞察
  • 飞书集成: 飞书 Bot 消息推送(可选)
  • Web Dashboard: 纯 HTML 单页控制台
  • CLI 工具: python3 -m botcom.cli.main generate 终端生成
  • OKR + 部门管理: 一人公司组织架构(灵感画布)

🚧 待接入

  • 视频生成: 当前只生成视频脚本/分镜文本,不生成视频文件。视频渲染(FFmpeg/智谱 CogVideo/可灵)待接入
  • 多平台一键发布: 小红书/公众号发布 API 待对接

❌ 未实现

  • 真实视频文件生成
  • 定时自动发布
  • 用户认证
  • HTTPS

项目结构

botcom/
├── content/          # 内容生产 pipeline (LLM文案)
│   ├── pipeline.py   # ContentPipeline — 总调度
│   └── writer.py     # ContentWriter + LLMEngine
├── image/            # 图片生产 pipeline (多模型)
│   ├── pipeline.py   # ImagePipeline — 故障转移
│   └── config.py     # 自动检测可用 provider
├── feishu/           # 飞书集成
│   ├── server.py     # HTTP Server (API + Dashboard)
│   └── bridge.py     # 飞书 Bot 消息
├── cli/main.py       # CLI 入口
├── core/             # 核心引擎
│   └── workspace.py  # 工作区管理
├── departments/      # 部门系统
├── okr/              # OKR 引擎
├── hooks/            # Hook 系统
├── memory/           # 记忆存储
dashboard/
└── index.html        # Web 控制台
tests/
└── test_p0_fixes.py  # P0 修复验证

密钥轮换

如曾将 .env 提交到 git 或泄露:

  1. 立即在 DeepSeek/ARK/OpenAI 控制台吊销旧 key
  2. 生成新 key 并更新 .env
  3. cp .env.example .env 并填入新 key

About

AI company operating-system workspace for local-first, human-in-the-loop product operations.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors