Actions59
- Acesso - Credenciais
- Canais - Listar
- Contato - Adicionar Etiqueta
- Contato - Adicionar Informações
- Contato - Consultar
- Contato - Editar Perfil
- Contato - Encaminhar
- Contato - Importar
- Contato - Importar - Lote
- Contato - Listar Protocolos
- Contato - Listar Todos
- Contato - Mensagem - Enviar
- Contato - Mensagem - Enviar Imagem + Legenda
- Contato - Pesquisar
- Contato - Remover Etiqueta
- Contato - Status De WhatsApp
- Etiquetas - Listar Todos
- Extra - Cep - Pesquisar
- Extra - Cnpj - Pesquisar
- Extra - Coordenadas - Pesquisar
- Extra - Cpf - Pesquisar
- Extra - CSV/TSV - Formatar
- Extra - Nome - Pesquisar
- Extra - Titularidade - Pesquisar
- Extra - Transcrição - Documentos
- Extra - Transcrição - Imagem EN
- Extra - Transcrição - Imagem PT
- Grupos - Adicionar Contato
- Grupos - Listar Contatos
- Grupos - Listar Todos
- Grupos - Remover Contato
- Grupos - WhatsApp - Histórico
- Grupos - WhatsApp - Listar
- Grupos - WhatsApp - Membros
- Marketing - Campanha - Listar
- Marketing - Campanha - Resumo
- Marketing - Mensagem - Enviar
- Marketing - Mensagem - Listar
- Marketing - Mensagem - Status
- Produto - Categoria - Listar
- Produto - Listar
- Protocolo - Consultar
- Protocolo - Encaminhar - Recado
- Protocolo - Finalizar
- Protocolo - Listar - Todos
- Protocolo - Mensagem - Enviar
- Protocolo - Mensagem - Listar
- Protocolo - Observações - Adicionar
- Protocolo - Observações - Listar
- Protocolo - Pesquisar
- Recados - Listar - Todos
- Recados - Pesquisar
- Setor - Listar - Todos
- Templates - Listar - Todos
- Usuário - Agenda - Listar
- Usuário - Carteira - Adicionar
- Usuário - Carteira - Listar
- Usuário - Carteira - Remover
- Usuário - Listar - Todos
Overview
This node integrates with a customer relationship platform via WhatsApp, specifically focusing on sending messages related to service protocols. The "Protocolo - Mensagem - Enviar" operation allows users to send various types of messages (text, media, contact cards, location maps) directly linked to a specific service protocol number. This is useful in scenarios where automated or manual communication needs to be sent to customers regarding their ongoing service requests or support tickets.
Practical examples include:
- Sending a text update about the status of a service request.
- Sharing an image or video related to the protocol.
- Sending a contact card (vCard) for follow-up.
- Providing a map location relevant to the service.
Properties
| Name | Meaning |
|---|---|
| ID Do Protocolo | The unique protocol number to which the message will be sent (required). |
| Tipo Da Mensagem | Type of message to send. Options: Arquivo (file), Áudio (audio), Imagem (image), Mapa (map), Texto (text), VCard (vcard), Vídeo (video). |
| Texto Da Mensagem | Text content of the message, applicable for text, image, and video message types. |
| URL Da Mídia | URL of the media file to send, used for image, video, audio, or file message types. |
| Nome Do Contato (VCard) | Contact name to include in the vCard message type. |
| Telefone (VCard) | Phone number to include in the vCard message type. |
| Nome Do Lugar (Mapa) | Name of the place to send in the map message type. |
| Latitude (Mapa) | Latitude coordinate for the map location message type. |
| Longitude (Mapa) | Longitude coordinate for the map location message type. |
Output
The node outputs JSON data representing the result of the message sending operation. This typically includes confirmation details such as message IDs, status, timestamps, or error information if the sending failed.
If the message involves media, the output confirms the successful handling of the media URL or attachment.
No binary data output is indicated by the source code.
Dependencies
- Requires connection to the external customer relationship platform's API that manages WhatsApp interactions.
- Needs an API authentication token or key configured in n8n credentials to authorize requests.
- The node depends on internal action modules (not detailed here) that handle the actual API calls.
Troubleshooting
Common Issues:
- Invalid or missing protocol number: The message cannot be sent without specifying the correct protocol ID.
- Incorrect media URLs: Media messages require valid accessible URLs; otherwise, sending will fail.
- Missing required fields for certain message types (e.g., vCard requires contact name and phone).
- Authentication errors due to invalid or expired API credentials.
Error Messages:
- Errors related to authorization usually indicate problems with the API key or token setup.
- Validation errors occur if required parameters are missing or incorrectly formatted.
- Network or API endpoint errors may happen if the external service is unreachable.
Resolutions:
- Verify all required input properties are correctly set.
- Ensure media URLs are publicly accessible and correctly formatted.
- Check and refresh API credentials in n8n settings.
- Review API documentation for any changes in required parameters or endpoints.
Links and References
- No direct links provided in the source code.
- For more information, consult the external platform's official API documentation related to WhatsApp messaging and protocol management.