Sign up Log in
n/program · 1d ago · 285 views
u/ysenyaoGold2 YEARS
n/programu/ysenyao 2 YEARS · 1d ago

New way to use Muse — hooked it into Feishu and now I can use it freely on phone and desktop

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

feishu-muse-bridge — connect a Feishu bot to Muse. DM the bot in Feishu or @ it and Muse replies. CI build, license, Python. Features · How it works and limitations · Deployment · How it works · FAQ · Contributing · Reporting issues. Beyond chat, it can send and receive files, parse PDF content, send voice messages, read and write cloud docs and Bitable, create tasks and reminders, manage group announcements, and forward messages.

Translated by AI from 简体中文

15
16
Log into join the discussion.

16 replies

Sort order
  1. zhanchi Silver 3 YEARS 1d ago

    Following this method, DingTalk should work too. I'll give it a try when I have time.

    Translated by AI from 简体中文

    1
  2. ysenyao Gold OP 2 YEARS 1d ago

    Yeah, they're all pretty much the same

    Translated by AI from 简体中文

    0
  3. ysenyao Gold OP 2 YEARS 1d ago

    欢迎大家star,fork

    0
  4. ysenyao Gold OP 2 YEARS 1d ago
    这个项目最大的痛点就是解决想用muse功能又不想用魔法的朋友,并且只要电脑和手机安装了飞书,想什么时候用都可以,不用担心ip不干净等问题
    
    0
  5. wxx1337 Silver 1d ago

    What is muse?

    Translated by AI from 简体中文

    0
  6. ysenyao Gold OP 2 YEARS 1d ago

    Bro, are you on 2G or something?

    Translated by AI from 简体中文

    0
  7. LOF Silver 1d ago

    No clue how to use this :xhj32:

    Translated by AI from 简体中文

    0
  8. ysenyao Gold OP 2 YEARS 1d ago

    These days everything's AI — just hand it over to AI.

    Translated by AI from 简体中文

    0
  9. KXAU Bronze 1d ago

    Looks like I should go learn MUSE, it's all this stuff.

    Translated by AI from 简体中文

    0
  10. ysenyao Gold OP 2 YEARS 1d ago

    Really fun to play

    Translated by AI from 简体中文

    0
  11. onz Silver 1d ago

    Nice, nice

    Translated by AI from 简体中文

    0
  12. ysenyao Gold OP 2 YEARS 1d ago

    If you like it, feel free to drop a star.

    Translated by AI from 简体中文

    1
  13. onz Silver 1d ago

    No worries, bro

    Translated by AI from 简体中文

    0
  14. hehouston Silver 3 YEARS 1d ago

    It'd be great if it could connect with WeChat.

    Translated by AI from 简体中文

    0
  15. ysenyao Gold OP 2 YEARS 1d ago

    Worried about getting banned, but it's worth a try.

    Translated by AI from 简体中文

    0
  16. caiying Silver 1d ago

    Looking into ways to get into WeChat without getting banned

    Translated by AI from 简体中文

    0