تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

message-parser

بواسطة vishalgojha

Search & Research
308التنزيلات وفق ما يذكره clawskills.sh
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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط