AI Avatar News Posting System - An automated system for creating TikTok news videos with an AI avatar
.jpeg)

Process description
This automation is a complete system for automatically creating news videos with an AI avatar based on current Google trends. The system analyzes trending topics in Russia, selects a news topic with a duplicate check, creates a detailed scenario using AI, generates videos with a realistic avatar through HeyGen, creates attractive headlines and automatically publishes ready-made videos on TikTok.
API keys and services:
- SerPapi - to get Google trends
- OpenAI API Key - for AI content generation (gpt-4.1-mini)
- HeyGen API - to create videos with an AI avatar
- Blotato API - for posting on social media
- Google Sheets OAuth2 - to take into account topics and avoid duplicates
- TikTok Account ID - for automatic publishing
System architecture by blocks
SECTION 1: TOPIC SELECTION AND PREPARATION
1.1 When clicking 'Execute workflow' - Manual launch
Purpose: Initiates the process of creating a news video
Startup alternatives:
- Manual Trigger for testing
- Schedule Trigger for regular content creation
- Webhook for external integrations
1.2 Get trends — Google Trends analysis
Purpose: Gets current trends in Russia via SerPapi
HTTP Request settings:


- URL: https://serpapi.com/search?engine=google_trends_trending_now
- Authentication: SerPapi
- Body Parameters:
- engine: google_trends_trending_now
- geo: RU
What we get:
{
“trending_searches”: [
{
“query”: “Policy News”,
“traffic”: "+500% “,
“description”: “Current political developments”
},
{
“query”: “Technology News”,
“traffic”: "+300% “,
“description”: “Recent IT developments”
},
{
“query”: “Economic events”,
“traffic”: "+250% “,
“description”: “Important economic news”
}
]
}
1.3 Topic Generation — AI News Topic Selection
Purpose: Intelligent selection of the right news topic from trends
Connected components:
- OpenAI Chat Model (gpt-4.1-mini)
- Simple Memory - memory for avoiding repetitions
- Rows - Google Sheets verification tool
System prompt:
You're an AI agent who should generate me a topic for a viral video.
Describe the topic briefly in Russian - two three words, no comments.
Before choosing a theme, be sure to use the Rows tool to get the themes you've used before and don't repeat them again!
Choose only some news topics, your answer should be at least two words long!
And here are the current trending topics from which you should choose one at random:
[list of 10 trending topics]
Work algorithm:
- Gets a list of 10 trending topics
- Turns to Google Sheets to check topics that have already been used
- Selects a random news topic that has not been used
- Returns the short topic title (2-3 words)
Examples of generated topics:
- “Economic News”
- “Technologies of the Future”
- “Political events”
- “Sporting Achievements”
1.4 Rows — Duplicate Checker Tool
Purpose: Allows AI to check previously used topics
The structure of the accounting table:
Topic
Status
Result
Economic news
Done
https://heygen.com/video/abc123
Future technologies
In progress
-
SECTION 2: CONTENT CREATION
2.1 Append or update row in sheet - Topic entry
Purpose: Captures the selected topic in a table with the “In progress” status
Settings:
- Operation: AppendorUpdate
- Matching Columns: Topic
- Columns Mapping:
- Topic: {{$json.output}} (selected topic)
- Status: “In progress”
2.2 Script — Creating a detailed scenario
Purpose: Generates a complete script for a 40-second news video
Connected components:
- OpenAI Chat Model1 (gpt-4.1-mini)
- Simple Memory1 - dialogue memory
- SerPapi - search for more information
Detailed prompt:
INSTRUCTIONS: Create a ready-made script for a video with an AI avatar based on a given topic.
Only display the script text that the avatar will pronounce in the first person.
Use your SerPapi tool to find more details on this topic online.
Script requirements:
- Duration: 40 seconds
- Speech style: conversational, natural, as if the avatar speaks directly to the viewer
- Structure: an introduction with a hook, the main part with logical transitions, a conclusion with a call to action
- Use short sentences for easy listening
- Include ellipse pauses (...) where you need a natural pause in speech
- Add emotional accents where appropriate
- The text should sound natural when voiced
Topic: {{$json ['Topic']}}
Output format:
Start right away with the script text. No introductory words like “Here's the script:” or “Video script:”.
The first sentence should be the beginning of the avatar's speech.
The process of creating a script:
- AI gets a topic (e.g. “Economic News”)
- Uses SerpAPI to find relevant information
- Analyzes found materials
- Creates a structured 40-second scenario
- Optimizes text for natural voiceovers
Example scenario:
Hi! Today I want to talk about important economic events...
The Central Bank made an unexpected decision on the key rate. This will seriously affect loans and deposits...
Experts predict a 2-3 percent increase in inflation. This will especially affect food and real estate...
What does this mean for ordinary people? Loans will become more expensive, but deposits will bring more income...
Subscribe to stay up to date with all important economic news!
2.3 Captions - Generating titles
Purpose: Creates attractive titles for TikTok based on a script
Connected components:
- OpenAI Chat Model2 (gpt-4.1-mini)
- Simple Memory2 - separate memory for titles
Prompt for headlines:
Come up with a short title based on this scenario: {{$json.output}}
SECTION 3: CREATING AND PUBLISHING A VIDEO
3.1 Generate Video1 — Create videos with AI avatar
Purpose: Generates videos with a realistic AI avatar through the HeyGen API


HeyGen API settings:
- Method: POST
- URL: https://api.heygen.com/v2/video/generate
- Authentication: HeyGen (credentials)
- Headers: accept: application/json
JSON Body configuration:
{
“video_inputs”: [
{
“character”: {
“type”: “avatar”,
“avatar_id”: “e9804d068a4b419ea0271a46e4ea4d34",
“avatar_style”: “normal”
},
“voice”: {
“type”: “text”,
“input_text”: “{{$ ('Script') .item.json.output}}”,
“voice_id”: “Your voice ID”,
“speed”: 1.1
}
}
],
“dimension”: {
“width”: 1280,
“height”: 720
}
}
Video parameters:
- Avatar ID: your avatar id
- Voice ID: your voice ID
- Speed: 1.1 (slightly accelerated speech for dynamism)
- Resolution: 1280x720 (HD quality for TikTok)
3.2 Get Video1 → If → Wait — Readiness Waiting Cycle
Purpose: Checks the video generation status and waits for completion
Get Video1 settings:

- URL: https://api.heygen.com/v1/video_status.get
- Query Parameter: video_id (from previous request)
If condition:
- Condition: $json.data.status === “completed”
- True: Go to publication
- False: Wait → recheck
Wait settings:
- Amount: By default (usually 30-60 seconds)
Cycle logic:
- Request video status
- If “completed” → continue
- If “processing” → wait and check again
- Repeat until ready
3.3 Set Accounts — Setting up for publishing
Purpose: Prepares parameters for posting on TikTok
JSON configuration:
{
“blotato_api_key”: “your blotato api key”,
“instagram_id”: “”,
“youtube_id”: “”,
“tiktok_id”: “your tik tok id”,
“facebook_id”: “”,
“facebook_page_id”: “”,
“threads_id”: “”,
“twitter_id”: “”,
“linkedin_id”: “”,
“pinterest_id”: “”,
“pinterest_board_id”: “”,
“bluesky_id”: “”,
“video_caption”: “{{$ ('Captions') .item.json.output}}”
}
3.4 Upload → TIKTOK - Publish videos
Upload (upload to Blotato):


- URL: https://backend.blotato.com/v2/media
- Header: blotato-api-key
- Body: HeyGen video URL
TIKTOK (publication):


- URL: https://backend.blotato.com/v2/posts
- Target Type: tiktok
- Account ID: 2624
- Privacy Level: PUBLIC_TO_EVERYONE
- Content: title from AI+ media URL
3.5 Append or update row in sheet1 - Final update
Purpose: Updates the topic's status to “Done” and saves a link to the finished video
Columns Mapping:
- Topic: (match for recording search)
- Status: “Done”
- The result: HeyGen's finished video URL
Node connection diagram
Main stream:
- Manual Trigger → Get trends → Generating a theme
- Generating a theme → Append or update row in sheet → Scenario
- Scenario → Captions → Generate Video1
Creating and publishing videos:
- Generate Video1 → Get Video1 → If
- If (True) → Set Accounts → Upload → TIKTOK
- If (False) → Wait → Get Video1 (cycle)
- TIKTOK → Append or update row in sheet1
AI connections:
- OpenAI Chat Model + Simple Memory + Rows → Generating a theme
- OpenAI Chat Model1 + Simple Memory1 + SerPapi → Scenario
- OpenAI Chat Model2 + Simple Memory2 → Captions
Required services and their settings
SerpAPI setup:
- Get an API key on serpapi.com
- Set up access to Google Trends
- Make sure you have your request limits
HeyGen setup:
- Create an account at heygen.com
- Get API keys for video generation
- Create your own AI avatar
Blotato setup:
- API key: In the API section
- Connect your TikTok account
System capabilities
Intelligent content selection:
- Trend analysis - only relevant topics from Google Trends Russia
- Prevent duplicates - checking previously used themes
- AI curating - selecting the most appropriate news topics
- Automatic update - always fresh content
Professional production:
- Realistic AI avatar - high-quality animation via HeyGen
- Russian voice - natural voice acting in the native language
- Optimized scenarios - structure for maximum engagement
- Attractive headlines - AI generation for TikTok algorithms
Automated publishing:
- Direct posting to TikTok - without manual intervention
- Ready to expand - support for other platforms via Blotato
- Full accounting of transactions - the history of all videos created
- Quality control - status check at every stage
System application
For news channels:
- Daily content - automatic creation of news summaries
- Current topics - always on trend thanks to Google Trends
- Professional presentation - high-quality avatar presenter
- Saving resources - replacing the film crew with AI technologies
For content agencies:
- Scalable production - dozens of videos a day
- Multilingualism - easy to adapt to different regions
- Customer branding - customizing an avatar for your corporate identity
- A/B testing - different versions of titles and feeds
For educational projects:
- News literacy - explanation of events in simple language
- Output regularity - a stable schedule of publications
- Objectivity - AI analysis without human prejudices
- Accessibility - complex topics in an understandable format
The result of the system
What happens is:
- Standalone news channel with AI presenter
- Relevant content based on real trends
- Professional quality videos and voiceovers
- Scalable production without team growth
- Full automation from idea to publication
This system turns news content creation into a fully automated process with a professional AI presenter!