Nqdev: Tích hợp EsmsVN icon

Nqdev: Tích hợp EsmsVN

Send SMS and OTT messages using EsmsVN API.

OTT Message → Danh sách Template

AI-generated

Overview

This node integrates with the EsmsVN API to send SMS and OTT messages, including managing Zalo Official Account (OA) templates. Specifically, for the "OTT Message" resource and the "Danh sách Template" operation, it retrieves a list of message templates associated with Zalo OA accounts. This is useful for users who want to automate or manage their Zalo messaging campaigns by fetching available message templates programmatically.

Practical examples:

  • Automatically retrieving all available Zalo message templates before sending messages.
  • Synchronizing template lists from EsmsVN into another system for auditing or management.
  • Filtering templates based on SMS type or specific Zalo OA accounts.

Properties

Name Meaning
SmsType Type of SMS to use. Options: "Zalo Ưu Tiên" (priority Zalo), "Zalo Bình Thường" (normal Zalo). Default is "Zalo Ưu Tiên".
ZaloOA Select or specify a Zalo Official Account (OA) to filter templates. Can be selected from a searchable list or specified by name.

Output

The node outputs an array of JSON objects representing the retrieved templates. Each object contains details about a Zalo message template fetched from the EsmsVN API. The exact structure depends on the API response but typically includes template identifiers, names, content, and related metadata.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for EsmsVN service authentication.
  • Uses internal helper libraries (nqdev-libraries/esmsvn) for API communication.
  • Requires proper configuration of the EsmsVN credentials in n8n.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Selecting a non-existent or unauthorized Zalo OA account may result in empty or error responses.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "The resource \"ott_message\" is not known!" indicates an unsupported resource was selected.
    • API errors returned from EsmsVN will be propagated; check the API key validity and permissions.
  • Resolutions:

    • Verify that the EsmsVN API key is correctly set up in n8n credentials.
    • Ensure the selected Zalo OA exists and the API user has access rights.
    • Check network connectivity and retry if transient errors occur.

Links and References

Discussion