Set up automated responses to incidents based on severity and offense type.
Read time 1 minuteLast updated 2 days ago
The Moderation dashboard can take automatic actions on newly created incident through the use of Unity Cloud Code.After you set up Moderation automations, the Cloud Code script will execute every time Moderation receives a player report or a text detection
Set-up automations
Navigate to Vivox > Safe Text > Automations in the Unity Dashboard to choose a Cloud Code script to use for automations.
If you haven't yet created an Automation script, select Add/Configure the template to be redirected to Cloud Code to begin the process.On the Cloud Code page, select Add Script and select the Moderation incidents automation template, which contains examples of how to use the script.Note that by using this template, Cloud Code will add an event parameter to the script, which will receive the event emitted by Moderation.If you already have a Cloud Code script or you completed the above flow, return to the Automation setup page in Moderation. Select the pencil icon next to Automation settings to enable the dropdown where you can select your script.
Calling Moderation APIs
You can call Moderation APIs to perform certain actions in your Automation scripts.The Moderation incident automation template has an example of how to perform a call to the Moderation API to close an incident. Use this example if you want to automatically close incidents with
relatively low impact on your community, so that your moderation team can focus on high impact incidents.You must create a service account in order to send calls to the Moderation API through Cloud Code.Assign the Multiplayer > Safety Admin role to your service account to authorize the service account to call Moderation APIs.To see the list of available API, refer to the moderation service web api docs