npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-zalo-automation

v1.0.1

Published

n8n community node for Zalo automation via secure backend API

Readme

n8n-nodes-zalo-automation

npm version npm downloads

n8n community node for Zalo automation. This node provides a simple interface to automate Zalo actions through a secure backend API.

Features

  • Send Messages - Send messages via Zalo
  • Follow Users - Follow Zalo users
  • Add Friends - Send friend requests on Zalo
  • Secure - All business logic and licensing handled server-side
  • Simple - Easy-to-use interface with clear error messages

Installation

Via n8n UI

  1. Go to SettingsCommunity Nodes
  2. Click Install a community node
  3. Enter: n8n-nodes-zalo-automation
  4. Click Install

Via npm (CLI)

npm install n8n-nodes-zalo-automation

Then restart n8n.

Authentication

This node requires Zalo API credentials to authenticate with the backend service.

Setting Up Credentials

  1. Get Your API Key:

    • Visit https://aiviethub.com
    • Sign up or log in to your account
    • Navigate to API Keys section
    • Create a new API key or copy an existing one
  2. Configure Credentials in n8n:

    • Go to Credentials in n8n (Settings → Credentials)
    • Click Add Credential
    • Search for "Zalo API"
    • Enter your API key
    • Save the credential with a name (e.g., "My Zalo API")
  3. Use in Workflow:

    • Add the Zalo Automation node to your workflow
    • Select your Zalo API credential from the dropdown
    • The API key is stored securely and can be reused across multiple nodes

Benefits of Using Credentials

Reusable: Use the same credential across multiple Zalo Automation nodes
Secure: API keys are encrypted and stored securely
Easy Management: Update API key in one place, affects all nodes
Better Organization: Separate authentication from node configuration

Node Parameters

Credentials (Required)

  • Type: Credential selector
  • Description: Select your Zalo API credential
  • Setup: Configure in Settings → Credentials → Add Credential → Zalo API
  • Security: API key is encrypted and stored securely

Action (Required)

  • Type: Dropdown
  • Options:
    • send_message - Send a message via Zalo
    • follow_user - Follow a Zalo user
    • add_friend - Send a friend request on Zalo

Payload (Optional)

  • Type: JSON editor
  • Description: JSON object with action-specific parameters
  • Example for send_message:
    {
      "to": "user_id_or_phone",
      "message": "Hello from n8n!"
    }
  • Example for follow_user:
    {
      "userId": "zalo_user_id"
    }
  • Example for add_friend:
    {
      "friendId": "zalo_user_id"
    }

Usage Examples

Example 1: Send a Message

  1. Configure Credentials (first time only):
    • Go to Settings → Credentials
    • Add Zalo API credential with your API key
  2. Add Node:
    • Add Zalo Automation node to workflow
    • Select your Zalo API credential
    • Set Action to Send Message
    • Set Payload:
    {
      "to": "user123",
      "message": "Hello from n8n automation!"
    }
  3. Execute the workflow

Example 2: Follow a User

  1. Add Zalo Automation node
  2. Select your Zalo API credential
  3. Set Action to Follow User
  4. Set Payload:
    {
      "userId": "zalo_user_456"
    }
  5. Execute the workflow

Example 3: Add a Friend

  1. Add Zalo Automation node
  2. Select your Zalo API credential
  3. Set Action to Add Friend
  4. Set Payload:
    {
      "friendId": "zalo_user_789"
    }
  5. Execute the workflow

Output

On successful execution, the node returns:

{
  "action": "send_message",
  "result": {
    "messageId": "msg_1234567890",
    "status": "sent",
    "timestamp": "2024-01-01T12:00:00.000Z",
    "payload": { ... }
  }
}

Error Handling

The node provides clear, actionable error messages for common issues:

  • Invalid API Key - Check your API key and ensure it's correct
  • License Expired - Renew your subscription at aiviethub.com
  • Feature Not Allowed - Upgrade your plan to access this feature
  • Instance Mismatch - Contact support if you need to transfer your license

All errors include links to support and upgrade pages.

Pricing & Licensing

This node requires a valid subscription to use. Pricing plans:

  • Free Plan: Send messages only
  • Elite Plan: Send messages + Follow users
  • Premium Plan: All features (Send messages + Follow users + Add friends)

Get your API key and manage your subscription at https://aiviethub.com

Architecture

This node is a thin client that communicates with a secure backend API:

  • Backend URL: https://api-n8n.aiviethub.com/zalo/execute
  • Authentication: Bearer token (API key)
  • Instance Binding: Automatic (uses n8n workflow ID)

Important: This node does NOT contain any business logic or license validation. All security, licensing, and Zalo API integration is handled by the backend service.

Support

License

MIT

Changelog

1.0.0 (2024-01-01)

  • Initial release
  • Support for send_message, follow_user, add_friend actions
  • API key authentication
  • Comprehensive error handling