WebGeeksMedia – AI Semantic Internal Links Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
AI Semantic Internal Links suggests internal links inside the WordPress editor based on what a passage means, beyond plain keyword overlap. Each post becomes a 768-dimensional vector embedding (Google Vertex AI text-embedding-005), the vectors live in your own Pinecone index, and similarity search finds the posts that best match each phrase.
The plugin also exposes a Related Posts function, ilsej_get_related_posts(), that a theme can call to show related posts chosen by meaning instead of shared tags.
How it works
- Indexing: each post’s title and a short extract of its text are turned into a vector by Google Vertex AI and stored in Pinecone with the post’s title, URL, date, primary category, tags and post type.
- Suggestions: in the editor, Bulk Auto Suggestion asks an extraction model (Claude or OpenAI) to pick linkable phrases from the post, then finds the closest indexed posts for each phrase. Anchor mode skips the extraction model and searches for the text you selected.
- Editor UI: suggestions appear in a sidebar (Gutenberg) or a panel (Classic Editor). One click inserts the link.
- Background sync: WP-Cron updates the index when a post is published, updated, unpublished or deleted.
Features
- Suggestions by meaning: finds topically related posts even when they share no keywords, tags or categories.
- Both editors: Classic Editor (TinyMCE) and the block editor (Gutenberg).
- Anchor checks: drops suggestions whose anchor names a brand, product or identifier the target post never mentions, and generic one-word anchors that do not match the target.
- Related Posts function:
ilsej_get_related_posts()returns related posts through a Pinecone query by post ID, cached per post. - Index status: a live “X of Y posts indexed” bar on the Articles Indexing page.
- Filters: limit suggestions by category, tag, post type or age; exclude whole categories or tags in Settings.
- Relevance threshold: a minimum similarity score hides weak matches.
- Duplicate filter: hides suggestions for URLs already linked in the post.
- Primary and fallback extraction provider: choose Claude or OpenAI as the primary, the other (or none) as the fallback.
- Encrypted API keys: stored with AES-256-CBC, keyed to your site’s salts.
- Rate limiting and retries: a rate limiter for indexing requests and retries with exponential backoff.
- Bulk indexing: index an existing archive in batches with progress tracking.
What you need
- A Pinecone account and index (768 dimensions, cosine metric).
- A Google Cloud service account with Vertex AI enabled, for embeddings.
- An Anthropic API key, an OpenAI API key, or both, for phrase extraction.
Each service bills you directly under your own account. The plugin adds no fees of its own.
Credits
AI Semantic Internal Links is based on the original AI-powered internal linking plugin by Vahan Petrosyan, published by Search Engine Journal under the GPL-2.0-or-later license. Thank you to Vahan for the original design and code.
External services
This plugin connects to the four third-party services below. It sends nothing to any of them until you enter that service’s credentials in Internal Linking > Settings. Each request goes from your server to the service, never from the visitor’s browser.
Google Vertex AI (Google Cloud)
Used to turn text into vector embeddings.
- What is sent: when a post is indexed, its title and a short extract (the SEO meta description if Yoast SEO is active, the excerpt, the first paragraph, each H2 heading with the paragraph after it, and the last sentence); short phrases with their surrounding sentence when an editor asks for suggestions; the selected text in anchor mode; and any search text your theme passes to
ilsej_get_embeddings(). To authenticate, the plugin signs a token request with your service account key and sends it to Google’s OAuth endpoint; it also does this once when you save the key, to check it. - When: on bulk indexing, when a post is published or updated (through WP-Cron), when an editor asks for suggestions, and when your theme calls the embedding or search functions.
- Endpoints:
https://oauth2.googleapis.com/tokenandhttps://<region>-aiplatform.googleapis.com/. - Google Cloud terms: https://cloud.google.com/terms
- Google Cloud Privacy Notice: https://cloud.google.com/terms/cloud-privacy-notice
Pinecone
Used to store the vectors and search them.
- What is sent: each indexed post’s vector, its post ID, and metadata (title, URL, publish date and year, primary category, tags, post type); search vectors and filters when suggestions or related posts are requested; delete requests when a post is unpublished, deleted or leaves an indexed post type. When you save your API key, the plugin checks it against Pinecone’s index list, and the Articles Indexing page reads your index’s vector count from its
describe_index_statsendpoint. - When: on indexing, on post updates and deletions, when an editor asks for suggestions, and when your theme calls
ilsej_get_related_posts()(results are cached). - Endpoints: your index host (
https://<your-index>.svc.<region>.pinecone.io) andhttps://api.pinecone.io/. - Pinecone terms of service: https://www.pinecone.io/legal/
- Pinecone privacy policy: https://www.pinecone.io/privacy/
Anthropic (Claude)
Used to extract linkable phrases from a post when Claude is the primary or fallback extraction provider.
- What is sent: the post’s text with formatting reduced to basic structural tags (headings, paragraphs, lists, tables, quotes, links and emphasis; scripts, styles, images and attributes are removed), plus the extraction instructions. When you save your API key, the plugin checks it against Anthropic’s model list.
- When: only when an editor clicks Bulk Auto Suggestion in the editor and Claude is the primary provider, or Claude is the fallback and the primary failed.
- Endpoints:
https://api.anthropic.com/v1/messagesandhttps://api.anthropic.com/v1/models. - Anthropic commercial terms: https://www.anthropic.com/legal/commercial-terms
- Anthropic privacy policy: https://www.anthropic.com/legal/privacy
OpenAI
Used to extract linkable phrases from a post when OpenAI is the primary or fallback extraction provider.
- What is sent: the same reduced post text and extraction instructions as above. When you save your API key, the plugin checks it against OpenAI’s model list.
- When: only when an editor clicks Bulk Auto Suggestion and OpenAI is the primary provider, or OpenAI is the fallback and the primary failed.
- Endpoints:
https://api.openai.com/v1/chat/completionsandhttps://api.openai.com/v1/models. - OpenAI terms of use: https://openai.com/policies/terms-of-use/
- OpenAI privacy policy: https://openai.com/policies/privacy-policy/
About the fallback provider
When a fallback provider is set and the primary fails (no key, an error, a timeout, a refusal or an unusable answer), the same post text is sent to the fallback provider as well. Set the fallback to “None” if a post should only ever reach one extraction provider.
Screenshots
No screenshots provided
