Actions10
- User Action Actions
- Message Action Actions
User Action → Get QR Code
AI-generatedOverview
This node integrates with the Zalo Web platform, enabling automation of various user-related and messaging operations. Specifically, for the User Action > Get QR Code operation, it retrieves a QR code associated with a particular user on Zalo. This QR code can be used for sharing contact information or facilitating friend requests.
Common scenarios where this node is beneficial include:
- Automatically generating and sharing QR codes for users to connect on Zalo.
- Integrating Zalo user identification into workflows that require quick user verification or connection.
- Using phone numbers or user IDs as input to fetch corresponding QR codes dynamically.
For example, a marketing automation workflow could generate QR codes for new leads based on their phone numbers, allowing easy sharing and connection via Zalo.
Properties
| Name | Meaning |
|---|---|
User ID or Phone Number (typeRequest) |
Selects whether the target user is identified by User ID or Phone Number. Options: "User ID", "Phone Number". |
User ID (userId) |
The unique identifier of the target user or their phone number, depending on typeRequest. Used to specify which user's QR code to retrieve. |
Output
The node outputs JSON data containing the QR code information related to the specified user. The exact structure depends on the underlying API response but typically includes:
- A URL or data string representing the QR code image.
- Metadata about the QR code or user (e.g., user ID).
No binary output is directly produced by this operation; the QR code is returned as JSON data, which can then be used downstream in the workflow (e.g., to display or send the QR code).
Dependencies
- Requires an active Zalo Web API credential with valid authentication cookies.
- Depends on internal session management to maintain login state.
- Uses helper functions from bundled dependencies for HTTP requests and file handling.
- No external environment variables are explicitly required beyond the API credential.
Troubleshooting
- Authentication Errors: If the node fails due to invalid or expired credentials, re-authenticate the Zalo Web API credential to refresh the session cookie.
- Invalid User ID or Phone Number: Ensure the provided user identifier exists and is correctly formatted. Use the recommended bot (@get_id_bot) to verify user IDs.
- Network Issues: Failures in fetching QR code data may occur if there is no internet connectivity or if Zalo's service is temporarily unavailable.
- Unexpected Response Format: If the QR code data is missing or malformed, verify that the Zalo Web API has not changed its response format or that the user is accessible.
Links and References
- Zalo Official Website
- Zalo Developer Documentation
- For finding User IDs: Use the Telegram bot @get_id_bot as suggested in the property descriptions.