TikTok Content Strategy: Extract Viewer Questions from Video Comments using AI - n8n Workflow

Analyze TikTok viewer engagement. This powerful n8n workflow searches for relevant profiles, extracts video comments using Dumpling AI, and leverages the GPT-4 n8n node to identify and extract top viewer questions for content ideation.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Content strategists and creators seeking data-driven inspiration.

  • Marketing agencies running social listening campaigns.

  • n8n users who need advanced social media data extraction and AI analysis combined.

  • Anyone looking for practical n8n templates integrating external APIs with large language models.

Overview

Finding what your audience truly cares about often requires sifting through thousands of comments. This advanced n8n workflow streamlines this arduous process. It addresses the challenge of social listening by automating the data extraction phase using the Dumpling AI API and then applying sophisticated natural language processing via GPT-
4.

The value provided by this specific n8n workflow is the ability to rapidly generate a list of prioritized content ideas—the exact questions viewers are asking—saving countless hours of manual review. By using this n8n template, you convert raw comment data into actionable content strategy insights, ensuring your next video addresses the immediate needs of your target audience.

How it Works

This powerful n8n automation initiates with the Receive Keyword Input form n8n trigger. Once a keyword is submitted:


  1. User Search: The initial keyword is sent to the Search TikTok Users (Dumpling AI) n8n node, which fetches relevant profiles.

  2. User Iteration: The Split Search Results into Users node separates the results, and the workflow iterates through up to 3 users (limited by the Limit to 3 Users n8n node).

  3. Rate Limit Management: A Wait n8n node is included to ensure the workflow respects API rate limits before proceeding.

  4. Video Fetching: The Get TikTok Profile Videos (Dumpling AI) n8n node fetches the recent video list for the current profile.

  5. Video Iteration: The Loop Through Videos node iterates over each fetched video.

  6. Comment Extraction: The Get Comments for Each Video n8n node (using Dumpling AI) retrieves all nested comments for that video URL.

  7. Data Cleaning: The Extract Clean Comments (Python) n8n node executes custom Python code to flatten the nested comment JSON structure, preparing a clean text list for the AI.

  8. AI Analysis: The Find Top Viewer Questions (GPT-4) n8n node uses a specific system prompt to instruct GPT-4 to analyze the clean comment text and extract only the top, frequently asked questions.

  9. Data Storage: Finally, the Insert Result into DataTable n8n node saves the video URL and the questions extracted by GPT-4 into a dedicated n8n DataTable for later reference.

Installation Guide

To deploy this expert n8n workflow, follow these steps:


  1. Import: Copy the entire JSON code provided and import it directly into your n8n instance as a new workflow.

  2. Credentials - Dumpling AI: This n8n workflow requires credentials for Dumpling AI. In the Search TikTok Users (Dumpling AI), Get TikTok Profile Videos (Dumpling AI), and Get Comments for Each Video n8n nodes, you must configure an HTTP Header Auth credential type, using your Dumpling AI API key as the value.

  3. Credentials - OpenAI: Configure the OpenAI n8n node (Find Top Viewer Questions (GPT-4)) with your OpenAI API key. Ensure the key supports GPT-4 model usage.

  4. Data Table Setup: Ensure you have an n8n DataTable named 'Tik Tok Keywords' with columns for 'Videos' and 'Keywords', as referenced by the Insert Result into DataTable n8n node.

  5. Trigger Activation: Activate the workflow. You can run the initial Receive Keyword Input n8n trigger manually to test the flow.

Node Details

This n8n template utilizes several critical n8n nodes:

Receive Keyword Input (Form Trigger): Acts as the starting n8n trigger for the entire process, prompting the user for keywords to begin the TikTok search.
Search TikTok Users (HTTP Request): Configured to communicate with the Dumpling AI /search-tiktok-users endpoint using POST method and custom HTTP Header Authentication.
Wait (n8n Node): Pauses execution for 15 seconds. Essential for managing the high volume of external API calls in this complex n8n workflow and preventing rate limiting.
Get Comments for Each Video (HTTP Request): Uses the video's share URL dynamically via expression ({{ $json.shareinfo.shareurl }}) to fetch comment data from Dumpling AI.
Extract Clean Comments (Python Code): This custom code n8n node recursively extracts comment text from the deeply nested JSON structure returned by the TikTok API. It’s crucial for preparing input for the next n8n node (GPT-4).
Find Top Viewer Questions (OpenAI n8n Node): Uses the gpt-4.1 model (GPT-4) with a sophisticated system prompt instructing the AI to act as a content strategist and extract only the most common, verbatim viewer questions from the cleaned comments.


  • Insert Result into DataTable (DataTable n8n Node): The final action in this n8n workflow, storing the high-value insights (Video URL and extracted questions) into a persistent n8n DataTable.

Related n8n Workflows

Free

Nodes: 11 Nodes
Updated: December 26 2025
View all
Created by
Yang
Yang

Featured*