TikTok Trigger

TikTok IM via WebSocket (capture "ws"; gzip/Zstd + protobuf) or HTTP poll. Botzvn-style stacks use Zstd — this node includes @mongodb-js/zstd.

TikTok Trigger

AI-generated

Summary

Listen for incoming TikTok instant messages or webcast metadata by connecting to TikTok's WebSocket or polling HTTP APIs based on a user-provided capture JSON configuration.

Inputs

  • Data Source — Select the method to receive data: Auto (use WebSocket if capture JSON includes ws URL), WebSocket only, or HTTP poll only.
  • Capture JSON (required) — Paste the JSON captured from browser extension that includes the connection details (WebSocket or HTTP). For direct messages, use the block including the WebSocket URL (wss://im-ws-...).
  • Polling Interval (seconds) — When using HTTP polling, specify the interval in seconds between polls (minimum 5).
  • Manual Test — Wait After Connect (seconds) — When manually testing with WebSocket mode, specify how long to wait after connection for a decodable chat frame (between 15 and 600 seconds).
  • WebSocket debug (emit frame meta) — Enable to emit detailed metadata for each received WebSocket binary frame to assist debugging and correlation with raw payloads.

Output shape

a stream of JSON objects representing TikTok message events or webcast metadata, emitted each time new data arrives via WebSocket or HTTP poll

In manual mode, the node emits once per connection/test cycle. In active workflows, it continues emitting on each new message or poll. WebSocket mode decodes complex protobuf and possibly compressed frames; HTTP mode fetches and parses HTTP response JSON. Errors during WebSocket or HTTP requests are emitted as node errors.

Links

Discussion