If I make any progress with this, I’ll create a separate topic.
It’s a comment system for a WordPress blog, so the API requests can easily be handled from there. Basically, the author selects a ruleset before they publish the WordPress post. The rulesets will be something like “steelman”, “collaborate”, “destroy”… Publishing the post to Discourse will generate the required groups and a separate PM to each of the groups with instructions about how to proceed.
The goal is to do this without using any custom Discourse plugins.