AI FAQ Generator
If you've ever finished writing a product page, a service description, or a
documentation article and thought "readers are going to have questions about
this" AI FAQ Generator does the tedious part for you. Select the text
you've just written, click a button in the toolbar you already use every
day, and get back a set of likely questions and clear answers about that
content, ready to drop straight into the page.
You do not need to learn a new admin screen, a new content type, or a new
workflow. It works from inside the same CKEditor 5 rich text editor you use
to write any Drupal page, article, or paragraph — no separate "AI FAQ" tool
to go find, and nothing new to learn about Drupal itself.
The solution it provides: generating FAQ content is
normally a manual, time-consuming step that happens after the "real"
writing is done — someone has to re-read what was written, guess what
readers will ask, and write it up as question/answer pairs, usually in a
slightly different tone than the rest of the page. This module removes that
step. It sends your selected text to whichever AI provider your site
already has configured (via the AI (Artificial Intelligence)
module) and returns a properly formatted FAQ block you can review, edit,
and insert in seconds.
Features
Basic functionality: a "FAQ Generator" entry is added to
the "AI Assistant" dropdown in the CKEditor 5 toolbar. Select some body text,
choose FAQ Generator, click Generate, and a block of question/answer pairs
about that text streams into an editable preview. Edit it if you like, then
save it back into the page at your cursor position.
What enabling this module adds:
- A one-click "FAQ Generator" action inside CKEditor 5's existing AI
tools menu — no new toolbar button, dialog system, or route to learn. - Per text format control over how many questions to generate (3–10),
the tone of voice (Neutral, Friendly, Technical, or Simple), which AI
provider/model to use, and the underlying prompt — all editable from the
ordinary "Text formats and editors" admin page. - Output is automatically constrained to whatever HTML tags the current
text format already allows, so the result is never "more permissive" than
the rest of your content. - No new permissions to reason about beyond the one `ai_ckeditor` already
defines (use ai ckeditor) plus ordinary text format access —
if an editor can already use the rich text editor with AI tools enabled,
they can use this.
When and why you'd use it: anywhere you're authoring
content that benefits from an FAQ section but don't want to hand-write one
every time — product and service pages, knowledge base and support articles,
how-to and documentation pages, landing pages for a feature or event. It's
aimed at the "I just wrote 400 words, now I need a Questions people will
ask about this" moment that happens constantly in content authoring, not at
building a dedicated, structured FAQ directory.
Post-Installation
There is no separate configuration page, settings form, or new content
type — everything lives where CKEditor 5 configuration already lives.
- Make sure at least one chat-capable provider is configured under
Configuration > AI > AI Settings
(/admin/config/ai/settings) -- this is where API
keys/credentials live, typically via the Key module. - Go to Configuration > Content authoring > Text formats
and editors (/admin/config/content/formats) and edit
a format that uses CKEditor 5 (e.g. Full HTML). - If the "AI Assistant" button isn't already in the active toolbar, drag
it in from the available buttons. - Open the CKEditor 5 plugin settings, find "FAQ Generator," and check
"Enabled." Choose a provider/model (or leave it to fall back to AI Core's
default chat provider), the number of FAQs to generate per request, and the
tone of voice, and optionally edit the underlying prompt template. - Save the format. Only users with the
use ai ckeditor
permission (granted byai_ckeditor) and access to this text
format can use the action.
That's it — open any content form using that text format, select some
text, and "FAQ Generator" will be listed in the AI Assistant dropdown.
Additional Requirements
- AI (Artificial
Intelligence) — specifically its bundledai_ckeditor
submodule, which must be enabled (it is not enabled by default just
because the AI module is installed). This module builds entirely on
ai_ckeditor's existing CKEditor 5 toolbar, dialog, and
streaming request infrastructure rather than reimplementing any of it. - Drupal core's CKEditor
5 module. - At least one AI Core provider submodule configured for chat, e.g.
OpenAI
Provider or Anthropic
Provider. Requests are billed according to that provider's own plan.
Recommended modules/libraries
- Whichever AI provider
submodule matches the vendor you use — OpenAI, Anthropic, Groq, or a
self-hosted option — since this module has no preference and simply uses
whatever AI Core has configured. - Key, for storing
provider API credentials securely (typically pulled in automatically as a
dependency of the provider submodule you choose). - The other
ai_ckeditoractions — Summarize, Tone, and
Translate are particularly good companions, since they share the exact
same toolbar and review-before-insert workflow as FAQ Generator — as is
this maintainer's own Smart
Table Generator, which converts selected text into a comparison table
through the same "AI Tools" dropdown.
Similar projects
Modules like FAQ or
other field/content-type based FAQ solutions solve a different problem:
they give you a dedicated content type or field structure for a
purpose-built, browsable FAQ page (often with FAQPage schema.org markup).
Those are the right tool when you want a curated, standalone FAQ directory
that lives at its own URL and is managed independently of your other
content.
AI FAQ Generator solves the opposite side of that problem: it doesn't
create a new content type or a new place to manage FAQs at all. It's an
authoring-time assist that generates a FAQ block, in place, inside whatever
you're already writing a product page, an article, a paragraph so the
questions live directly alongside the content they're about instead of in a
separate directory. The two approaches are complementary you could easily
use this module to draft the Q&A copy and then move it into a structured
FAQ module's fields if you want it to also appear in a dedicated FAQ
directory.
Supporting this Module
There's no Patreon, Open Collective, or similar funding link for this
module at the moment. The best way to support it is through the issue
queue: bug reports, feature requests, and patches are all welcome.
Community Documentation
The module's README covers configuration and usage in full detail. If
you put together a walkthrough video or a DrupalPod demo, please share it
in the issue queue so it can be linked here for other users.
AI FAQ Generator does not talk to any AI provider directly and never
stores an API key — all of that is handled by the AI (Artificial
Intelligence) module and the provider submodule you choose. This module's
only job is deciding what to ask for and where the answer goes.