📊 Telegram bot: extract & store TikTok and LinkedIn data to Google Sheets with Dumpling AI

⚡ 201 views · 📊 Market Research & Insights

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Who’s it for

This workflow is perfect for marketers, social media managers, recruiters, sales teams, and researchers who need to collect and organize public profile data from TikTok and LinkedIn. Whether you’re building influencer databases, enriching CRM data, conducting competitor research, or gathering prospect information, this workflow automates the entire data extraction and storage process.

What it does

This AI-powered Telegram bot automatically scrapes public profile data from TikTok and LinkedIn, then saves it directly to Google Sheets. Simply send a TikTok username or LinkedIn profile URL via text or voice message, and the workflow handles everything:

For TikTok profiles:

For LinkedIn profiles:

All data is automatically organized into separate Google Sheets tabs for easy reference and analysis. You receive an email notification when extraction is complete.

How it works

The workflow uses an AI Agent as an intelligent router that determines which platform to scrape based on your input. Here’s the flow:

  1. Input Processing: Send a message via Telegram (text or voice)
  2. Voice Transcription: If you send a voice note, OpenAI Whisper transcribes it to text
  3. AI Routing: The agent identifies whether it’s TikTok or LinkedIn
  4. Profile Scraping: Calls Dumpling AI’s specialized scraper for that platform
  5. Data Extraction: Parses the profile metrics and details
  6. Database Storage: Saves all data to the appropriate Google Sheets tab
  7. Confirmation: Sends an email notification when complete

The AI agent ensures proper tool pairing - it always scrapes first, then saves, preventing partial data or errors.

Setup Requirements

Accounts & Credentials Needed:

Google Sheets Structure: Create a spreadsheet with two tabs:

TikTok Tab - Columns:

LinkedIn Tab - Columns:

How to set up

Step 1: Create Telegram Bot

  1. Open Telegram and message @BotFather
  2. Use /newbot command and follow prompts
  3. Save your bot token for later

Step 2: Configure Credentials

  1. Add Telegram bot token to “Receive Telegram Message” node
  2. Add OpenAI API key to “OpenAI Chat Model” and “Transcribe Audio” nodes
  3. Add Dumpling AI credentials as HTTP Header Auth
  4. Connect Google Sheets OAuth2
  5. Connect Gmail OAuth2

Step 3: Set Up Google Sheets

  1. Create a new Google Spreadsheet
  2. Create two tabs: “TikTok” and “LinkedIn”
  3. Add column headers as specified above
  4. Copy the spreadsheet ID from the URL

Step 4: Update Workflow

  1. Replace Google Sheets document ID in both database saver nodes
  2. Update email address in “Send Completion Email” node
  3. Remove personal credential names (“Nneka”)

Step 5: Test the Workflow

  1. Activate the workflow
  2. Message your bot with: “Scrape TikTok profile: @charlidamelio”
  3. Or try: “Extract this LinkedIn: https://www.linkedin.com/in/example”
  4. Check your Google Sheets for the data

How to customize

Add More Social Platforms: Create new scraper/saver tool pairs for Instagram, Twitter/X, or YouTube by:

Enhance Voice Input:

Advanced Data Enrichment:

Notification Improvements:

Batch Processing:

đź”— Nodes Used

Telegram, Telegram Trigger, Gmail, AI Agent, OpenAI Chat Model, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup