
Maqsy: FAQ Manager and AI Chat
v1.2.0sijad · 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日
贡献者
截图








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-123link. 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_completedaction 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
/modelsroute, 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). Seewebpack.config.js.chat-runtime/src/— the lazy-loaded chat UI (React 19 + TypeScript), bundled with esbuild, and its Tailwind stylesheet. Seepackage.jsonandtailwind.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.