| 开发者 | |
|---|---|
| 更新时间 | 2026年11月4日 09:11 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
[gecx_agent_button] shortcode or the launcher block.[gecx_suggested_prompts] shortcode or block./wp-content/plugins/ directory, then activate the plugin through the 'Plugins' screen in WordPress.Yes. It adds an AI chatbot to your WooCommerce storefront that acts as a shopping assistant: it answers questions about your products and store policies, compares products, checks stock, adds items to the cart and answers order status questions. It needs WooCommerce and does not work on WordPress sites without it.
Yes. The agent runs on Google Cloud's Gemini Enterprise for CX service, which is built on Google's Gemini models. You do not need your own Gemini or OpenAI API key; the plugin connects your store to the service with your Google account.
Not yet. Back-in-stock alerts are planned for a future release of the service.
Access is currently by invitation. You can install the plugin without it, but connecting a store and linking an agent needs a Google account that has been given access.
Only the chat widget script from www.gstatic.com, and only on storefronts with a linked, enabled agent. The widget stylesheet ships with the plugin. See 3rd Party Services above.
The store URL and admin tokens during setup, and shoppers' chat messages and viewed products while they chat. The 3rd Party Services section above lists exactly what is sent and when.
With the Top navigation menu placement, the launcher joins your header menu and your theme's mobile menu, and moves beside the menu (hamburger) button whenever your theme shows one. If it cannot find a place on screen, it appears as a floating button instead.
If it lands in the wrong menu, choose one under Launcher Placement > Menu. Menus built with page builders such as Elementor appear there too. To place it yourself, choose Manual and add the [gecx_agent_button] shortcode or the Gemini Enterprise for CX Launcher block where you want it, for example in a header template.
Themes that replace page content without a full page load can call window.gecxInit() afterwards. The plugin also watches for content added after the page loads.
The chat widget's colors, fonts and branding come from your agent's settings in the Gemini Enterprise for CX console, not from your WordPress theme. The widget applies that branding itself.
The floating button moves up to clear bars your theme fixes to the bottom of the screen, and small widgets in the same corner, such as chat bubbles and store badges. Custom CSS that sets the button container's bottom with !important prevents this. To add more space, set the --gecx-floating-extra-offset CSS variable, for example :root { --gecx-floating-extra-offset: 24px; }.
Yes. The launcher scripts are kept out of the JavaScript delay features of WP Rocket, LiteSpeed Cache and Cloudflare Rocket Loader automatically. With other optimization plugins, exclude storefront.js, gstatic.com/gecx/ and gecxStorefrontConfig from delaying. To opt out of the automatic exclusions, return false from the gecx_exclude_from_js_delay filter.
AMP pages cannot run the chat widget, so the plugin outputs nothing on them. Headless storefronts served from a different origin are not supported, because the plugin only hands a shopper's session credentials to pages on the store's own origin. The launcher and widget load in the page footer, so custom page templates must call wp_footer(), as WordPress requires.
After the agent changes the cart, the plugin refreshes WooCommerce cart fragments, updates the WooCommerce Blocks cart data store, and dispatches wc-blocks_added_to_cart or wc-blocks_removed_from_cart. Themes and side-cart plugins that need more can listen for the gecx:cart-updated event on document.body or use the filters documented in the developer notes.
/wp-json/gecx/v1/*, /wp-json/wc/v3/*, and /wp-json/wc/store/v1/*.ResizeObserver and attribute/removal observers so the offset re-measures when a widget resizes, appears, or is removed, and keeping the bottom-bar lift while the chat panel is open.Cart-Token cookie bridge and POST /wp-json/gecx/v1/session, gate POST /wp-json/gecx/v1/refresh-token with the same method-override, no-store, and CORS checks as /wp-json/gecx/v1/auth-context, and keep an already-bound session in the linked project over a session annotation from outside it.[data-elementor-type="header"], .elementor-location-header) and Max Mega Menu (ul.mega-menu, ul.max-mega-menu, .mega-toggle-animated) headers, place the mobile header launcher on its own centered row when the hamburger column is too narrow, and lift corner fallback launchers above fixed third-party chat bubbles (Podium, Intercom, Tidio, Crisp, HubSpot, Gorgias, Zendesk).gecx_purge_page_caches after saving a setting that changes storefront pages.gecx/v1/cart-session REST route, which accepts only a request carrying the store's nonce.vendor/, under the Google\Gemini_Enterprise_For_CX namespace. The global GECX_* classes are removed without aliases, so code that referenced them must use the namespaced classes. No behavior changes.build/scripts/ instead of assets/js/ (unminified when SCRIPT_DEBUG is on), with dependencies and versions taken from the generated asset files. Script handles are unchanged; if a caching or optimization plugin excludes assets/js/storefront.js by path, exclude build/scripts/storefront/ instead.languages/ folder and the Domain Path header.