Calls, new chats, labels and counts

Calls, chats that started this week, labels, archived chats and counts, each one a single command.

Calls I missed

nj wp calls --missed
Terminal
Nov 18 00:50  missed incoming call · Tom Harris
Nov 17 23:20  missed incoming call · Sarah Cohen
2 calls

The samples were made in the Asia/Bangkok time zone at one moment. Your dates, times and ages follow your Mac and the moment you run the command.

Someone who called and never wrote to you has no chat, so nj wp find and nj wp read do not find them. Their number is in the who_ids column of nj wp calls --missed --table (see the calls reference).

Every call, answered or not, with how long it lasted:

nj wp calls
Terminal
Nov 18 00:50  missed incoming call · Tom Harris
Nov 17 23:20  missed incoming call · Sarah Cohen
Nov 17 00:25  outgoing call, 5m 12s · Dana Levi
Nov 15 01:25  incoming video call, 12m 34s · Emily Turner
4 calls

Calls have no number on the left: each line starts with the date and time of the call, then the kind of call, how long it lasted, and the name.

What Namjai sees. Namjai reads only what WhatsApp has copied to this Mac. Just after you link the Mac to your phone, older chats can be missing, so counts can be incomplete and an old customer can show as new. Before you ask, open WhatsApp on the Mac and let it finish syncing. nj wp doctor shows how old the newest message on this Mac is.

Chats that started this week

One-to-one chats whose first message on this Mac is from the last 7 days, whoever wrote first. This is not nj wp new, which lists chats with unread messages. Namjai sees only what WhatsApp has copied to this Mac, so just after you link the Mac to your phone, an old customer can show as new (see What Namjai sees).

nj wp new-customers
Terminal
     18m  Laura Kim · first message Nov 18 · 1 message
  5h 20m  ⁨יעל אברהם⁩‎ · first message Nov 17 · 1 message
      1d  Sarah Cohen · first message Nov 17 · 3 messages
      2d  Emily Turner · first message Nov 15 · 4 messages
      4d  Michael Brooks · first message Nov 14 · 2 messages
      5d  ⁨אורי מזרחי⁩‎ · first message Nov 13 · 2 messages
      6d  Dana Levi · first message Nov 12 · 6 messages
7 chats started in the last 7d. For longer: nj wp new-customers --within 30d

The number on the left here is different: time since the first message in that chat on this Mac. Then the date of that first message and how many messages the chat has.

Labels

Labels exist only in WhatsApp Business. Namjai was tested with the ordinary WhatsApp app for Mac, where the label lists are empty; it has not been tested with the WhatsApp Business app for Mac. The samples on this site come from a made-up travel business with two labels added, to show what the lists look like. List yours, then the chats under one:

nj wp labels
Terminal
Quote sent · 2 chats
VIP · 2 chats
nj wp labelled VIP
Terminal
     47m  Dana Levi · unread
          them: And can we get a late checkout?
  3h 10m  Sarah Cohen · unread
          them: Can you send the flight times for the 14th?
2 chats

The number on the left: time since the last message in that chat.

A label of two words works with or without quotes. Type the whole label name; capitals do not matter, but part of a label (quote alone) finds 0 chats.

nj wp labelled Quote sent
Terminal
      2d  Michael Brooks
          you: Sent you the quote for 4 people, 7 nights. Valid until Friday
      2d  ⁨אורי מזרחי⁩‎
          you: ⁨שלחתי לך שתי אפשרויות, מה דעתך?⁩‎
2 chats

With ordinary WhatsApp, nj wp labels says This WhatsApp has no labels. Labels are a WhatsApp Business feature.

Archived chats that are still active

Chats you archived where someone wrote in the last 7 days, so they do not get lost.

nj wp archived
Terminal
      1d  James Carter · unread · archived
          them: Hi again, we want to book the same hotel for Easter
1 chat archived and still active in the last 7d. For longer: nj wp archived --within 30d

The number on the left: time since the last message in that chat.

How many messages of each type

nj wp count
Terminal
       1  audio
       1  document
       1  picture
      21  text

For one chat:

nj wp count --chat dana
Terminal
       1  document
       5  text

Forgot a command? nj wp on its own lists them all.