Sarabjeet Rattan Logo
    Agentic Engineering

    LinkedIn Automation

    Engineered a Trello-driven LinkedIn automation system using CrewAI. Orchestrates agents for deep topic research and high-fidelity content generation, enabling a seamless HITL 'Approve-to-Publish' workflow with absolute control.

    Duration

    1 Month

    Role

    Lead AI Developer

    Audience

    Founders & Digital Publishers

    Tech Stack
    Python / CrewAI
    Trello API
    LinkedIn API
    +1

    The Problem

    Building personal brand authority and consistent B2B thought leadership on LinkedIn is highly rewarding, but requires massive daily operational overhead. For founders and digital publishers, the process of researching trends, drafting posts, and publishing consistently creates severe operational friction.

    Manual content pipelines suffer from inconsistent publishing schedules, writer's block, and deep research time drains. Reviewing topics, tracking outlines, and managing draft copy across separate documents makes collaboration chaotic and disjointed.

    Without an automated pipeline backed by human checkpoints, scaling brand visibility either stalls due to time constraints or loses authenticity due to low-quality generic AI generation.

    Manual Content Friction
    1. Trend Research Time Drain
    Spending 2-3 hours parsing URLs and scrolling news feeds daily.
    2. Creative Writer's Block
    Drafting engaging content under strict char limits from scratch.
    3. Disjointed Workspace
    Managing drafts in documents, calendar tools, and social schedulers.
    Stale Outreach & Brand Stagnation

    The Approach

    I designed a hybrid content automation system that blends autonomous AI agent execution with a structured 'Human-in-the-Loop' (HITL) approval workflow.

    Rather than building a complex custom admin dashboard, I integrated Trello directly into the agent pipeline as the central state machine. This allows the system to remain lightweight, while providing the user with a highly intuitive drag-and-drop workspace.

    The workflow enforces checkpoints at critical stages: first, when daily topics are researched and outlined, and second, when the final content drafts are created. No content ever reaches the LinkedIn API without explicit user approval.

    Trello-Driven State Machine
    Pending Topics
    CrewAI Research
    Approved Topics
    User Moves Card
    Pending Content
    CrewAI Drafter
    Approved Content
    User Moves Card
    Published
    LinkedIn API Sync

    Agent Orchestration

    To handle research and drafting with professional rigor, I deployed an agent workforce powered by the CrewAI framework.

    The Research Agent queries SerperDev to scan target URLs and industry news for trending concepts. It aggregates insights and creates a detailed outline, pushing it to Trello's 'Pending Topics' board.

    Once a human moves the card to 'Approved Topics', the Content Agent takes over. It reads the outline, performs target keyword analysis, drafts the post, and runs strict validation checks (formatting constraints, hashtag structure, and character count limits between 500-3000 chars) before pushing the final draft to Trello for review.

    Research Agent (CrewAI)
    Role: Industry Scanner & Outliner
    Tools: SerperDev (Web Search), ScrapeWebsite (Scraper)
    Output: Detailed structured outlines + target keywords
    Content Agent (CrewAI)
    Role: LinkedIn Copywriter
    Constraints: 500-3000 characters, markdown, hashtags
    Output: Draft post layout, hooks, and tag selections

    Technical Architecture

    The system is built as a modular Python daemon orchestrated by APScheduler. The scheduler runs daily cron triggers for research and schedules continuous interval-based polling for approvals.

    The Content Orchestrator manages state transitions, parses payload schemas, and acts as the secure execution interface between the CrewAI agents and integration clients.

    API calls are managed by dedicated clients: the Trello Client handles card creation, status polling, and card transitions, while the LinkedIn Client manages secure OAuth token validation, ugcPost format builds, and final API delivery.

    System Component Layers
    Scheduler LayerAPScheduler (Daily crons for research, polling checks)
    Orchestration LayerPython Orchestrator (State machine, error recovery, run validations)
    Integration LayerTrello Client API & LinkedIn ugcPost API

    Results & Impact

    The LinkedIn Content Automation System successfully eliminated the creative bottlenecks of manual content creation. Topic drafting time was reduced by 85%, freeing up critical hours for business growth.

    Posting frequency tripled without any drop-off in brand quality, thanks to the strict outline-and-draft review gates. The system achieves 100% on-schedule posting via continuous cron orchestration.

    By matching professional industry insights with automated research tools, founders can maintain an active, high-visibility social presence on autopilot with total control over their message.

    Pain Points Solved
    ●Inconsistent publishing schedules
    ●Manual research & drafting overhead
    ●Creative friction in content ideation
    ●Disconnected Trello-to-Social workflows
    ●Scaling personal brand authority

    Impact & Outcomes

    85%
    Drafting Time Saved
    3x
    Publishing Frequency
    100%
    Posting Timeliness
    98%
    Content Approval Rate
    Intelligent Content Drafting
    Trello-Driven Orchestration
    Human-in-the-Loop Dispatch
    Full Technology Stack
    Python / CrewAI
    Trello API
    LinkedIn API
    APScheduler

    Interested in a similar solution?

    Let's discuss how agentic AI can solve your operational challenges.