Zalo Login Via QR Code icon

Zalo Login Via QR Code

LĐăng nhập Zalo bằng QR code và lưu thông tin vào Credentia

Zalo Login Via QR Code

AI-generated

Overview

This node facilitates logging into the Zalo messaging platform via a QR code. It generates a QR code that users can scan with the Zalo app to authenticate. The node supports using existing Zalo API credentials or n8n account credentials to streamline the login process. It is useful for automating Zalo login workflows, especially when integrating Zalo services into n8n automation. For example, it can be used to programmatically obtain Zalo session credentials for further API interactions.

Use Case Examples

  1. Automate Zalo login to fetch user session credentials for messaging or data retrieval.
  2. Generate a QR code for manual Zalo login in an automated workflow.
  3. Use existing Zalo or n8n credentials to bypass manual login and directly authenticate.

Properties

Name Meaning
Proxy HTTP proxy to use for Zalo API requests, allowing network requests to be routed through a specified proxy server.

Output

Binary

The node outputs the generated QR code image in PNG format as binary data, which can be used to display or save the QR code for scanning.

JSON

  • success - Indicates whether the QR code generation and login process was successful.
  • message - A descriptive message about the login or QR code generation status.
  • fileName - The filename of the generated QR code image.
  • usingExistingCredential - Boolean indicating if existing credentials were used for login.
  • credentialType - Type of credential used (e.g., n8n account credential or Zalo API credential).
  • credentialInstructions - Instructions related to the credentials used or created during the login process.
  • credentialName - Name of the credential used or created.
  • credentialId - ID of the credential used or created.
  • credentialFilePath - File path where credentials are saved if not created automatically.
  • autoCreateScript - Script name to auto-create credentials if automatic creation is not possible.
  • autoCreateApi - Indicates if credentials will be created automatically via the n8n API after successful login.

Dependencies

  • zca-js (Zalo SDK)
  • axios (for HTTP requests)

Troubleshooting

  • Timeout generating QR code: Increase the timeout or check Zalo connection.
  • No credentials provided: The node will generate a QR code for manual login but cannot use existing credentials.
  • Errors creating credentials via n8n API: Check API key and URL configuration for n8n account credentials.
  • QR code expired: Retry the login process to generate a new QR code.
  • Errors in event listeners: Ensure network connectivity and proxy settings are correct.

Links

Discussion