Zalo CN Group icon

Zalo CN Group

Quản lý nhóm Zalo cá nhân

Overview

This node manages personal Zalo groups, allowing users to perform various group-related operations. Specifically, the "Tạo Ghi Chú" (Create Note) operation lets users add a note to a specified Zalo group, optionally pinning it to the top of the group chat for visibility.

Practical scenarios include:

  • Adding important announcements or reminders within a group.
  • Pinning notes to highlight critical information for all group members.
  • Organizing group discussions by attaching contextual notes.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group where the note will be created.
Nội Dung Ghi Chú The content text of the note to be added to the group.
Pin Ghi Chú Boolean option indicating whether the note should be pinned at the top of the group chat.

Output

The node outputs a JSON object containing:

  • status: A string indicating the success of the operation, typically "Thành công" (Success).
  • response: The detailed response from the Zalo API after creating the note, which may include metadata about the note such as its ID, timestamp, and pin status.

Example output structure:

{
  "status": "Thành công",
  "response": {
    // Note creation details returned by the Zalo API
  }
}

No binary data is produced by this operation.

Dependencies

  • Requires an active connection to the Zalo API via valid credentials including an API authentication token, cookie, device IMEI, and user agent string.
  • The node depends on the external zalo-api-final library to interact with the Zalo platform.
  • Proper configuration of the Zalo credential in n8n is necessary to authenticate API requests.

Troubleshooting

  • Common Issues:

    • Invalid or expired credentials can cause authentication failures.
    • Incorrect group ID or insufficient permissions may result in errors when creating notes.
    • Network issues or API downtime could prevent successful communication with Zalo servers.
  • Error Messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the Zalo API credentials are correctly set up and not expired.
    • Errors related to invalid parameters (e.g., missing group ID or content)
      Resolution: Ensure all required fields are provided and correctly formatted.
    • API response errors indicating permission denied or group not found
      Resolution: Confirm the group ID exists and the authenticated user has rights to create notes in that group.
  • Enabling "Continue On Fail" allows the node to process subsequent items even if one fails, useful for batch operations.

Links and References

Discussion