Skip to main content

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

Workflow preview

Workflow preview
100%
Telegram bot: extract & store TikTok and LinkedIn data to Google Sheets with Dumpling AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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. W...

Best for

  • Market Research automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequesttool, n8n-nodes-base.googlesheetstool, n8n-nodes-base.telegramtrigger, n8n-nodes-base.if, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yang.

Original n8n.io source

1.1 Workflow description

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

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:

  • Username and verification status
  • Follower, following, and friend counts
  • Total hearts (likes) and video count
  • Bio link and secure user ID

For LinkedIn profiles:

  • Full name and profile picture
  • Location and follower count
  • Bio/about section
  • Recent posts activity link

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:

  • Telegram Bot Token (create via @BotFather)
  • OpenAI API Key (for voice transcription and AI routing)
  • Dumpling AI API Key (for profile scraping)
  • Google Sheets OAuth2 credentials
  • Gmail OAuth2 credentials (for notifications)

Google Sheets Structure: Create a spreadsheet with two tabs:

TikTok Tab - Columns:

  • Username
  • verified
  • secUid
  • bioLink
  • followerCount
  • followingCount
  • heartCount
  • videoCount
  • friendCount

LinkedIn Tab - Columns:

  • name
  • image
  • location
  • followers
  • about
  • recentPosts link

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:

  • Adding new HTTP Request Tool nodes for scraping
  • Adding corresponding Google Sheets Tool nodes
  • Updating the AI Agent's system prompt with new protocols

Enhance Voice Input:

  • Add language detection for multilingual voice notes
  • Implement speaker identification for team usage
  • Add voice response capability

Advanced Data Enrichment:

  • Chain multiple profile lookups for followers
  • Add sentiment analysis on bios and recent posts
  • Implement automatic categorization/tagging

Notification Improvements:

  • Send results directly to Telegram instead of email
  • Add Slack notifications for team collaboration
  • Create detailed extraction reports with statistics

Batch Processing:

  • Modify to accept CSV files with multiple profiles
  • Add rate limiting to avoid API throttling
  • Implement queue system for large-scale scraping

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - tiktok_profile_scraper

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 3 - tiktok_database_saver

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 4 - linkedin_profile_scraper

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 5 - linkedin_database_saver

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 6 - Receive Telegram Message

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 7 - Check for Voice Message

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 8 - Fetch Voice File from Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - Transcribe Audio with Whisper

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 10 - Format Transcription

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Format Text Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Social Media Extraction Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 13 - Send Completion Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Telegram bot: extract & store TikTok and LinkedIn data to Google Sheets with Dumpling AI
Complexity advanced
Nodes 16
Categories Market Research, AI Chatbot
Author Yang
Published 05 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11546/11546.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Telegram bot: extract & store TikTok and LinkedIn data to Google Sheets with Dumpling AI do?

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. W...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Chatbot use case.