A Chrome extension for saving web pages and articles directly to your PromptlyAgent knowledge system. Extract content, add annotations, tag pages, and build your personal knowledge base effortlessly.
Clip any web content directly to PromptlyAgent knowledge

- Smart Content Extraction: Uses Mozilla's Readability library to extract clean, readable content from web pages
- Text Selection Support: Save just the text you select or the entire page
- Custom Annotations: Add personal notes and comments to saved articles
- Tagging System: Organize knowledge with tags
- Privacy Control: Choose between private and public documents
- Screenshot Capture: Optionally capture page screenshots
- TTL Support: Set expiration dates for temporary documents
- Secure Authentication: Uses Laravel Sanctum API tokens
-
Clone or download this extension:
git clone git@github.com:promptlyagentai/chrome-extension.git cd chrome-extension -
Open Chrome Extensions:
- Navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Navigate to
-
Load the extension:
- Click "Load unpacked"
- Select the
chrome-extension/directory - The extension icon should appear in your toolbar
The extension will be available on the Chrome Web Store in the future.
-
Navigate to your PromptlyAgent settings:
- Open your PromptlyAgent application
- Go to Settings → API Tokens
-
Create a new token:
- Enter a name (e.g., "Chrome Extension")
- Select the
knowledge:createscope - Click "Generate Token"
- Copy the token (you won't see it again!)
-
Click the extension icon in your Chrome toolbar
-
Enter configuration:
- API URL: Your PromptlyAgent application URL (e.g.,
https://your-domain.com) - API Token: Paste the token you copied
- API URL: Your PromptlyAgent application URL (e.g.,
-
Save Configuration:
- Click "Save Configuration"
- The extension will validate your token
- Once validated, you're ready to save pages!
-
Browse to any article or page you want to save
-
Click the extension icon
-
Review and edit the extracted information:
- Title: Pre-filled from page, editable
- Description: From meta tags, editable
- Custom Notes: Add your thoughts and annotations
- Tags: Organize with comma-separated tags
- Privacy: Choose Private or Public
- Screenshot: Check to capture page screenshot
- TTL: Optionally set expiration time
-
Click "Save to Knowledge"
-
Success! The page is now in your knowledge system
-
Select text on any webpage
-
Click the extension icon
-
The selected text will be used as the primary content
-
Edit and save as usual
The extension uses Mozilla's Readability library to extract clean content from web pages:
- Removes ads, navigation, and clutter
- Preserves article structure
- Extracts metadata (title, author, date)
Organize your knowledge with tags:
- Enter tags separated by commas:
technology, programming, laravel - Tags are automatically created if they don't exist
- Use consistent tags for better organization
- Private: Only you can see this knowledge
- Public: Can be shared or made visible to others (based on your PromptlyAgent settings)
Set automatic expiration for temporary documents:
- 1 day: Quick references
- 1 week: Short-term research
- 1 month: Project-specific content
- Custom: Choose your own duration
- Keep forever: No expiration (default)
Optionally capture page screenshots:
- Captures visible portion of the page
- Stored with the knowledge document
- Useful for design references or visual content
Future feature: Configurable keyboard shortcuts for quick saving
Problem: Content preview shows "No content extracted"
Solutions:
- Refresh the page and try again
- Some pages block content extraction (JavaScript-heavy SPAs)
- Try selecting text manually and saving the selection
Problem: "Invalid token" error when configuring
Solutions:
- Verify the token has
knowledge:createscope - Check that your API URL is correct (include
https://) - Ensure your PromptlyAgent instance is running and accessible
- Try regenerating the token
Problem: "CORS policy" errors in browser console
Solutions:
- Ensure CORS is configured in your PromptlyAgent instance
- Check
config/cors.phpincludes Chrome extension patterns - Restart your application after CORS changes
Problem: "Permission denied" when saving
Solutions:
- Token must have
knowledge:createscope - Regenerate token with correct permissions
- Check token hasn't expired
Problem: Validation error about content length
Solutions:
- The API has a 1MB limit for text content
- Try saving selected portions instead of entire page
- Very long articles may need to be split
chrome-extension/
├── manifest.json # Extension manifest (Manifest V3)
├── popup.html # Popup interface
├── popup.js # Popup logic
├── popup.css # Styling
├── background.js # Service worker
├── content-script.js # Content extraction
├── screenshot.js # Screenshot capture
├── api-client.js # API communication
├── storage.js # Chrome storage wrapper
├── lib/
│ ├── readability.js # Mozilla Readability library
│ └── turndown.js # HTML to Markdown converter
└── icons/
├── icon-16.png
├── icon-32.png
├── icon-48.png
└── icon-128.png
-
Optimize assets:
# Minify JavaScript (optional) # Optimize images # Remove development files
-
Create ZIP for distribution:
cd chrome-extension zip -r promptlyagent-clipper.zip . -x "*.git*" -x "README.md"
-
Load in Developer Mode (see Installation)
-
Test various pages:
- News articles
- Blog posts
- Documentation pages
- Single-page applications
-
Test text selection:
- Select partial text
- Save selection
-
Test all form options:
- Tags, privacy, TTL
- Screenshots
- Custom notes
- Chrome: Fully supported (v88+)
- Edge: Supported (Chromium-based)
- Brave: Supported (Chromium-based)
- Firefox: Not yet supported (needs manifest conversion)
- API tokens are stored securely in Chrome's encrypted storage
- Content is sent directly to your PromptlyAgent instance
- No third-party services are used
- No tracking or analytics
For issues or questions:
- Check this README for troubleshooting tips
- Review browser console for error messages
- Check PromptlyAgent logs on the server
- Open an issue in the project repository
This extension is part of the PromptlyAgent project and shares the same license.
- Smart content extraction with Readability
- Text selection support
- Custom notes and annotations
- Tagging system
- Privacy controls
- Screenshot capture
- TTL support
- Secure API token authentication