Actions48
- Chat Actions
- Mensagem Actions
- Grupo Actions
- Perfil Actions
Overview
The node "Zappfy API" enables interaction with the Zappfy service, specifically providing operations related to chat management. The "Bloquear Contato" (Block Contact) operation under the "Chat" resource allows users to block or unblock a contact by specifying the contact's number and the desired action. This is useful in scenarios where you want to programmatically control communication permissions, such as preventing unwanted messages or restoring contact access.
Practical examples include:
- Automatically blocking contacts flagged as spam.
- Unblocking a previously blocked contact after verification.
- Managing contact permissions in bulk via workflows.
Properties
| Name | Meaning |
|---|---|
| Nome Da Instância | The name of the instance to connect to within the Zappfy API environment. |
| Contato | The phone number of the contact to be blocked or unblocked. |
| Ação | The action to perform on the contact: either "Bloquear" (block) or "Desbloquear" (unblock). |
Output
The node outputs a JSON array containing the result of the block/unblock operation. Each item in the output corresponds to the response from the Zappfy API for the requested action on the specified contact. The exact structure depends on the API response but generally confirms success or failure of the operation.
No binary data output is indicated.
Dependencies
- Requires an active connection to the Zappfy API.
- Needs an API authentication credential configured in n8n to authorize requests.
- The base URL for API requests is
https://docs.zappfy.io/api-reference.
Troubleshooting
- Operation not supported error: If the node throws an error stating the operation is not supported, verify that the "resource" and "operation" parameters are correctly set to "chat-api" and "block-contact" respectively.
- Authentication errors: Ensure the API key or authentication token is valid and properly configured in n8n credentials.
- Invalid contact number: The "Contato" property must be a valid phone number recognized by the Zappfy API; otherwise, the request may fail.
- Instance name issues: Confirm that the "Nome Da Instância" matches an existing instance in your Zappfy account.
Links and References
- Zappfy API Documentation (for detailed API endpoints and usage)
- n8n documentation on Creating Custom Nodes