n8n Template

Larry TikTok Growth Engine – Self-Improving AI Agent for TikTok

Larry TikTok Growth Engine – Self-Improving AI Agent for TikTok
Created by carlosgracia • February 27, 2025

Overview

Larry is a fully autonomous AI agent that runs daily on n8n to create and publish TikTok carousel slideshows. What makes Larry unique is his persistent skill memory — after every run he analyzes what worked and stores the learnings, so each new post is better than the last.

Download

Who is this for?

  • TikTok Creators looking to automate content
  • Growth Marketers running brand accounts
  • SaaS founders promoting their product on TikTok
  • Agencies managing multiple TikTok accounts

Key benefits

  • Self-Improving: Larry remembers what worked and adapts his strategy automatically.
  • Fully Sequential: No deadlocks — the flow runs reliably end-to-end.
  • AI-Powered Slides: Generates 4 optimized carousel images with bold text overlays.
  • Analytics-Driven: Reads per-post stats and profile analytics before creating content.
  • Automatic Publishing: Posts directly to TikTok via Upload-Post API.

Detailed flow

  1. Schedule: Runs on a daily trigger (configurable).
  2. Collect Stats: Reads the performance log from Google Sheets and fetches per-post analytics from Upload-Post.
  3. Update Stats: Writes views, likes, comments, shares, and engagement rate back to the sheet.
  4. Read Context: Fetches profile analytics, reads the agent’s accumulated skill file, and loads fresh performance data.
  5. Generate Content: An AI strategy agent (Gemini) analyzes all data + accumulated skill to create an optimized 4-slide TikTok carousel with title, prompts, hashtags, and engagement hook.
  6. Create Images: Generates 4 images (9:16 vertical) using fal.ai’s NanoBanana model.
  7. Publish: Uploads the carousel to TikTok via Upload-Post with an AI-generated description.
  8. Log & Learn: Logs the post to Google Sheets and updates the agent’s skill file with new learnings.

Setup (step-by-step)

  1. Download the JSON file and import it into n8n.
  2. Create an Upload-Post account and get your API key.
  3. Set up a Google Sheet with “Performance Log” and “Agent Skill” tabs.
  4. Configure your Google Sheets, fal.ai, and OpenAI credentials in n8n.
  5. Update the “Set Config” node with your product name, API key, and spreadsheet ID.
  6. Activate the workflow and let Larry start posting!
tiktokai-agentself-improvingcarouselgeminiautomation