BASMA Contact
AI-generatedSummary
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.
phonecontains digits fromremoteJidbefore any@suffix.isGroupis true whenremoteJidcontains@g.us.countryGuessisEGfor numbers starting with20,SAfor numbers starting with966, orunknownotherwise. Other input fields are not included.