BASMA Contact icon

BASMA Contact

Extracts and cleans sender contact information

BASMA Contact

AI-generated

Summary

Extracts sender contact fields from each input item, cleans the sender ID into a phone number, and guesses Egypt or Saudi Arabia from its prefix.

Inputs

  • remoteJid — Sender ID; used to derive the digits-only phone number and determine whether the sender is a group. Defaults to an empty string if missing.
  • pushName — Sender display name. Defaults to an empty string if missing.

Output shape

One output item per input item, each with phone, remoteJid, pushName, isGroup, and countryGuess fields.

phone contains digits from remoteJid before any @ suffix. isGroup is true when remoteJid contains @g.us. countryGuess is EG for numbers starting with 20, SA for numbers starting with 966, or unknown otherwise. Other input fields are not included.

Links

Discussion