- Issue created by @mindaugasd
- 🇳🇱Netherlands ronaldtebrake
Thanks for raising this issue!
I've actually been busy yesterday with a use case similar as above as a proof of concept.I'll note down the steps I've taken, as it's very rudimentary, just to showcase it would work.
1. I've created a new Augmentor module connecting it to https://platform.openai.com/docs/api-reference/moderations
2. I've used ECA to create a workflow (see screenshot)
3. Using the new Augmentor I map the values from Open Ai in a new field on the content entities
4. As Open Social's content reporting is using the flag module, and ECA has flagging possibilities (using their submodule), based on the result of the Open AI call we either just add the information and save it, or report it as inappropriate (basically flagging the content) and unpublishing it before saving it.
5. For a quick visual reference the flagged value from open_ai is shown on the content overviewI'll be trying to contribute the Augmentor work I've done connecting it to the Open Ai moderation API.
Hopefully that allows people to set up the flow as mentioned in the issue to their liking.
- 🇳🇱Netherlands ronaldtebrake
For what it's worth I've ensured the work done in augmentor is now available at: https://www.drupal.org/project/augmentor_openai_moderation →
So at least for those wanting to implement it you can get it from there. - 🇩🇰Denmark ressa Copenhagen
Thanks for sharing @ronaldtebrake, combining AI and ECA in Drupal looks really interesting.