Hello Samantha,
Discourse already offers AI moderation through the Discourse AI plugin you can for example set up spam or NSFW detection.