WAMM PRO icon

WAMM PRO

Send direct WhatsApp messages using WAMM API

Overview

This node integrates with the WAMM PRO API to send WhatsApp messages using predefined templates. It allows users to send template-based WhatsApp messages to specified phone numbers, optionally scheduling the message for a later time and customizing the template with parameters.

Common scenarios where this node is beneficial include:

  • Sending automated notifications or alerts via WhatsApp using approved message templates.
  • Personalizing template messages by replacing placeholders with dynamic data.
  • Scheduling template messages to be sent at specific times.

For example, a business can use this node to send appointment reminders or promotional messages using WhatsApp templates, filling in customer-specific details dynamically.

Properties

Name Meaning
Instance ID Your WAMM instance ID used to identify your account in the WAMM system.
Phone Number Recipient's phone number in international format without the "+" sign (e.g., 40712345678).
Schedule Time Optional time to schedule the message sending. Format: "YYYY-MM-DD HH:mm" or relative like "now+HH:mm".
Template ID The identifier of the WhatsApp message template to send.
Template Parameters JSON string representing key-value pairs to replace placeholders in the template (e.g., {"param1":"value1"}).

Output

The node outputs an array of JSON objects, each representing the result of sending a template message for an input item. Each object contains:

  • success: Boolean indicating if the API call was successful.
  • apiResponse: The full response from the WAMM API.
  • operation: The operation performed, here always "sendTemplate".
  • phone: The recipient phone number.
  • instanceId: The WAMM instance ID used.
  • timestamp: ISO timestamp when the request was made.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the WAMM PRO API.
  • The node makes HTTP GET requests to the WAMM PRO API endpoint (https://app.wamm.pro/api/send).
  • Proper configuration of the WAMM instance ID and API credentials is necessary.

Troubleshooting

  • Invalid JSON format for template parameters: If the Template Parameters property contains malformed JSON, the node will throw an error. Ensure the JSON string is valid.
  • API failures: If the WAMM API returns a failure status, it will be logged as a warning. Check that the instance ID, phone number, and template ID are correct and that the API token has sufficient permissions.
  • Scheduling errors: Incorrectly formatted schedule times may cause the message not to be scheduled properly. Use the specified formats exactly.
  • Network issues: Connectivity problems to the WAMM API endpoint will cause request failures.

To resolve errors, verify all inputs, ensure valid JSON in parameters, and confirm API credentials and network access.

Links and References

  • WAMM PRO API Documentation (for detailed API usage and template management)
  • WhatsApp Business API Template Messages Guide (consult WhatsApp official docs for template formatting)

Discussion