{"id":11593,"date":"2026-07-05T04:06:03","date_gmt":"2026-07-04T20:06:03","guid":{"rendered":"https:\/\/aeosub.com\/legion-ai-connect\/"},"modified":"2026-07-05T04:06:03","modified_gmt":"2026-07-04T20:06:03","slug":"legion-ai-connect","status":"publish","type":"post","link":"https:\/\/aeosub.com\/zh\/legion-ai-connect\/","title":{"rendered":"Legion AI Connect"},"content":{"rendered":"<div class=\"post-img\" style=\"margin-bottom: 25px\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/legion-ai-connect\/assets\/banner-1544x500.png?rev=3596182\" alt=\"Legion AI Connect\" loading=\"lazy\" style=\"width: 100%;height: auto;border-radius: 12px\"><\/div>\n<div class=\"plugin-expert-review\" style=\"border: 1px solid #e2e8f0;border-left: 4px solid #4a3bca;border-radius: 10px;padding: 20px;margin-bottom: 25px;background: #fff;font-family: -apple-system, system-ui, sans-serif\">\n<div style=\"font-weight: bold;font-size: 1.1em;color: #4a3bca;margin-bottom: 10px\">LethaldiranMX Insight<\/div>\n<div style=\"color: #4a5568;font-size: 14px;line-height: 1.6\">\n<div>\n<p>Legion AI Connect introduces a highly sustainable paradigm for WordPress site owners by shifting the financial burden of AI model usage directly to the end-user via a visitor-funded wallet system. By integrating with the external Legion AI service, publishers can deploy interactive chat assistants across Gutenberg, Elementor, or shortcodes without the risk of runaway API bills, while simultaneously capturing a configured profit margin. This operational model effectively transforms AI chat from a cost center into a self-funding, or even profitable, utility for content-heavy websites and niche communities.<\/p>\n<p><strong>Best Fit &amp; Operational Role:<\/strong> This plugin is an ideal fit for digital publishers, documentation portals, and membership sites that want to offer deep, context-aware AI interactions without absorbing the underlying infrastructure costs. It integrates cleanly into the WordPress block editor and Elementor ecosystem, serving as an interactive overlay or inline assistant that leverages local assets to avoid external CDN overhead. Operationally, it solves the classic uncapped API bill problem, making it a viable tool for resource-constrained operators who want to monetize their site&#8217;s proprietary context or documentation.<\/p>\n<p><strong>Potential Limitations &amp; Pitfalls:<\/strong> The primary operational consideration is the friction introduced by the mandatory user-side wallet connection; visitors must have or create a Legion Wallet and authorize the site via OAuth, which will limit casual engagement compared to free, unauthenticated chat solutions. Additionally, because the plugin relies entirely on the external Legion AI infrastructure for authentication, token management, and model routing, any service disruption on their end will render the chat inactive. Site owners must also ensure their privacy policies accurately disclose the data flow to Legion&#8217;s endpoints, including the transmission of visitor messages, tokens, and widget context.<\/p>\n<\/div>\n<\/div><\/div>\n<div class=\"plugin-info-card\" style=\"border: 1px solid #e2e8f0;border-radius: 10px;overflow: hidden;margin-bottom: 30px;font-family: -apple-system, system-ui, sans-serif;background: #fff\">\n<div style=\"padding: 20px;border-bottom: 1px solid #edf2f7;background: #fafafa;display: flex;align-items: flex-start\">\n                <img decoding=\"async\" src=\"https:\/\/ps.w.org\/legion-ai-connect\/assets\/icon-256x256.png?rev=3596182\" alt=\"Legion AI Connect icon\" loading=\"lazy\" style=\"width: 45px;height: 45px;border-radius: 8px;margin-right: 15px\"> <\/p>\n<div style=\"flex: 1;line-height: 1.2\">\n<div style=\"font-weight: bold;font-size: 1.1em;color: #1a202c\">Plugin Specification<\/div>\n<p>                    <small style=\"color: #718096\">WordPress.org Official Data<\/small>\n                <\/div>\n<\/p><\/div>\n<table style=\"width: 100%;border-collapse: collapse;font-size: 14px\">\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;width: 35%;color: #4a5568;background: #fcfcfc\">Developer<\/th>\n<td style=\"padding: 12px 20px;font-weight: 500\"><a href=\"https:\/\/profiles.wordpress.org\/legionai\/\" target=\"_blank\" rel=\"noopener\">legionai<\/a><\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Version<\/th>\n<td style=\"padding: 12px 20px\">v1.0.6<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Active Installs<\/th>\n<td style=\"padding: 12px 20px\">0 +<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Requires \/ Tested<\/th>\n<td style=\"padding: 12px 20px\">6.3 \/ 7.0<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Last Updated<\/th>\n<td style=\"padding: 12px 20px\">2026-07-04 8:03pm GMT<\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Official Link<\/th>\n<td style=\"padding: 12px 20px\"><a href=\"https:\/\/wordpress.org\/plugins\/legion-ai-connect\/\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"text-decoration: none;color: #4a3bca;font-weight: bold\">View Details -&gt;<\/a><\/td>\n<\/tr>\n<\/table><\/div>\n<div class=\"plugin-short-desc\" style=\"margin: 20px 0;padding: 12px 15px;background: #f9fafb;border-left: 4px solid #4a3bca;border-radius: 6px;font-style: italic;color: #4a5568\">Add visitor-funded AI chat to WordPress and keep your configured owner margin on usage.<\/div>\n<p>Legion AI Connect adds an AI chat assistant to a WordPress website. Site owners configure a Legion Client ID, and visitors connect their own Legion Wallet before chatting. Visitors fund their own model usage; site owners keep their configured owner margin.<\/p>\n<p>Legion AI Connect requires the external Legion AI service to provide authorization, wallet billing, and AI model responses. See the External Services section for complete data-flow and policy disclosures.<\/p>\n<p><strong>How it works:<\/strong><\/p>\n<ol>\n<li>Install the plugin and configure a Legion Client ID.<\/li>\n<li>Add the chat using the block editor, Elementor, or the <code>[legion_chat]<\/code> shortcode.<\/li>\n<li>A visitor chooses Connect Wallet and authorizes the site through Legion.<\/li>\n<li>The visitor&#8217;s messages are processed by Legion, and the site owner keeps the app&#8217;s configured owner margin.<\/li>\n<\/ol>\n<p><strong>Features:<\/strong><\/p>\n<ul>\n<li>Gutenberg block named Legion AI Chat<\/li>\n<li>Elementor widget when Elementor is installed<\/li>\n<li><code>[legion_chat]<\/code> shortcode<\/li>\n<li>Compact article-button and inline display modes<\/li>\n<li>Configurable greeting, accent color, position, and theme<\/li>\n<li>Per-widget context IDs and inline pasted context for article-specific chats<\/li>\n<li>Animated thinking indicator while responses are loading<\/li>\n<li>Safe Markdown formatting for assistant responses<\/li>\n<li>Visitor-funded usage without a site-wide AI provider key<\/li>\n<li>Local plugin assets with no third-party JavaScript CDN<\/li>\n<\/ul>\n<p><strong>Requirements:<\/strong><\/p>\n<ul>\n<li>A Legion developer account and app Client ID<\/li>\n<li>WordPress 6.3 or later<\/li>\n<li>PHP 7.4 or later<\/li>\n<\/ul>\n<h3>External Services<\/h3>\n<p>This plugin depends on Legion AI, a service operated by Legion, to authenticate visitors, maintain Legion Wallet balances, route requests to AI model providers, calculate usage, and return AI-generated responses. The plugin does not provide AI responses without this service.<\/p>\n<p>The visitor&#8217;s browser contacts the following Legion endpoints only after the site owner has configured a Client ID and the visitor chooses to connect or use the chat:<\/p>\n<ul>\n<li><code>https:\/\/legion-ai.org\/connect<\/code> for the interactive OAuth authorization page.<\/li>\n<li><code>https:\/\/auth.legion-ai.org<\/code> for OAuth token exchange and token refresh.<\/li>\n<li><code>https:\/\/api.legion-ai.org<\/code> for AI chat requests.<\/li>\n<\/ul>\n<p>Data sent can include the Legion Client ID, OAuth authorization code, access and refresh tokens, visitor chat messages, optional inline widget context, selected context IDs, selected model options, and technical request metadata required to secure, process, meter, and bill the request. Legion may use third-party AI model and infrastructure providers to fulfill requests as described in its policies.<\/p>\n<ul>\n<li><a href=\"https:\/\/legion-ai.org\" rel=\"nofollow ugc noopener\" target=\"_blank\">Legion AI service<\/a><\/li>\n<li><a href=\"https:\/\/legion-ai.org\/terms\" rel=\"nofollow ugc noopener\" target=\"_blank\">Legion Terms of Service<\/a><\/li>\n<li><a href=\"https:\/\/legion-ai.org\/privacy\" rel=\"nofollow ugc noopener\" target=\"_blank\">Legion Privacy Policy<\/a><\/li>\n<\/ul>\n<h3>Privacy<\/h3>\n<p>This plugin does not store visitor chat messages or Legion Wallet tokens in the WordPress database. Inline widget context is scoped to the rendered widget and is not added to persistent Legion knowledge by this plugin. Access and refresh tokens are stored in the visitor&#8217;s browser local storage. Temporary OAuth state and authorization codes are stored in browser session storage.<\/p>\n<p>Site owners should review Legion&#8217;s policies and update their own privacy notice as appropriate for their jurisdiction and use of the service.<\/p>\n<h3>Source Code<\/h3>\n<p>The plugin package includes the human-readable source code, license, package manifest, and Vite build configuration for the bundled Legion JavaScript SDK under <code>source\/legion-sdk\/<\/code>. The minified runtime file built from that source is <code>assets\/legion-sdk.min.js<\/code>.<\/p>\n<p>To rebuild the SDK from the plugin directory, install Node.js 20 or later and run:<\/p>\n<pre><code>cd source\/legion-sdk &amp;&amp; npm install &amp;&amp; npm run build\n<\/code><\/pre>\n<p>The rebuilt browser bundle is written to <code>source\/legion-sdk\/dist\/legion-sdk.min.js<\/code> and can be compared with <code>assets\/legion-sdk.min.js<\/code>.<\/p>\n<div class=\"plugin-editorial-note\" style=\"margin-top: 25px;padding: 12px 15px;background: #f8fafc;border-radius: 6px;color: #64748b;font-size: 13px;line-height: 1.5\">Editorial note: This overview combines WordPress.org official plugin metadata with an AI-assisted LethaldiranMX editorial review. Plugin data should be verified on the official WordPress.org listing before installation.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Add visitor-funded AI chat to WordPress and keep your configured owner margin on usage.<\/p>","protected":false},"author":1,"featured_media":11594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[252],"tags":[550,922,2208,616,2844,555],"class_list":["post-11593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-trends","tag-ai","tag-artificial-intelligence","tag-chat-widget","tag-chatbot","tag-monetization","tag-wordpress-plugin"],"_links":{"self":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/11593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/comments?post=11593"}],"version-history":[{"count":0,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/11593\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media\/11594"}],"wp:attachment":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media?parent=11593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/categories?post=11593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/tags?post=11593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}