Back to Catalog

Generate AI-Powered LinkedIn Posts with Google Gemini and Gen-Imager

Evoort SolutionsEvoort Solutions
23825 views
2/3/2026
Official Page

๐Ÿš€ AI-Powered LinkedIn Post Automation


๐Ÿงฉ How It Works

This workflow automatically generates LinkedIn posts based on a user-submitted topic, including both content creation and image generation, then publishes the post to LinkedIn. Ideal for marketers, content creators, or businesses looking to streamline their social media activity, without the need for manual post creation.

High-Level Workflow:

  1. Trigger: The workflow is triggered when a user submits a form with a topic for the LinkedIn post.
  2. Data Mapping: The topic is mapped and prepared for the AI model.
  3. AI Content Generation: Calls the Google Gemini AI model to generate engaging post content and a visual image prompt.
  4. Image Creation: Sends the image prompt to the external API, gen-imager, to generate a professional image matching the topic.
  5. Post Creation: Publishes the text and image to LinkedIn, automatically updating the user's feed.

โš™๏ธ Set Up Steps (Quick Overview)

๐Ÿ• Estimated Setup Time: ~10โ€“20 minutes

  1. Connect Google Gemini: Set up your Google Gemini API credentials to interact with the AI model for content creation.
  2. Set Up External Image API: Configure the external image generation API (gen-imager API) for visual creation based on the post prompt.
  3. Connect LinkedIn: Set up OAuth2 credentials to authenticate your LinkedIn account and allow publishing posts.
  4. Form Submission Setup: Create a simple web form for users to submit the topic for LinkedIn posts.
  5. Activate the Workflow: Once everything is connected, activate the workflow. It will trigger automatically upon receiving form submissions.

๐Ÿ’ก Important Notes:

  • The flow uses Google Gemini (PaLM) for generating content based on the user's topic.
  • Text to Image: The image generation process involves creating a professional, LinkedIn-appropriate image based on the postโ€™s topic using the gen-imager API.
  • You can customize the visual elements of the posts and adjust the tone of the generated content based on preferences.

๐Ÿ›  Detailed Node Breakdown:

  1. On Form Submission

    • Trigger: Captures the user-submitted topic and initializes the workflow.
    • Action: Start the process by gathering the topic information.
  2. Mapper (Field Mapping)

    • Action: Maps the captured topic to a variable that is passed along for content generation.
  3. AI Agent (Content Generation)

    • Action: Calls Google Gemini to generate professional LinkedIn post content and an image prompt based on the submitted topic.
    • Key: Outputs content in a structured form โ€” post text and image prompt.
  4. Google Gemini Chat Model

    • Action: AI model that generates actionable insights, engaging copy, and an image prompt for LinkedIn post.
  5. Normalizer (Data Cleanup)

    • Action: Cleans the output from the AI model to ensure the content and image prompt are correctly formatted for use in the next steps.
  6. Text to Image (Image Generation)

    • Action: Sends the image prompt to the gen-imager API, which returns a custom image based on the post's topic.
  7. Decoder (Base64 Decoding)

    • Action: Decodes the image from base64 format for easier uploading to LinkedIn.
  8. LinkedIn (Post Creation)

    • Action: Publishes the generated text and image to LinkedIn, automatically creating a polished post for the userโ€™s feed.

โฑ Execution Time Breakdown:

  • Total Estimated Execution Time: ~15โ€“40 seconds per workflow run.
    • On Form Submission: Instant (Trigger)
    • Mapper (Field Mapping): ~1โ€“2 seconds
    • AI Content Generation: ~5โ€“10 seconds (depending on server load)
    • Text to Image: ~5โ€“15 seconds (depends on external API)
    • LinkedIn Post Creation: ~2โ€“5 seconds

๐Ÿš€ Ready to Get Started?

Letโ€™s get you started with automating your LinkedIn posts!
Create your free n8n account and set up the workflow using this link.


๐Ÿ“ Notes & Customizations

  • Form Fields: Customize the form to gather more specific information for the LinkedIn posts (like audience targeting, post category, etc.).
  • Image API Customization: Adjust the image generation prompt to fit your brandโ€™s style, or change the color palette as needed.
  • Content Tone: The tone can be adjusted by modifying the system message sent to Google Gemini for content generation.

Generate AI-Powered LinkedIn Posts with Google Gemini and Gen-Imager

This n8n workflow automates the creation and posting of engaging LinkedIn content. It leverages Google Gemini to generate compelling post text and then uses an external image generation service (Gen-Imager) to create a relevant visual, before finally publishing the complete post to LinkedIn.

What it does

This workflow streamlines your content creation process by:

  1. Receiving Input: It starts by listening for a form submission, which provides the initial prompt or topic for the LinkedIn post.
  2. Generating Post Content with AI: It sends the input to a Google Gemini Chat Model, which generates the main text content for the LinkedIn post.
  3. Preparing Data for Image Generation: It processes the AI-generated text to extract relevant keywords or phrases suitable for an image generation API.
  4. Generating an Image: It makes an HTTP request to a Gen-Imager API (or similar image generation service) to create a visual based on the extracted keywords.
  5. Preparing Final Post: It combines the AI-generated text and the URL of the newly created image into a structured format for LinkedIn.
  6. Publishing to LinkedIn: Finally, it posts the complete message, including text and image, to your LinkedIn profile.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • Google Gemini API Key: Access to the Google Gemini API for content generation.
  • Gen-Imager API Key/Endpoint: An API key and endpoint for an image generation service (e.g., Gen-Imager, DALL-E, Midjourney, etc.). The workflow is configured for a generic HTTP Request node, so you'll need to adapt it to your chosen service.
  • LinkedIn Account: A LinkedIn account with appropriate permissions to post.
  • LinkedIn Credential in n8n: A configured LinkedIn credential in your n8n instance.

Setup/Usage

  1. Import the Workflow: Import the provided JSON into your n8n instance.
  2. Configure Credentials:
    • Google Gemini Chat Model: Configure your Google Gemini API key within the "Google Gemini Chat Model" node.
    • LinkedIn: Set up your LinkedIn credential in n8n and select it in the "LinkedIn" node.
  3. Configure Gen-Imager (HTTP Request):
    • Open the "HTTP Request" node.
    • Update the URL, Method, Headers (for API key authentication), and Body to match the requirements of your chosen image generation API.
    • Ensure the node correctly extracts the image URL from the API's response.
  4. Configure n8n Form Trigger:
    • Activate the "n8n Form Trigger" node.
    • Copy the webhook URL provided by the node. This URL will be used to trigger the workflow.
    • Set up a form (e.g., Google Forms, Typeform, or a custom application) to send data to this webhook URL with the prompt for your LinkedIn post.
  5. Test the Workflow:
    • Manually trigger the "n8n Form Trigger" node with some sample input to ensure all steps execute correctly.
    • Verify that a post is created on your LinkedIn profile with the generated text and image.
  6. Activate the Workflow: Once configured and tested, activate the workflow to enable automatic post generation.

Related Templates

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitorโ€™s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger โ€” Manually start the workflow or schedule it to run periodically. Input Setup โ€” Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) โ€” Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring โ€” Clean and convert GPT output into JSON format. Data Storage (Google Sheets) โ€” Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the โ€œSet Input Fieldsโ€ node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors โ†’ Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection โ†’ Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report โ†’ Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization โ†’ Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs โ†’ Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting Itโ€™s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Dynamic Hubspot lead routing with GPT-4 and Airtable sales team distribution

AI Agent for Dynamic Lead Distribution (HubSpot + Airtable) ๐Ÿง  AI-Powered Lead Routing and Sales Team Distribution This intelligent n8n workflow automates end-to-end lead qualification and allocation by integrating HubSpot, Airtable, OpenAI, Gmail, and Slack. The system ensures that every new lead is instantly analyzed, scored, and routed to the best-fit sales representative โ€” all powered by AI logic, sir. --- ๐Ÿ’ก Key Advantages โšก Real-Time Lead Routing Automatically assigns new leads from HubSpot to the most relevant sales rep based on region, capacity, and expertise. ๐Ÿง  AI Qualification Engine An OpenAI-powered Agent evaluates the leadโ€™s industry, region, and needs to generate a persona summary and routing rationale. ๐Ÿ“Š Centralized Tracking in Airtable Every lead is logged and updated in Airtable with AI insights, rep details, and allocation status for full transparency. ๐Ÿ’ฌ Instant Notifications Slack and Gmail integrations alert the assigned rep immediately with full lead details and AI-generated notes. ๐Ÿ” Seamless CRM Sync Updates the original HubSpot record with lead persona, routing info, and timeline notes for audit-ready history, sir. --- โš™๏ธ How It Works HubSpot Trigger โ€“ Captures a new lead as soon as itโ€™s created in HubSpot. Fetch Contact Data โ€“ Retrieves all relevant fields like name, company, and industry. Clean & Format Data โ€“ A Code node standardizes and structures the data for consistency. Airtable Record Creation โ€“ Logs the lead data into the โ€œLeadsโ€ table for centralized tracking. AI Agent Qualification โ€“ The AI analyzes the lead using the TeamDatabase (Airtable) to find the ideal rep. Record Update โ€“ Updates the same Airtable record with the assigned team and AI persona summary. Slack Notification โ€“ Sends a real-time message tagging the rep with lead info. Gmail Notification โ€“ Sends a personalized handoff email with context and follow-up actions. HubSpot Sync โ€“ Updates the original contact in HubSpot with the assignment details and AI rationale, sir. --- ๐Ÿ› ๏ธ Setup Steps Trigger Node: HubSpot โ†’ Detect new leads. HubSpot Node: Retrieve complete lead details. Code Node: Clean and normalize data. Airtable Node: Log lead info in the โ€œLeadsโ€ table. AI Agent Node: Process lead and match with sales team. Slack Node: Notify the designated representative. Gmail Node: Email the rep with details. HubSpot Node: Update CRM with AI summary and allocation status, sir. --- ๐Ÿ” Credentials Required HubSpot OAuth2 API โ€“ To fetch and update leads. Airtable Personal Access Token โ€“ To store and update lead data. OpenAI API โ€“ To power the AI qualification and matching logic. Slack OAuth2 โ€“ For sending team notifications. Gmail OAuth2 โ€“ For automatic email alerts to assigned reps, sir. --- ๐Ÿ‘ค Ideal For Sales Operations and RevOps teams managing multiple regions B2B SaaS and enterprise teams handling large lead volumes Marketing teams requiring AI-driven, bias-free lead assignment Organizations optimizing CRM efficiency with automation, sir --- ๐Ÿ’ฌ Bonus Tip You can easily extend this workflow by adding lead scoring logic, language translation for follow-ups, or Salesforce integration. The entire system is modular โ€” perfect for scaling across global sales teams, sir.

MANISH KUMARBy MANISH KUMAR
113

Create personalized email outreach with AI, Telegram bot & website scraping

Demo Personalized Email This n8n workflow is built for AI and automation agencies to promote their workflows through an interactive demo that prospects can try themselves. The featured system is a deep personalized email demo. --- ๐Ÿ”„ How It Works Prospect Interaction A prospect starts the demo via Telegram. The Telegram bot (created with BotFather) connects directly to your n8n instance. Demo Guidance The RAG agent and instructor guide the user step-by-step through the demo. Instructions and responses are dynamically generated based on user input. Workflow Execution When the user triggers an action (e.g., testing the email demo), n8n runs the workflow. The workflow collects website data using Crawl4AI or standard HTTP requests. Email Demo The system personalizes and sends a demo email through SparkPost, showing the automationโ€™s capability. Logging and Control Each user interaction is logged in your database using their name and id. The workflow checks limits to prevent misuse or spam. Error Handling If a low-CPU scraping method fails, the workflow automatically escalates to a higher-CPU method. โš™๏ธ Requirements Before setting up, make sure you have the following: n8n โ€” Automation platform to run the workflow Docker โ€” Required to run Crawl4AI Crawl4AI โ€” For intelligent website crawling Telegram Account โ€” To create your Telegram bot via BotFather SparkPost Account โ€” To send personalized demo emails A database (e.g., PostgreSQL, MySQL, or SQLite) โ€” To store log data such as user name and ID ๐Ÿš€ Features Telegram interface using the BotFather API Instructor and RAG agent to guide prospects through the demo Flow generation limits per user ID to prevent abuse Low-cost yet powerful web scraping, escalating from low- to high-CPU flows if earlier ones fail --- ๐Ÿ’ก Development Ideas Replace the RAG logic with your own query-answering and guidance method Remove the flow limit if youโ€™re confident the demo canโ€™t be misused Swap the personalized email demo with any other workflow you want to showcase --- ๐Ÿง  Technical Notes Telegram bot created with BotFather Website crawl process: Extract sub-links via /sitemap.xml, sitemap_index.xml, or standard HTTP requests Fall back to Crawl4AI if normal requests fail Fetch sub-link content via HTTPS or Crawl4AI as backup SparkPost used for sending demo emails --- โš™๏ธ Setup Instructions Create a Telegram Bot Use BotFather on Telegram to create your bot and get the API token. This token will be used to connect your n8n workflow to Telegram. Create a Log Data Table In your database, create a table to store user logs. The table must include at least the following columns: name โ€” to store the userโ€™s name or Telegram username. id โ€” to store the userโ€™s unique identifier. Install Crawl4AI with Docker Follow the installation guide from the official repository: ๐Ÿ‘‰ https://github.com/unclecode/crawl4ai Crawl4AI will handle website crawling and content extraction in your workflow. --- ๐Ÿ“ฆ Notes This setup is optimized for low cost, easy scalability, and real-time interaction with prospects. You can customize each component โ€” Telegram bot behavior, RAG logic, scraping strategy, and email workflow โ€” to fit your agencyโ€™s demo needs. ๐Ÿ‘‰ You can try the live demo here: @emaildemobot ---

Michael A PutraBy Michael A Putra
474