Zalo Login QR icon

Zalo Login QR

Đăng nhập QR, chờ quét, rồi lưu credential Zalo Account qua n8n API (bắt buộc).

Zalo Login QR

AI-generated

Summary

Generate and display a QR code for Zalo login, wait for a user to scan and confirm it within a specified timeout, then save the authenticated Zalo account as a credential in n8n via the n8n API.

Inputs

  • Credential Name Prefix — Prefix to prepend to the saved credential name (default 'Zalo').
  • Wait For Scan (seconds) — Duration in seconds (30-300) to wait for the user to scan and confirm the QR code before timeout.
  • Proxy — Optional HTTP proxy URL in the format http://user:pass@host:port to use for network requests.

Output shape

A single item with JSON and binary properties. JSON contains login success status, messages, credential information (id, name, display name, phone, Zalo user ID), QR file path, last error message if any, and manual credential data if automatic saving failed. The binary property contains the QR code image data (PNG).

The operation outputs one item only. If the QR code is not scanned and confirmed within the specified timeout, the operation ends with a timeout message and no credential saved. The saved credential can be used to authenticate further Zalo API nodes. The saved credential is created by calling the n8n Public API, requiring an 'n8n API' credential with API key and URL configured on the node.

Examples

Example 1: Typical usage of Zalo Login QR operation

Set an n8n API credential with API key and base URL (e.g., http://127.0.0.1:5678), optionally specify Credential Name Prefix and Wait For Scan time. Upon execution, the node displays a QR code image (binary output and file path logged). The user scans this QR code using the Zalo mobile app and confirms login within the wait time. The node then saves the Zalo account credential to n8n using the API and outputs details about the saved credential.

Links

Discussion