Feishu Merged Message Fetcher for Openclaw

A specialized utility to programmatically retrieve and parse sub-messages within Feishu's merged and forwarded message format.

deadblue22
v1.0.0
Mar 4, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install feishu-merged-msg

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install feishu-merged-msg using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Feishu Merged Message Fetcher?

The Feishu Merged Message Fetcher is a critical utility for agents operating in the Feishu/Lark ecosystem. Standard API responses for merged messages often return a generic "Merged and Forwarded Message" placeholder without exposing the underlying content. This Openclaw Skills extension addresses this limitation by interfacing with the Feishu REST API to fetch the full message hierarchy.

By retrieving the individual sub-messages nested within a forwarded thread, the skill allows AI agents to maintain full context, identify individual contributors, and process complex historical conversations. This is essential for workflows that involve summarizing long discussions or acting on requests contained within shared message blocks.

Feishu Merged Message Fetcher Use Cases

  • The inbound message body displays only "Merged and Forwarded Message" text.
  • The system identifies a msg_type of merge_forward requiring deep inspection.
  • Users ask for a summary or analysis of a forwarded conversation thread they have shared.
  • An agent needs to extract specific data points or action items from a multi-message archive.

How Feishu Merged Message Fetcher Works

  1. Extract the message_id of the parent merged message from the current message context or metadata.
  2. Locate the necessary Feishu API credentials (appId and appSecret) from the local OpenClaw configuration.
  3. Execute the fetch script to query the Feishu GET /open-apis/im/v1/messages/{message_id} endpoint.
  4. Receive the JSON response containing the parent message and an array of all sub-messages.
  5. Map internal placeholders such as mentions and sender IDs to human-readable names.
  6. Process the chronological list of sub-messages to generate a summary or response for the user.

Feishu Merged Message Fetcher Setup

Ensure your environment is configured with the correct Feishu App credentials and permissions. The Feishu App requires the im:message:readonly scope.

To verify or extract credentials from your configuration, you can use:

python3 -c "import json; d=json.load(open('/root/.openclaw/openclaw.json')); c=d['channels']['feishu']; print(c.get('appId',''), c.get('appSecret',''))"

Run the fetch script manually if needed:

bash <skill_dir>/scripts/fetch_merged_msg.sh <message_id> <app_id> <app_secret>

Feishu Merged Message Fetcher Data Schema & Taxonomy

The skill processes the hierarchical JSON response from the Feishu API. The data is structured as follows:

Attribute Description
data.items[0] Represents the parent container (the merge_forward message).
data.items[1:] Chronological list of all sub-messages contained in the merge.
body.content The raw text or post content of the specific sub-message.
mentions[] Metadata mapping user IDs (e.g., @_user_1) to real-world names.
sender.id Identification of the original sender for each nested message.

Feishu Merged Message Fetcher Advanced Features

  • Multi-agent compatibility for collaborative thread analysis.
  • Automated mention resolution to ensure accurate attribution within Openclaw Skills summaries.
  • Support for extracting message IDs from replied-to metadata as well as direct context.
  • Contextual awareness for sub-messages originating from different chat environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*