Workflow

Automated LinkedIn Trend Discovery

This workflow automates daily discovery of trending LinkedIn posts on AI topics and creates engaging draft posts designed to go viral.

Roshan RamaniRoshan Ramani

Last updated

March 3, 2026

Connectors used

LinkedIn
telegram_bot_api

Tags

LinkedInAI Content GenerationTrend AnalysisSocial Media MarketingAutomated Image Creation

Virtual Hackathon - Roshan Ramani Automated LinkedIn Trend Discovery and Create Draft Post

This workflow automates the process of discovering trending AI topics on LinkedIn and crafting a highly engaging draft post tailored to the user's professional profile. It scrapes trending posts, analyzes patterns for virality, and generates both LinkedIn post content and a creative image prompt suitable for a striking visual.

It does 7 things:

  1. Runs automatically every day at 2:30 AM UTC to keep content fresh.
  2. Generates search queries for trending AI topics filtered to posts from the previous day on LinkedIn.
  3. Searches the internet for LinkedIn posts matching those queries.
  4. Extracts the most relevant posts and their key details like title, link, and description.
  5. Uses AI to analyze trending patterns and the user's LinkedIn profile to craft a viral LinkedIn post draft.
  6. Generates a creative prompt to produce a modern, tech-themed image to accompany the post.
  7. Uploads the generated image to a free image hosting service for easy access.

What you need

  1. A Needle account with access to scheduled triggers and code nodes.
  2. API access to Needle's internet search and AI content generation nodes.
  3. A valid API key for Google Gemini for image generation.
  4. The freeimage.host API key included in the workflow for image upload.
  5. A LinkedIn profile authorization to provide professional background data.

How the flow works

Scheduled Trigger: Starts the workflow daily at 2:30 AM UTC.

Date Filter Code Node: Calculates yesterday's date and prepares a list of trending AI topics with LinkedIn-specific search queries filtered by date.

Needle Internet Search: Runs the search queries on the web to find recent LinkedIn posts about the selected AI topics.

Results Extraction Code Node: Processes search results to collect up to 5 unique LinkedIn posts per topic, extracting titles, descriptions, links, and snippets.

Needle AI Content Generation: Analyzes the collected posts along with the authenticated user's LinkedIn profile to identify viral characteristics and generates a tailored LinkedIn post draft and an image prompt.

Code Node (Prepare Output): Organizes the output including the post text, image prompt, trending topic, and a summary of viral patterns.

Google Gemini Image Generation HTTP Node: Sends the generated image prompt to Google Gemini API to create a professional, tech-inspired image.

Image Upload HTTP Node: Uploads the generated image to freeimage.host and returns the hosted image URL.

Merge Node: Combines AI post content and image hosting response.

Telegram Node: Outputs the final result including the draft post, image link Send it to the Telegram.

Output

At the end, you get a crafted LinkedIn post draft aimed at maximizing engagement about a trending AI topic relevant to your professional identity. Along with this, you receive a prompt-generated, tech-focused image ready to accompany your post with a publicly accessible image URL for easy sharing.

Notes

  1. Make sure your API keys are properly set in the workflow to avoid errors.
  2. The post generated strictly avoids personal narrations and focuses on news, facts, and industry insights.
  3. Adjust the topic list in the date filter code node as needed to reflect current areas of interest.
  4. Since the generated content respects your LinkedIn profile tone, ensure your profile data is accurate and up to date.
  5. The image prompt aims for a clean, modern aesthetic but you can customize it further based on your branding needs.

Want to showcase your own workflows?

Become a Needle workflow partner and turn your expertise into recurring revenue.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .