Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files 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
Overview
The "Start session" operation under the "WhatsApp session" resource in this node initiates a WhatsApp session for a specified WhatsApp number (device). This is useful when you want to programmatically start or activate a WhatsApp session linked to a particular phone number managed by the Wassenger API. The node can optionally wait until the session becomes available, which might take up to 90 seconds.
Common scenarios:
- Automating the activation of WhatsApp sessions for multiple numbers.
- Ensuring a session is active before sending messages or performing other WhatsApp-related operations.
- Managing session lifecycle programmatically within workflows.
Practical example:
You have a workflow that sends marketing messages via WhatsApp. Before sending, you use this node to start the session for the target WhatsApp number and optionally wait until the session is ready, ensuring message delivery will succeed.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) for which the session should be started. |
| Wait For Session | Whether to wait for the device session to become available after starting it (true/false). |
- WhatsApp Number is selected from a list of available devices loaded dynamically.
- Wait For Session is a boolean flag; if true, the node delays its response until the session is confirmed active (up to about 90 seconds).
Output
The node outputs JSON data representing the result of the session start operation. This typically includes information about the session status or confirmation that the session has been started successfully.
- The output JSON structure depends on the underlying API response but generally contains session details such as session ID, status, and timestamps.
- No binary data output is involved in this operation.
Example output snippet (conceptual):
{
"sessionId": "abc123",
"status": "started",
"device": "whatsapp_number_id",
"timestamp": "2024-06-01T12:00:00Z"
}
Dependencies
- Requires an API key credential for authenticating with the Wassenger WhatsApp API.
- The node relies on the Wassenger service to manage WhatsApp sessions.
- The "WhatsApp Number" options are dynamically loaded from the connected Wassenger account's devices.
- No additional environment variables are explicitly required beyond the API key credential.
Troubleshooting
Common issues:
- Invalid or missing WhatsApp number ID: Ensure the selected device exists and is correctly loaded.
- Session start timeout: If "Wait For Session" is enabled, the node may delay up to 90 seconds; network issues or API delays could cause timeouts.
- Authentication errors: Verify the API key credential is valid and has sufficient permissions.
Error messages:
"error": "Invalid device ID"โ Check that the WhatsApp number ID is correct."error": "Session start failed"โ Could indicate API-side problems or invalid session state; retry or check API status.- Network or timeout errors โ Confirm connectivity and consider disabling "Wait For Session" if delays are problematic.
Links and References
- Wassenger API Documentation (for detailed API behavior)
- n8n Documentation (general guidance on using credentials and nodes)
This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.