Chrome Extension That Drafts LinkedIn Posts with AI

Right-click any text on the web, get an AI-drafted LinkedIn post version of it.

content-creatorbeginner#linkedin#ai#content
PlugThis prompt
Build a Chrome extension called "LinkedIn Post Drafter" that converts highlighted text into LinkedIn-ready posts using AI. The extension should: (1) add a context menu (right-click) item called "Draft as LinkedIn post" that appears when the user has selected text, (2) when clicked, send the selected text to OpenAI GPT-4 with a prompt to convert it into a LinkedIn post (clear hook, structured body, soft CTA, appropriate length 800-1200 chars, professional tone, no hashtags unless relevant), (3) display the drafted post in a popup with two buttons: "Copy" and "Open LinkedIn" (which opens linkedin.com/feed/ in a new tab with the draft pre-filled in the post composer if possible). Save the user's OpenAI API key in chrome.storage with an options page to enter it. Permissions: contextMenus, storage, activeTab. Host permissions: https://api.openai.com/*. Manifest V3.

What this extension does

Converts highlighted text on any webpage into a polished LinkedIn post draft using AI. Click "Draft as LinkedIn post" from the right-click menu, get an editable post in a popup, copy or open LinkedIn directly.

How it works

The service worker registers a context menu item that activates on text selection. On click, it sends the selection to GPT-4 with a LinkedIn-specific prompt and displays the result in a popup window. The user's OpenAI key is stored locally.

Permissions used: contextMenus, storage, activeTab

Host permissions: https://api.openai.com/*

Who builds this

For founders, creators, and B2B operators who post on LinkedIn regularly and want to repurpose content (article excerpts, tweets, blog posts) into LinkedIn-native formats fast.

How to build it in 3 minutes

  1. Sign in to PlugThis and open the chat input.
  2. Copy the prompt above and paste it into the chat.
  3. PlugThis generates the full Manifest V3 extension in 60-90 seconds.
  4. Download the zip, extract it, and load it via chrome://extensions developer mode.

Build it now, free.

Paste the prompt above into PlugThis and ship your extension in 3 minutes.