Z-API icon

Z-API

Send messages

Overview

This node allows sending various types of messages through a messaging API, specifically focusing on the "Send Message" resource. Within this resource, the "Send Sticker" operation enables users to send sticker media to a specified phone number.

Common scenarios for using this node include automating customer engagement by sending stickers as part of chat interactions, enhancing marketing campaigns with rich media, or providing interactive responses in chatbots.

For example, a business could automatically send a thank-you sticker after a customer completes a purchase, or a support bot could reply with a relevant sticker to acknowledge a user's request.

Properties

Name Meaning
Phone The recipient's phone number in international format (e.g., 5511999999999).
URL or Base64 The URL or base64-encoded string representing the sticker media to be sent.
Additional Fields Optional settings including:
- Delay Message Number of seconds (1-15) to wait before sending the message.
- Delay Typing Number of seconds (0-15) to show "Typing..." status before sending the message.
- Message ID to Reply ID of an existing message to which this sticker will be sent as a reply.

Output

The node outputs a JSON array where each element corresponds to the response from the messaging API for each input item processed. The exact structure depends on the API response but generally includes confirmation details about the sent sticker message.

If the node supports binary data output (not indicated here), it would typically represent media content or attachments; however, for the "Send Sticker" operation, the output is primarily JSON confirming the message dispatch.

Dependencies

  • Requires an active connection to the messaging API service via an API key or authentication token configured in n8n credentials.
  • The node uses HTTP POST requests to send messages.
  • No additional external dependencies are indicated.

Troubleshooting

  • Invalid Phone Number: Ensure the phone number is in the correct international format without spaces or special characters.
  • Invalid Media URL/Base64: Verify that the sticker media URL is accessible and points to a valid image/sticker file, or that the base64 string is correctly encoded.
  • API Authentication Errors: Confirm that the API key or authentication token is correctly set up in n8n credentials.
  • Operation Not Known Error: This occurs if an unsupported operation is selected; ensure "send-sticker" is chosen under the "Send Message" resource.
  • Delays Not Working: Delays must be within the allowed range (Delay Message: 1-15 seconds, Delay Typing: 0-15 seconds).

Links and References

Discussion