Actions32
- Mensagem Actions
- Contato Actions
- Ticket Actions
- Setor Actions
- Tag Actions
- WhatsApp Actions
- Sessão WhatsApp Actions
Overview
This node interacts with the Press Ticket® API to manage WhatsApp connections and other related resources. Specifically, for the WhatsApp resource and the Desligar (shutdown) operation, it allows users to shut down a specific WhatsApp connection by its ID.
Common scenarios where this node is beneficial include:
- Managing multiple WhatsApp connections programmatically.
- Automating the shutdown of WhatsApp connections as part of maintenance or workflow control.
- Integrating WhatsApp connection management into broader customer support or communication automation systems.
Practical example:
- A user wants to remotely disable a WhatsApp connection when it is no longer needed or before performing system updates. By providing the WhatsApp connection ID, the node sends a shutdown command to the Press Ticket® API to turn off that connection.
Properties
| Name | Meaning |
|---|---|
| ID do WhatsApp | The unique identifier of the WhatsApp connection to be shut down. |
Output
The output is a JSON array containing the response from the Press Ticket® API after attempting to shut down the specified WhatsApp connection. The structure typically includes success status and any relevant data or error messages returned by the API.
Example output JSON structure:
[
{
"success": true,
"message": "WhatsApp connection shutdown initiated",
"whatsappId": "123"
}
]
If an error occurs, the output will contain an error message describing the issue.
Dependencies
- Requires an API key credential for authenticating with the Press Ticket® API.
- The node uses the Press Ticket® API base URL and token configured in the credentials.
- Network access to the Press Ticket® API endpoints is necessary.
Troubleshooting
- Invalid WhatsApp ID: If the provided WhatsApp ID does not exist or is incorrect, the API may return an error. Verify the ID before running the node.
- Authentication errors: Ensure the API token credential is valid and has sufficient permissions.
- Network issues: Connectivity problems to the Press Ticket® API endpoint can cause failures.
- API rate limits or downtime: Temporary unavailability of the Press Ticket® API might result in errors; retry later if needed.
Common error messages:
"Falha ao processar resposta"indicates a failure parsing the API response, possibly due to unexpected data format.- Errors related to missing or invalid parameters usually indicate required fields were not set correctly.
Links and References
- Press Ticket® Official Website
- Press Ticket® API Documentation (if publicly available)