TikTok Trigger icon

TikTok Trigger

TikTok Trigger

Overview

This node implements a TikTok Trigger for n8n workflows. It connects to TikTok's WebSocket API using provided credentials to listen for real-time events. When events occur, it emits them as output data, enabling workflows to react to TikTok events automatically. This is useful for automating responses to TikTok activity, such as monitoring live streams or user interactions.

Use Case Examples

  1. Automatically trigger a workflow when a new TikTok live stream starts.
  2. React to TikTok user interactions in real-time to update a CRM or send notifications.

Output

JSON

  • event - Type of the event received from TikTok WebSocket
  • data - Payload data of the event from TikTok WebSocket

Dependencies

  • Requires TikTok API credentials including a TikTok session token and an API key.

Troubleshooting

  • Error 'TikTok session is required' indicates missing or invalid TikTok session credentials; ensure credentials are correctly configured.
  • Connection errors may occur if the WebSocket connection to TikTok fails; check network connectivity and credential validity.
  • If no events are emitted, verify that the TikTok session is active and the API key is correct.

Links

Discussion