Actions32
- Mensagem Actions
- Contato Actions
- Ticket Actions
- Setor Actions
- Tag Actions
- WhatsApp Actions
- Sessão WhatsApp Actions
Overview
This node integrates with the Press Ticket® API to manage various communication-related resources, including messages, contacts, tickets, queues, tags, WhatsApp connections, and WhatsApp sessions. Specifically, for the Mensagem (Message) resource with the Enviar Texto (Send Text) operation, it sends a text message via WhatsApp through the configured Press Ticket® service.
Typical use cases include automating customer support or marketing communications by sending WhatsApp text messages programmatically. For example, you can send order confirmations, appointment reminders, or notifications directly to customers' WhatsApp numbers using this node.
Properties
| Name | Meaning |
|---|---|
| Número do WhatsApp | The recipient's WhatsApp number in international format (e.g., 5511999999999). |
| ID do Usuário | The user ID of the sender within the Press Ticket® system. |
| ID do Setor | The queue or department ID associated with the message. |
| ID da Conexão WhatsApp | The ID of the WhatsApp connection used to send the message. |
| Texto da Mensagem | The actual text content of the message to be sent. |
Output
The output is a JSON array where each item corresponds to the response from the Press Ticket® API after attempting to send a message. For the "Enviar Texto" operation, the output contains the API's response data confirming the message was sent or details about any error encountered.
Example output structure (simplified):
[
{
"id": "message_id",
"status": "sent",
"number": "5511999999999",
"body": "Your message text here",
...
}
]
The exact fields depend on the API response but generally include message identifiers, status, and metadata.
Dependencies
- Requires an active Press Ticket® API account.
- Needs an API URL and an API token credential configured in n8n to authenticate requests.
- The node uses HTTP requests to communicate with the Press Ticket® API endpoints.
Troubleshooting
Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Incorrect WhatsApp number format may result in message delivery errors.
- Network connectivity problems can prevent API calls.
- The "sendMedia" operation is currently disabled and will throw an error if used.
Error messages:
"A funcionalidade de envio de mídia está temporariamente desativada. Por favor, use a operação de envio de texto."
This means media sending is disabled; use text message sending instead.- Errors related to invalid parameters usually indicate missing required fields like number or text.
- API response parsing errors may occur if the API returns unexpected data formats.
To resolve errors:
- Verify all required properties are correctly set.
- Ensure API credentials are valid and have necessary permissions.
- Confirm the WhatsApp number is in the correct international format.
- Check network access to the Press Ticket® API endpoint.
Links and References
- Press Ticket® Official Website (for API documentation and account setup)
- n8n Documentation on HTTP Request Node (conceptual reference for API calls)