Zalo Login By QR icon

Zalo Login By QR

Login to Zalo via QR Code and save credentials automatically

Zalo Login By QR

AI-generated

Summary

Starts a Zalo QR login and returns the QR code as a PNG binary so the workflow author can scan it. After login, it attempts to save the Zalo credentials using the required n8n API credential and optionally posts the login details to the configured callback URL.

Inputs

  • Warehouse ID — Sent as warehouse_id in the callback request; used only when a callback URL is configured.
  • Callback URL — Optional webhook URL that receives the warehouse ID, serialized cookie, IMEI, user agent, phone, and account display name after login.
  • n8n API credential (required) — Required credential used to create a zaloApi credential in n8n automatically. Its URL defaults to http://localhost:5678 if unset, and its API key is sent in the request header.

Output shape

One n8n item containing JSON and a binary PNG QR code.

On success, JSON includes success: true and a scan prompt; the QR image is in binary property data. Credential-save and callback request failures are logged and do not change the returned success item. Credential lookup failures and QR login errors return success: false with an error message and no QR binary.

Links

Discussion