跳到正文
TakoAPI
返回技能列表

message-parser

由 vishalgojha 提供

Search & Research
308下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Parse raw WhatsApp exports (TXT or JSON) into normalized message objects with `timestamp`, `sender`, and `content`.

描述

该技能的功能

Parses raw WhatsApp chat exports in TXT or JSON format into a normalized array of message objects, each with a timestamp, sender, and content field. Handles multiline continuation lines, timestamp collisions, and system boilerplate like group creation notices or encryption messages.

It handles WhatsApp-specific format quirks like DD/MM/YYYY timestamps, multiline continuations, and system event lines that generic parsers mishandle or drop.

何时使用

  • Converting a WhatsApp group export TXT into structured JSON
  • Preprocessing chat dumps before running lead extraction
  • Cleaning multiline messages into single normalized records
  • Auditing raw chat history with preserved message ordering
  • Feeding parsed messages into downstream analysis or scoring pipelines

示例工作流

输入

User asks: Parse this WhatsApp group export and return structured message objects

智能体
  1. 1

    Accepts the raw WhatsApp TXT or JSON export as input

  2. 2

    Detects the source format and identifies timestamp, sender, and content boundaries

  3. 3

    Normalizes each message into an RFC 3339 timestamp, a non-empty sender string, and a content string

  4. 4

    Merges multiline continuation lines into their preceding message record

  5. 5

    Validates the output array against the parsed-message-array schema and returns it

输出

A JSON array of message objects, each containing timestamp (RFC 3339), sender, and content fields

安装

clawhub install vishalgojha/message-parser

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接