Zalo Send Message icon

Zalo Send Message

Gửi tin nhắn qua API Zalo sử dụng kết nối đăng nhập bằng cookie

Zalo Send Message → Gửi danh thiếp

AI-generated

Overview

This node sends a contact card (danh thiếp) message via the Zalo messaging platform using the Zalo API. It is useful for scenarios where you want to share a user's contact information within a Zalo chat, either in a personal or group conversation. For example, a business could use this node to send a contact card of a sales representative to a customer in a chat thread.

Use Case Examples

  1. Sending a contact card to a personal chat thread by specifying the thread ID, user ID of the contact, and optionally the phone number.
  2. Sending a contact card to a group chat by specifying the group thread ID and the user ID of the contact to share.

Properties

Name Meaning
ID cuộc trò chuyện / Thread ID The ID of the chat thread (personal or group) where the contact card will be sent.
Loại cuộc trò chuyện The type of chat thread: personal (Cá nhân) or group (Nhóm).
ID Người dùng (Danh thiếp) The user ID of the contact whose card you want to send.
Số điện thoại (Tùy chọn) Optional phone number of the user in the contact card.

Output

JSON

  • success - Indicates if the contact card was sent successfully.
  • response - The response object from the Zalo API after sending the contact card.
  • threadId - The ID of the chat thread where the card was sent.
  • threadType - The type of the chat thread (personal or group).

Dependencies

  • Zalo API credentials with cookie, IMEI, and user agent for authentication.

Troubleshooting

  • Ensure that the Zalo API credentials are correctly set and valid, including the cookie, IMEI, and user agent, otherwise the node will fail to initialize the API client.
  • The 'User ID (for card)' parameter is required; if missing, the node will throw an error.
  • If the Zalo API client is not initialized properly, the node will throw an error indicating failure to send the contact card.
  • Network issues or invalid thread IDs may cause the API call to fail.

Discussion