Actions3
- Message Actions
- Phone Number Actions
Overview
This node checks if a specified phone number has a WhatsApp account using the 2Chat service. It is useful for verifying WhatsApp availability before sending messages or performing WhatsApp-related operations. For example, a user can input a phone number to confirm if it is registered on WhatsApp, ensuring that subsequent communication attempts are valid.
Use Case Examples
- Verify if a customer phone number is registered on WhatsApp before sending promotional messages.
- Check a contact's WhatsApp status to decide the communication channel.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number Name or ID | The phone number connected to 2Chat, selected from a list or specified by ID, used as the source number for checking. |
| Phone Number to Check | The phone number to verify for WhatsApp account presence, entered as a string. |
Output
JSON
phoneNumberChecked- The phone number that was checked for WhatsApp account presence.isWhatsAppRegistered- Boolean indicating if the phone number is registered on WhatsApp.responseDetails- Additional details or metadata returned from the 2Chat service about the check.
Dependencies
- 2Chat API key or authentication token required to access the 2Chat service.
Troubleshooting
- Ensure the 'WhatsApp Number Name or ID' is correctly selected or specified; an invalid or missing source number will cause errors.
- Verify the 'Phone Number to Check' is in the correct international format (e.g., +5215512345432) to avoid validation errors.
- Check that the 2Chat API credentials are valid and have sufficient permissions to perform the check operation.
- Common error messages may include authentication failures, invalid phone number format, or service unavailability. Resolving these involves verifying credentials, input formats, and network connectivity.
Links
- 2Chat API Documentation - Official documentation for the 2Chat API, including phone number verification endpoints.
- n8n Expressions - Guide on using expressions in n8n to dynamically specify input values.