feat: Add Feishu interactive card delivery - #23
Open
yaosiyuuu6 wants to merge 2 commits into
Open
Conversation
yaosiyuuu6
marked this pull request as ready for review
April 3, 2026 09:00
yaosiyuuu6
marked this pull request as draft
April 3, 2026 09:08
yaosiyuuu6
force-pushed
the
codex/feishu-interactive-cards
branch
from
April 3, 2026 09:15
dcbcf77 to
9d37f87
Compare
yaosiyuuu6
marked this pull request as ready for review
April 3, 2026 09:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
This PR adds a Feishu-friendly reading path for Follow Builders digests by supporting interactive card delivery in addition to the existing plain text / Telegram / email flow.
Why
For Feishu users, plain text and markdown-post delivery collapse spacing too aggressively. That makes digest sections and builder blocks harder to scan on mobile. Interactive cards preserve hierarchy better:
Implementation
scripts/format-chat-digest.jsto normalize digest text into a stable chat-friendly structurescripts/render-feishu-card.jsto convert the final digest text into Feishu interactive card JSONstdoutdelivery can optionally route through direct Feishu card sending when the config includes:delivery.channel = "feishu"delivery.target = "<open_id or chat_id>"delivery.format = "interactive_card"config/config-schema.jsonwith the Feishu card delivery fieldsUser impact
OpenClaw + Feishu users can choose a card-based morning digest that is easier to read on mobile. Existing users who stay on plain text / Telegram / email are unaffected.
Validation
node scripts/format-chat-digest.js --file examples/sample-digest.md | node scripts/render-feishu-card.js