Commently is a smart Chrome Extension that supercharges your LinkedIn networking. It seamlessly integrates into the LinkedIn feed, allowing users to generate thoughtful, context-aware, and tone-specific comments instantly using Google Gemini.
Unlike generic comment generators, Commently utilizes a stateful memory backend, ensuring that the AI remembers your recent interactions to avoid repetitive phrasing and maintain a consistent personal brand voice.
| Seamless Integration | Smart Generation UI |
|---|---|
![]() |
![]() |
| "Commently" button injected natively into posts | Context-aware generation with tone control |
| n8n Backend Workflow | Result in Action |
|---|---|
![]() |
![]() |
| Agentic Workflow with Memory Buffer | Human-like engagement |
- ⚡ One-Click Integration: Injects a "Generate" button directly into LinkedIn's DOM, appearing natively alongside standard interaction buttons.
- 🧠 Contextual Intelligence: Analyzes the full text of the LinkedIn post (including captions and shared articles) to generate relevant insights, not just generic praise.
- 🎨 Tone Selection: Choose from multiple personas: Professional, Funny, Supportive, Inquisitive, or Friendly.
- 📝 Custom Hints: Guide the AI with specific instructions (e.g., "Ask about their tech stack" or "Congratulate them on the new role").
- 🤖 Agentic Memory: Powered by an n8n AI Agent with a sliding window memory buffer. The AI remembers the last 3 comments you generated to ensure linguistic variety.
This project uses a hybrid architecture combining a client-side browser extension with a server-side low-code orchestration engine.
- Manifest V3: Modern, secure extension architecture.
- Content Scripts (
content.js): UsesMutationObserverto detect new posts in the infinite scroll feed and dynamically inject the React-compatible UI. Optimized with debouncing to ensure high performance. - DOM Manipulation: robustly handles LinkedIn's complex nested DOM structure and React-controlled input fields to extract post content and insert responses programmatically.
- Orchestration: n8n (Self-hosted/Cloud).
- LLM: Google Gemini Pro (via PaLM API).
- Logic:
- Webhook: Receives Post Content + User Tone + Hints.
- AI Agent: Processes input using a specialized System Prompt designed for human-like brevity and casual professional tone.
- Memory: Checks the
Simple Memorynode (Keyed by User ID) to recall recent outputs. - Structured Output Parser: Enforces strictly formatted JSON responses to prevent hallucinations.
- Clone this repository.
- Important: Copy
extension/env.example.jstoextension/env.js. - Open
extension/env.jsand paste your n8n Production Webhook URL. - Open Chrome and navigate to
chrome://extensions/. - Toggle Developer mode (top right).
- Click Load unpacked and select the folder
extension.
- Import the workflow file
workflow/AWS n8n comment automation.jsoninto your n8n instance. - Configure your Google Gemini API Credential in the "Google Gemini Chat Model" node.
- Activate the workflow.
- Copy the Production Webhook URL.
- Paste this URL into the Chrome Extension's Options page.
- Refresh your LinkedIn feed.
- Look for the Commently Logo (bulb icon) on any post.
- Click the icon to open the generator.
- (Optional) Select a Tone or add a Hint.
- Click Generate.
- Review the comment, click Copy or Comment to post!
- JavaScript (ES6+) - Frontend Logic
- Chrome Extension API - Browser Integration (Manifest V3)
- n8n - Backend Workflow Automation
- LangChain - AI Agent & Memory Management
- Google Gemini - Large Language Model
- HTML5/CSS3 - UI Components
This project is licensed under the MIT License - see the LICENSE file for details.



