I normally have to run a proxy to use Muse, which is a pain at work. OpenClaw was really popular a while back and I messed around with wiring that into Feishu too, but it burned through tokens like crazy and needed a pile of third-party APIs and services set up. Played with it for a while and then dropped it.
Been using Muse for a week and it's actually pretty good. Right now I use it to pull news and stock movement alerts, and occasionally to generate videos (video quality feels hit-or-miss — if anyone here has dug into that, I'd love to hear your tips).
Another thing about Muse: it's generous with tokens, you can rack up a decent amount by referring new users, and for moderate use that's basically enough. Video generation, image generation and search are all built in, no extra setup needed. So I got the idea of hooking Muse up to Feishu, and built this project:
What it can do:
- DM the bot in Feishu or @ it in a group, and Muse replies
- Send and receive images, files, videos; PDFs get parsed directly — I tried one around 8MB and it was fine
- Muse can send voice messages, and they play right in Feishu
- Create docs, create tasks and reminders, read/write Bitable, manage group announcements, forward messages — as long as you grant enough permissions in Feishu, Muse can basically do anything Feishu can
Limitations first
- It's not instant. Muse doesn't expose an API for pushing messages in from outside, so messages queue up and wait for a hook to wake things up — usually a reply within a minute
- No phone calls, no real-time voice calls
- Incoming voice messages can't be transcribed yet (though Feishu has a manual voice-to-text feature)
How it works:
飞书客户端
→ 飞书云端
→ gateway.py(长连接收消息)
→ messages.db(SQLite 队列:去重、丢弃 5 分钟前的旧消息、同一个群按顺序处理)
→ hook feishu-new-message(每 5 秒查一次队列,有新消息才唤醒 worker)
→ Muse worker:读消息、写回复
→ queue_api.py → gateway.py 发回飞书
There's also a watchdog hook that checks the service and the long connection every 60 seconds. If the service dies, it restarts it itself, and only wakes Muse to deal with it if the restart fails. When the gateway restarts, it also backfills the last 60 minutes of DMs that came in while it was down.
Setup: two steps.
Step one: you need a Feishu custom app under your own enterprise — if you're an individual, just create your own Feishu team.
Step two: send this project to Muse and have it install and run it. The full steps are in the README, and feel free to open an issue if you hit problems.
Open source repo
平时用Muse都要开代理,上班的时候不太方便。之前 OpenClaw 很火,还折腾过把它接进飞书里面,非常费token,还要配一堆第三方接口和服务,玩了一段时间后来就没再玩了。
用了一周muse发现还挺好用,目前用来抓新闻还有股票异动消息推送,偶尔也用来生成视频(感觉生成视频的效果有时候还可以有时候不太行,如果有佬对这方面有研究期望分享一下心得),
用muse还有一个点token多拉新能拿到不少 token,中度使用基本够用,还支持视频生成、图片生成、搜索它都自带,不用额外配置。所以我想到把 Muse 接到了飞书上,做了这个项目:
能做什么:
- 在飞书里私聊机器人,或者在群里 @ 它,由 Muse 回复
- 收发图片、文件、视频;PDF 能直接识别内容,我试过 8MB 左右的没问题
- Muse 可以发语音消息,飞书里能直接播放
- 建文档、建任务和提醒、读写多维表格、管理群公告、转发消息都能做(在飞书里权限给够,飞书的功能muse基本都能做)
先说限制
- 不是秒回。Muse 没有给外部推送消息的接口,只能排队等 hook 唤醒,一般 1 分钟内回复
- 不能打电话,也不能实时语音通话
- 收到的语音消息还不能转文字(但是飞书有手动语音转文字的功能)
怎么实现的:
飞书客户端
→ 飞书云端
→ gateway.py(长连接收消息)
→ messages.db(SQLite 队列:去重、丢弃 5 分钟前的旧消息、同一个群按顺序处理)
→ hook feishu-new-message(每 5 秒查一次队列,有新消息才唤醒 worker)
→ Muse worker:读消息、写回复
→ queue_api.py → gateway.py 发回飞书
另外还有一个看门狗 hook,每 60 秒检查一次服务和长连接。服务挂了它会自己重启,重启不了才叫醒 Muse 来处理。网关重启时,还会把断线期间最近 60 分钟的私聊消息补回来。
如何搭建:
分两步,
第一步:需要一个飞书企业自建应用,个人自己建个飞书团队就行。
第二部:将当前项目发送给muse进行安装和运行。详细步骤 README 里都写了,有问题欢迎提 issue。
开源仓库
Translated by AI from 简体中文Original (简体中文)

可以共享、可以push的免费邮箱,更可使用自定义域名,完美契合您的各项需求。
16 replies
Sort order