agentleFS
InitechSoftwareInitechSoftware/openclaw-whatsapp-skills/skills/whatsapp-delivery-check/SKILL.md

whatsapp-delivery-check

Skill3 starsChanged 8 months agoMITView on GitHub

Given a TimelinesAI message_uid, poll GET /messages/{uid}/status_history and return the Sent / Delivered / Read timeline. Use after a send to confirm a message actually reached the recipient's device, or to answer "did X receive Y" questions from the user.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check whether a previously-sent WhatsApp message was actually delivered.

    line 14
  2. Distinctive:

    After a transactional send, confirm delivery before telling the user "message sent".

    line 18
  3. Distinctive:

    Does not poll continuously — call it once per user question.

    line 92
  4. Very specific:

    Does not interpret "missing Read status" as "unread" — many users disable read receipts, which means Read never arrives even if they've …

    line 93
  5. Very specific:

    Does not correlate across workspaces — UIDs are workspace-local.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

WhatsApp delivery check

Check whether a previously-sent WhatsApp message was actually delivered. TimelinesAI's POST /messages returns a message_uid that is a receipt, not a delivery confirmation — the real delivery status comes from GET /messages/{uid}/status_history.

When to use

  • After a transactional send, confirm delivery before telling the user "message sent".
  • Answer "did John actually receive the invoice I sent this morning?" from the human user.
  • Retroactively check whether an old message was read.
  • Aggregate delivery stats across many messages for response-time analytics.

Invocation payload

{
  "message_uid": "a8f9b2c1-..."
}

Implementation

curl -sS -H "Authorization: Bearer $TIMELINES_AI_API_KEY" \
  "https://app.timelines.ai/integrations/api/messages/$MESSAGE_UID/status_history"

Response shape

{
  "status": "ok",
  "data": [
    {"status": "Sent",      "timestamp": "2026-04-12 12:28:40 +0000"},
    {"status": "Delivered", "timestamp": "2026-04-12 12:28:41 +0000"},
    {"status": "Read",      "timestamp": "2026-04-12 12:31:15 +0000"}
  ]
}

The data array is in chronological order. Each entry is a state transition.

Interpretation

Latest statusWhat it means
SentTimelinesAI accepted the send and pushed it to WhatsApp. The recipient's device has NOT confirmed delivery yet.
DeliveredThe recipient's device has received the message. They haven't opened the chat yet.
ReadThe recipient opened the chat (with read receipts enabled on their end). They've seen it.

Typical timing on an active number: Sent → Delivered within ~1 second. Delivered → Read can take minutes or hours depending on when the recipient opens their phone. For customers with read receipts disabled, you'll never see Read — treat Delivered as the strongest signal you'll get.

Return value

Return the full status history as structured data so the caller can decide what to do:

{
  "message_uid": "a8f9b2c1-...",
  "latest_status": "Delivered",
  "latest_timestamp": "2026-04-12 12:28:41 +0000",
  "sent_at": "2026-04-12 12:28:40 +0000",
  "delivered_at": "2026-04-12 12:28:41 +0000",
  "read_at": null
}

For a natural-language answer to the human user:

"Yes — your invoice message to John was delivered at 12:28 UTC this morning, but he hasn't opened the chat yet (or has read receipts disabled)."

Failure modes

ResponseMeaningWhat to do
{"status":"error","message":"Message uid ... not found"}Typo in the uid, or the uid belongs to a different workspaceDon't retry; check the uid
{"status":"error","message":"Not authenticated"}Wrong tokenCheck $TIMELINES_AI_API_KEY
Empty data: [] arraySend was accepted but no state transition has landed yetWait a second and retry once

What this skill deliberately does NOT do

  • Does not poll continuously — call it once per user question. For real-time delivery tracking, poll on a timer from a different process.
  • Does not interpret "missing Read status" as "unread" — many users disable read receipts, which means Read never arrives even if they've seen the message. Only assert Read is positive evidence, not not Read as negative evidence.
  • Does not correlate across workspaces — UIDs are workspace-local. If sender and recipient are in different TimelinesAI workspaces, the message_uid the sender got is NOT the same UID the recipient's workspace assigned. See docs/state-persistence.md for cross-workspace correlation patterns.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.