Datacrazy Automações icon

Datacrazy Automações

Utilitários de automação para fluxos com o Datacrazy CRM

Actions22

⚡ Formatar Número de WhatsApp → Formatar Número

AI-generated

Summary

Format a WhatsApp phone number string to a standardized form, optionally adding a default country code if missing and removing the ninth digit from Brazilian mobile numbers.

Inputs

  • Número de Telefone (required) — The phone number to be formatted; accepts any input format, e.g., (11) 99999-9999 or 5511999999999.
  • DDI Padrão — The default country calling code to prepend if the phone number lacks one, e.g., '55' for Brazil.
  • Remover 9º Dígito (Brasil) — Boolean flag to remove the ninth digit from Brazilian mobile numbers, useful for providers that do not accept it.

Output shape

a single string representing the formatted WhatsApp phone number

The output is a standardized phone number string; if the input lacks a country code, the specified default is prefixed; for Brazilian numbers, the ninth digit can be optionally removed.

Links

Discussion