PointerDev AI Chat

外掛說明

PointerDev AI Chat provides:

  • Admin settings page under Settings > PointerDev AI Chat
  • Frontend shortcode [pointerdevai_chat] that loads the widget bundle
  • Guest mode and login-required mode support
  • Server-side end-user token mint endpoint for logged-in WordPress users
  • Runtime session token lifecycle support for server-side AJAX proxy flows (exchange, refresh, revoke)

The widget JavaScript is bundled locally with this plugin. No JavaScript, CSS, or image assets are loaded from a CDN.

External Service

This plugin connects your WordPress site to the PointerDev AI service. A PointerDev AI account, project ID, publishable key, and, for login-required mode, secret key are required.

When visitors use the chat widget, the plugin sends chat messages, project credentials, anonymous visitor identifiers or logged-in user token data, and configured metadata to the API Base URL saved in Settings > PointerDev AI Chat. The default service endpoint is https://pointerdev.ai/, but site administrators may configure their own PointerDev AI API base URL.

Service provider: PointerDev AI
Service URL: https://pointerdev.ai/
Privacy policy: https://pointerdev.ai/privacy-policy
Terms: https://pointerdev.ai/terms-of-service

螢幕擷圖

安裝方式

  1. Upload the pointerdev-ai-chat folder to /wp-content/plugins/.
  2. Activate the plugin through the WordPress admin.
  3. Go to Settings > PointerDev AI Chat and save:
    • API Base URL
    • Project ID
    • Publishable Key
    • Secret Key (required for login_required mode)
    • Optional widget title, subtitle, launcher label, icon style, icon text, and colors
  4. Add shortcode [pointerdevai_chat] to any page.

To show a round chat bubble launcher, choose Chat bubble icon for Launcher Icon Style and leave Launcher Label empty.

常見問題集

How does login_required mode work?

When auth_mode is end_user (or auto with logged-in users), plugin mints end-user tokens server-side using your stored secret key and feeds them to the widget.

Primary filter pointerdevai_end_user_token can override the generated token.
Legacy filter pointerai_end_user_token is still available for custom overrides.
When this filter returns a token, it overrides built-in token minting for widget auth.
The same server-side minting path is used by the plugin AJAX proxy when needed.

Default sub derivation is multisite-aware (blog_id:user_id). If you need Laravel-style parity (user_id only), use filter pointerdevai_end_user_subject_seed.
Legacy filter pointerai_end_user_subject_seed still works.

Can I use this for anonymous chat?

Yes. Set auth mode to anonymous or auto.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈PointerDev AI Chat〉的開發相關工作。

參與者

將〈PointerDev AI Chat〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.2

  • Redesign the settings screen with clearer setup sections, connection status, masked secret key handling, and widget preview.
  • Add WordPress.org banner, icon, and screenshot assets for the plugin listing.

0.1.1

  • Bundle widget locally, add appearance settings, and fix anonymous chat after WordPress logout.

0.1.0

  • Initial release.