跳到内容

Maqsy: FAQ Manager and AI Chat

v1.2.0

sijad · 2026年9月2日 上架

FAQs with shortcode/block, plus an optional AI chat that answers from your FAQs and runs conversational quizzes that recommend the right solution.

正在使用
10 以下
评分
暂无
累计下载
426
最近更新
2026年11月19日
需要 WordPress 6.5+已测试到 7.1.5PHP 7.4+

贡献者

截图

The AI Chat Settings screen.
The AI Chat Settings screen.
The chat widget, shown in dark and light mode.
The chat widget, shown in dark and light mode.
Editing a FAQ: drag-to-reorder question/answer pairs, with the ready-to-paste shortcode.
Editing a FAQ: drag-to-reorder question/answer pairs, with the ready-to-paste shortcode.
The FAQs admin list.
The FAQs admin list.
The FAQ block in the editor, set to the Accordion template.
The FAQ block in the editor, set to the Accordion template.
The FAQ block in the editor, set to the Simple template.
The FAQ block in the editor, set to the Simple template.
The quiz builder: multiple-choice, open-ended and lead-capture questions.
The quiz builder: multiple-choice, open-ended and lead-capture questions.
Quiz outcomes, picked by rules, points or a fallback.
Quiz outcomes, picked by rules, points or a fallback.

Maqsy lets you write and organise frequently asked questions as a dedicated
post type, then place any FAQ on a page with a shortcode or a block. Each FAQ
outputs clean, accessible markup plus FAQPage JSON-LD structured data so search
engines can understand it.

It also ships an optional AI chat widget: a small floating button that, when
a visitor clicks it, lazy-loads a chat UI whose answers are grounded in your
published FAQs. The chat feature is off by default and does nothing until you add
an API key.

FAQ management

  • FAQs are a private custom post type (maqsy) — not publicly browsable on their own.
  • Each FAQ holds an ordered list of question/answer pairs, edited with a drag-to-reorder UI and the standard WordPress editor for answers.
  • Two display templates: Simple (a definition list) and Accordion (WAI-ARIA disclosure pattern with keyboard support).

Conversational quizzes

Turn the chat into a guided assistant that asks visitors a few questions and
recommends the most relevant product, plan, or service.

  • Quiz builder (FAQs Quizzes): create, edit, preview, publish and manage any number of quizzes.
  • Question types: multiple choice (one or several answers) and open-ended. Any question can be conditional — only asked when earlier answers match.
  • Branching: send visitors to a later question (or straight to the result) based on their answer.
  • Personalized outcomes: each outcome has a message (with {name} and answer placeholders), recommendations, an offer, a call-to-action button, and an optional landing page — shown as a button or opened automatically after a cancellable countdown. Outcomes are chosen by rules first, then by points that answers award, then a fallback.
  • AI-assisted: draft a complete quiz from your goals and business context.
  • In the chat: visitors start quizzes from the chat’s “Help me choose” menu, from a card the AI offers when a visitor needs a recommendation, by sending one of the quiz’s chat keywords (for example ACCESS) as a message, from the [maqsy_quiz id="123"] button shortcode, or from any #maqsy-quiz-123 link. Each quiz can have its own start-button label, such as “Find my plan”. Questions come one at a time; visitors can skip optional questions, pause to ask the chat something, resume (even after reloading the page), restart, or end the quiz.
  • Leads: open-ended questions can capture a name, email, or phone number (validated), optionally emailed to you on completion. The maqsy_quiz_completed action lets you push them into a CRM.
  • Analytics (FAQs Quiz Analytics): starts, completions, drop-offs, leads and CTA clicks; a daily trend; outcome and start-source breakdowns; a per-question funnel with answer distributions; and a leads/responses table with CSV export.

Quiz responses are stored in two custom database tables and are included in
WordPress’s personal data export and erasure tools (matched by email).

Placing a FAQ

Shortcode:

[maqsy id="123"]
[maqsy id="123" template="accordion"]

Block: insert the FAQ block, pick a FAQ, and optionally override the template.
Both render through the same code path.

Structured data

On singular views, each rendered FAQ emits schema.org/FAQPage JSON-LD built from
its question/answer text. Output is limited to singular views (not archives,
feeds or search) to follow Google’s one-FAQPage-per-URL guidance.

AI chat widget (optional)

Configure a provider and API key under FAQs AI Chat Settings and turn on
“Enable AI chat”. The always-loaded launcher script is tiny; the chat
interface is only downloaded when a
visitor actually opens the chat. Answers are grounded in your published FAQs plus
any site/branding instructions you enter in settings, and the public endpoint is
rate-limited per IP.

The built-in provider works with any OpenAI-compatible /chat/completions API
(OpenAI, OpenRouter, or a self-hosted compatible endpoint — you choose the base
URL). Other plugins can register additional providers via the
maqsy_ai_providers filter.

External services

This plugin’s AI chat feature is optional and disabled by default. It does
not contact any external service unless a site administrator enables the AI chat
and saves an API key.

When the AI chat is enabled and a visitor sends a message, the plugin makes a
server-to-server request to the AI API endpoint you configure (“API base URL” in
settings). By default this is OpenRouter (https://openrouter.ai/api/v1); you
can change it to OpenAI (https://api.openai.com/v1) or any other
OpenAI-compatible endpoint.

What is sent, and when:

  • On each visitor chat message: the visitor’s message text, the text of your published FAQ posts, and any “Site & branding instructions” you entered — sent to the configured endpoint together with your API key, so the model can generate a reply.
  • When an administrator clicks “Fetch models” on the settings page: a request to the endpoint’s /models route, authenticated with the API key entered in the form.
  • When the chat’s system prompt is built: the titles and descriptions of published quizzes that allow AI suggestions (so the assistant can offer them).
  • When an administrator uses “Generate with AI” in the quiz builder: the goal, audience and business context they enter, the site instructions, and (if chosen) the text of published FAQs.

No data is sent to the plugin’s author or to WordPress.org. The plugin does not
send analytics, tracking, or telemetry anywhere; quiz analytics are stored only in
your own WordPress database.

Because you choose the endpoint, review the terms and privacy policy of whichever
provider you configure. For the two presets:

  • OpenRouter — Terms: https://openrouter.ai/terms ; Privacy: https://openrouter.ai/privacy
  • OpenAI — Terms: https://openai.com/policies/terms-of-use/ ; Privacy: https://openai.com/policies/privacy-policy/

Source code and build process

Compiled assets in build/ are generated from the human-readable sources
included in this package:

  • src/ — admin, front-end and block scripts/styles, built with @wordpress/scripts (webpack). See webpack.config.js.
  • chat-runtime/src/ — the lazy-loaded chat UI (React 19 + TypeScript), bundled with esbuild, and its Tailwind stylesheet. See package.json and tailwind.config.js.

To build from source:

npm install
npm --prefix chat-runtime install
npm run build

Development repository: https://github.com/sijad/maqsy-faq-ai-chat

Bundled third-party libraries in the chat bundle (all MIT-licensed): React and
ReactDOM, scheduler, use-sync-external-store, @floating-ui, @shadcn/react, clsx,
tailwind-merge.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums