Skip to main content

Scenario

Your community asks the same questions repeatedly across #help, #general, and #support. This job mines question messages (identified by ? marks and question patterns), clusters them by topic via Mave, then generates polished FAQ entries with your brand voice — ready for docs, help centers, or pinned messages. Flow: Discord GET /channels/{id}/messages → Filter questions → Mavera POST /mave/chat (cluster) → POST /generations (FAQ entries)

Code

Example Output

Error Handling

The regex pattern catches most questions but may miss imperative-style questions (“Tell me how to…”). Add patterns for your community’s question style.
Community channels contain memes, off-topic chat, and reactions. The length filter (15-500 chars) removes most noise. For cleaner results, only process messages from specific roles.
Regenerate monthly. Pin the latest FAQ in your Discord channels and update help center docs via webhook.