WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Message → Send Text

AI-generated

Overview

This node operation sends a text message using the WasenderAPI. It supports sending text messages to individual phone numbers, group JIDs, or channel JIDs. The node can automatically select a session from the incoming item or allow manual session selection. It also supports message options such as replying to a specific message ID and mentioning specific group members. This operation is useful for automating WhatsApp messaging workflows, such as sending notifications, alerts, or personalized messages to contacts or groups.

Use Case Examples

  1. Sending a simple text message to a phone number.
  2. Sending a text message to a WhatsApp group with mentions of specific participants.
  3. Replying to a previous message by specifying the message ID.

Properties

Name Meaning
Session Optionally select a WhatsApp session to use for sending the message. If not selected, the session from the incoming item is used automatically.
Recipient The phone number, group JID, or channel JID to which the text message will be sent.
Text The content of the text message to be sent.
Message Options Additional options for the message, such as replying to a specific message ID.
Mentions Used for group messages to mention specific members by their participant JIDs.
Options Request options for retrying failed API requests, including whether to retry and the maximum number of retries.

Output

JSON

  • to - The recipient identifier (phone number, group JID, or channel JID) to whom the message was sent.
  • text - The text content of the sent message.
  • replyTo - The message ID this message is replying to, if specified.
  • mentions - List of participant JIDs mentioned in the message, if any.
  • messageId - The unique identifier of the sent message returned by the API.
  • status - The status of the message sending operation.

Dependencies

  • WasenderAPI service
  • An API key credential for WasenderAPI

Troubleshooting

  • Error: 'Text is required for Send Text' - Ensure the 'Text' property is not empty when sending a text message.
  • Error: 'Reply To Message ID must be a positive integer' - If using the reply option, provide a valid positive integer for the message ID.
  • Session not found error - Make sure a valid session is selected or provided in the incoming item.
  • API request failures - Check network connectivity and API key validity. Use retry options to handle transient errors.

Discussion