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
The node provides an interface to interact with the "Campaigns" resource of the SparkBot WhatsApp API, specifically allowing users to update the status of a campaign. The main operation supported here is updating a campaign's status by either starting or stopping it.
This node is beneficial in scenarios where automated control over marketing or communication campaigns is needed within a WhatsApp environment. For example, a user can programmatically start a campaign when certain conditions are met (e.g., a new product launch) or stop it based on real-time feedback or scheduling requirements.
Practical examples:
- Automatically start a promotional campaign at a scheduled time.
- Stop a campaign immediately if a critical issue is detected.
- Integrate campaign control into larger workflows that manage customer engagement.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to be updated. |
| Action | The action to perform on the campaign. Options: "Start Campaign" or "Stop Campaign". |
Output
The node outputs JSON data representing the result of the campaign status update operation. This typically includes confirmation of the action performed and any relevant metadata returned by the SparkBot API about the campaign's new state.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authenticating with the SparkBot WhatsApp API.
- The node depends on the external SparkBot WhatsApp API service to perform campaign operations.
- Proper configuration of the API key credential in n8n is necessary for successful execution.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID: Ensure the Campaign ID provided exists and is correctly formatted.
- Authentication errors: Verify that the API key credential is valid and has the necessary permissions.
- Network or API downtime: Check connectivity and SparkBot API status.
Error messages:
"error": "Invalid Campaign ID"β Confirm the campaign ID is correct."error": "Unauthorized"β Recheck API key credentials and permissions."error": "Action not allowed"β Ensure the action ("start" or "stop") is valid for the current campaign state.
Resolving these usually involves verifying input parameters, credentials, and network connectivity.
Links and References
- SparkBot WhatsApp API documentation (refer to official docs for detailed campaign management endpoints)
- n8n documentation on creating and using API key credentials
- General best practices for managing WhatsApp campaigns via APIs