| 开发者 | yujitech |
|---|---|
| 更新时间 | 2026年6月5日 10:53 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
external mode. You keep full control over the conversation logic and data flow; the plugin / SDK only handles the 3D avatar rendering, lip-sync, and voice I/O.[yuji_ai_avatar] shortcode for per-page placementyuji-ai-avatar folder to /wp-content/plugins/, or search "Yuji AI Avatar" in Plugins → Add NewYes — and that's the recommended path for production. The bundled chat in this plugin uses our hosted demo LLM to let you try the 3D avatar in minutes, but for real deployments you should switch to the JavaScript SDK in external mode:
npm install @ai-avatar/embed-sdk<AIAvatar token="..." llmMode="external" chatPanel="hidden" /> (React/Vue) or AIAvatar.init({ behavior: { llmMode: 'external' } }) (vanilla JS)userInput event → call your LLM → reply with avatar.replyText(text) or avatar.replyAudio(text, audioUrl)userInput handler and reply with replyText() or replyAudio(). See the npm package documentation for full usage and a runnable example.
npm package docs: https://www.npmjs.com/package/@ai-avatar/embed-sdk.
Check three things:
Origin not in whitelist (fix in console), Missing apiKey (re-paste key).Yes. Uncheck "Site-wide auto-inject" in settings, then add the [yuji_ai_avatar] shortcode to any post or page where you want the avatar.
[yuji_ai_avatar position="bottom-left" theme="dark"] — overrides global settings for that placement.
No. The SDK is enqueued with async strategy and only loaded on pages where the avatar is shown. 3D assets are loaded on demand when the visitor opens the chat.
English and Simplified Chinese out of the box. The widget auto-detects your WordPress site language and follows it. Adding more locales requires translation files (PRs welcome).
Yes. The SDK is registered via wp_enqueue_script, so it works with WP Rocket, W3 Total Cache, LiteSpeed Cache, and CDN providers. No cache exclusion needed.
Only the plugin's own settings option (yuji_ai_avatar_settings). Your AI Avatar account and conversation data on the AI Avatar service remain — manage those at avataraisdk.com.
Yes. The plugin itself is GPLv2 or later. The AI Avatar service it connects to is a separate SaaS with its own terms.
[yuji_ai_avatar] shortcode embeddingwp_enqueue_script loading