Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
This node validates and normalizes phone numbers, optionally restricting validation to a specific country. It is useful in scenarios where you need to ensure that phone numbers are correctly formatted and valid before using them in communications, marketing campaigns, or data processing workflows. For example, it can be used to clean up user-submitted phone numbers or verify contact lists for SMS or WhatsApp messaging.
Properties
| Name | Meaning |
|---|---|
| Country | The country code to restrict phone number validation. Options include all countries plus "Any country" (no restriction). |
| Phone Numbers | A list of phone numbers to validate and normalize. Each entry requires a phone number string. |
Output
The node outputs an array of JSON objects, each corresponding to the validation result of one input phone number. Each output item contains the normalized and validated phone number information. If binary data were involved, it would represent related files or media, but this node focuses on JSON data only.
Dependencies
- Requires an API key credential for authentication with the SparkBot WhatsApp API service.
- The node depends on internal action methods for "other" resource operations, specifically the phone number validation logic.
- No additional environment variables are explicitly required beyond the API key credential.
Troubleshooting
- Invalid phone number format: If a phone number is not valid or incorrectly formatted, the node may return an error or mark the number as invalid. Ensure phone numbers are entered correctly and match the expected format.
- Country code mismatch: Specifying a country code restricts validation to that country. If phone numbers do not belong to the selected country, they may fail validation.
- API authentication errors: Missing or incorrect API key credentials will cause authentication failures. Verify that the API key is set up correctly in n8n credentials.
- Empty input: Providing no phone numbers will result in no output. Make sure to add at least one phone number to validate.
Links and References
- SparkBot WhatsApp API Documentation (hypothetical link)
- E.164 Phone Number Formatting Standard
- libphonenumber - Google's phone number library (commonly used for phone validation)
If you want me to analyze other resources or operations, please provide their names.