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 platform via a QR code. It generates a QR code that users can scan with the Zalo app to authenticate and obtain login credentials. 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 generate a login QR code, wait for user authentication, and then save the resulting credentials for subsequent API interactions.

Use Case Examples

  1. Generating a Zalo login QR code for user authentication in an automated workflow.
  2. Using existing Zalo API credentials to bypass manual login and directly generate a QR code.
  3. Automatically saving new Zalo credentials after successful QR code login for future API calls.

Properties

Name Meaning
Proxy HTTP proxy to use for Zalo API requests, allowing the node to route requests 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.

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.
  • 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.
  • credentialType - Type of credential used (e.g., n8nZaloApi or zaloApi).
  • credentialFilePath - File path where credentials are saved if not created automatically.
  • autoCreateScript - Script name to run for automatic credential creation if applicable.
  • autoCreateApi - Information about automatic credential creation via n8n API if credentials are provided.

Dependencies

  • Zalo SDK for interacting with Zalo API
  • Axios for HTTP requests to n8n API
  • n8n credentials for Zalo API and n8n account authentication

Troubleshooting

  • Timeout generating QR code: The node throws a timeout error if the QR code is not generated within 30 seconds. Check Zalo connection and try again.
  • Credential creation errors: Errors may occur when automatically creating credentials via the n8n API. Ensure the API key and URL are correctly configured.
  • Proxy issues: If using a proxy, ensure the proxy URL is correctly formatted and accessible.
  • QR code expired or declined events: The node logs these events; users should retry login if the QR code expires or is declined.

Links

Discussion