Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. Specifically, for the "Group" resource and the "Tạo Ghi Chú" (Create Note) operation, it allows users to create a note within a specified Zalo group. The note can optionally be pinned to the top of the group chat.

Common scenarios where this node is useful include:

  • Adding important announcements or reminders as notes in a group.
  • Pinning critical information so all group members see it immediately.
  • Automating group management tasks involving notes.

Example: Automatically post a meeting agenda as a pinned note in a project group every morning.

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 created in the group.
Pin Ghi Chú Boolean option to pin the note at the top of the group chat (true = pin, false = no pin).

Output

The node outputs a JSON object containing:

  • status: A string indicating success ("Thành công").
  • response: The raw response from the Zalo API after creating the note, which may include details about the created note.

No binary data output is produced by this operation.

Example output JSON structure:

{
  "status": "Thành công",
  "response": {
    // API response details about the created note
  }
}

Dependencies

  • Requires an active connection to the Zalo API via valid credentials including an API key credential that provides cookie, IMEI, and user agent information.
  • The node uses the external zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credentials in n8n is necessary before using this node.

Troubleshooting

  • Invalid Credentials: If the node throws an error about missing or invalid API instance, verify that the Zalo API credentials are correctly set up and contain valid cookie, IMEI, and user agent values.
  • API Errors: Errors returned from the Zalo API (e.g., invalid group ID, insufficient permissions) will be surfaced. Check the group ID and ensure the authenticated user has rights to create notes in the group.
  • Empty or Incorrect Input: Ensure that required fields like group ID and note content are provided and correctly formatted.
  • Pin Option Issues: If the note does not appear pinned despite setting the pin option, confirm that the API supports pinning for your account and group type.

Links and References

Discussion