DPSMedia Zalo Trigger icon

DPSMedia Zalo Trigger

Personal-account Zalo trigger powered by zca-js.

DPSMedia Zalo Trigger

AI-generated

Summary

Listen for specified events from a Zalo user session, including user and group messages, group events, friend events, typing notifications, reactions, seen messages, and undos.

Inputs

  • useSession — Enable to select a custom credential by ID for establishing the Zalo session.
  • connectToId (required) — User ID or phone number to which the node will connect/login on Zalo.
  • eventTypes (required) — Specify which Zalo events to listen for, such as user messages, group messages, group events, friend events, undo actions, typing, reactions, and seen messages.
  • autoRestartInterval — Set the interval in hours to automatically restart the trigger; 0 disables auto-restart.
  • groupMedia — Enable to debounce media messages in groups to avoid duplicate triggers.
  • debugGroupEvent — Enable to log raw group event payloads and include type and action details in the output.
  • groupJoinMessageFallback — Emit a synthetic group join event when a system message indicates you were added to a group.
  • useFilteredOutput — Enable to use filtered output based on specified thread ID and keyword filters.
  • threadIdFiltering — Enable filtering to listen only to or ignore specific thread IDs.
  • listenOnlyThreads — Comma-separated list of thread IDs to listen to when thread ID filtering is enabled.
  • ignoreThreads — Comma-separated list of thread IDs to ignore when thread ID filtering is enabled.
  • keywordFiltering — Enable filtering to listen only to or ignore messages containing specific keywords.
  • listenOnlyKeywords — Comma-separated list of keywords to listen to when keyword filtering is enabled.
  • ignoreKeywords — Comma-separated list of keywords to ignore when keyword filtering is enabled.
  • continueOnFail — Enable to continue listening even if login fails.
  • telegramTokenOverride — Override Telegram bot token for forwarding received events.
  • telegramChatIdOverride — Override Telegram chat ID for forwarding received events.
  • selfListen — Enable to listen to messages sent by the logged-in user.
  • ignoreSelfEvents — Enable to ignore events triggered by the logged-in user's own messages.

Output shape

a stream of event objects corresponding to the specified eventTypes from the connected Zalo session

Event data includes user, group, and friend messages and events as selected. Filtering by thread IDs and keywords applies if enabled. Debug mode enriches output for group events. The trigger maintains a persistent connection to Zalo and emits events in real time.

Examples

Example 1: Trigger for user and group messages and reactions only

Set 'connectToId' to the user ID or phone number, select 'User Messages', 'Group Messages', and 'Reaction' in 'eventTypes', optionally set 'autoRestartInterval' for stability.

Links

Discussion