uChat

Integração com a API do uChat

Overview

This node integrates with the uChat API to send WhatsApp message templates to specific contacts. It allows users to specify a unique contact identifier (user_ns), select a WhatsApp template by name or ID, and optionally provide template parameters in JSON format. This operation is useful for automating personalized WhatsApp communications using predefined message templates, such as sending notifications, alerts, or promotional messages to contacts.

Use Case Examples

  1. Sending a WhatsApp template message to a customer with personalized parameters like name and appointment details.
  2. Automating the dispatch of order confirmation messages using WhatsApp templates to multiple contacts.

Properties

Name Meaning
User NS Unique identifier of the contact (user_ns) to whom the WhatsApp template message will be sent.
Template Name or ID The name or ID of the WhatsApp template to send. Users can choose from a list of available templates or specify an ID using an expression.
Parâmetros Do Template Optional JSON-formatted parameters to customize the WhatsApp template message content.

Output

JSON

  • user_ns - Unique identifier of the contact to whom the template was sent.
  • template_name - Name of the WhatsApp template used.
  • parameters - Parameters sent with the template, if any.
  • status - Response status from the API indicating success or failure of the send operation.

Dependencies

  • Requires authentication with the uChat API via an API key credential.

Troubleshooting

  • Ensure the 'User NS' is a valid and existing contact identifier in the uChat system to avoid errors.
  • Verify that the 'Template Name or ID' corresponds to an existing WhatsApp template available in the uChat account.
  • If providing 'Parâmetros Do Template', ensure the JSON is valid and correctly formatted to prevent parsing errors.
  • Common error messages may include invalid user_ns, template not found, or malformed JSON parameters. Check the API response for specific error details and correct the input accordingly.

Links

Discussion