Actions23
- Validar WhatsApp
- Validar CPF
- Validar Data
- Transferir para Fila
- Transferir para Atendente
- Fechar Ticket
- Enviar Mensagem
- Enviar Botões
- Enviar Lista
- Enviar Mídia com Caption
- Enviar Base64
- Vincular Tag
- Criar Tag
- Listar Kanbans
- Vincular Kanban
- Vincular Carteira
- Listar Serviços
- Listar Usuários Disponíveis
- Listar Horários Disponíveis
- Listar Agendamentos
- Criar Agendamento
- Cancelar Agendamento
- Gerar Link do Calendário (.ics)
Overview
This node integrates with the Digitalsac API, providing various operations related to customer service automation and scheduling management. Specifically, the "Cancelar Agendamento" (Cancel Schedule) operation allows users to cancel an existing appointment by specifying its ID.
Common scenarios for this node include automating customer support workflows, managing appointments, sending messages via WhatsApp, and handling ticketing tasks. For example, a user can automate the cancellation of a scheduled appointment when a customer requests it, ensuring that the schedule is updated in real-time without manual intervention.
Practical example:
- A customer contacts support to cancel their appointment. The workflow uses this node with the "Cancelar Agendamento" operation, passing the appointment ID to cancel it automatically through the Digitalsac API.
Properties
| Name | Meaning |
|---|---|
| ID do Agendamento | The numeric ID of the appointment to be canceled |
Output
The node outputs a JSON object containing the response from the Digitalsac API after attempting to cancel the appointment. This typically includes confirmation of the cancellation or error details if the operation failed.
Example output structure:
{
"success": true,
"message": "Agendamento cancelado com sucesso",
"data": {
"scheduleId": 123,
"status": "canceled"
}
}
If an error occurs, the output JSON will contain an error field describing the issue.
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the Digitalsac API.
- The node expects the base URL and token for the Digitalsac API to be configured in the credentials.
- No additional external dependencies are required beyond the Digitalsac API access.
Troubleshooting
- Invalid JSON format errors: Some operations require JSON input (e.g., bodyData). If the JSON is malformed, the node throws an error like "Formato de JSON inválido para Dados (JSON)". To fix, ensure the JSON syntax is correct.
- Missing required parameters: For the cancel schedule operation, the "ID do Agendamento" must be provided and valid. Omitting or providing an invalid ID may cause the API call to fail.
- API authentication errors: If the API token is invalid or expired, requests will fail. Verify the API key credential configuration.
- Network or API errors: The node captures HTTP errors and returns them in the output's
errorfield. Check the error message for details and verify network connectivity and API status.
Links and References
- Digitalsac API Documentation (example link; replace with actual if available)
- n8n Documentation on Creating Custom Nodes
- General info on HTTP Request Node (for understanding underlying request mechanics)