AI Function

Check if a Comment is Spam

Nuanced detection of spam

Copy it in your workspace

Off-the-shelf moderation systems don't take into account how your company defines spam. With an AI-first solution like this, your function will follow company guidelines and ensure all comments remain pertinent and spam free.

The function will output the response in JSON and might ask the human to intervene.

{"steps":[{"id":"4e47261d-f619-4805-9323-5e899549ebbd","end":{"outputVariables":{"isSpam":"{{response}}"}},"chat":{},"type":"end","__editingData":{"top":"150.21446622564565px","left":"847.559158839666px"},"exploreDataSource":{},"defaultTransitionId":null},{"id":"8f8f6b09-ba96-49cd-a1c4-d318eab4748e","type":"userMessage","userMessage":{"mode":"background","source":"user","message":"The content:\n\n{{content}}","destinationVar":"response"},"__editingData":{"top":"150.21446622564565px","left":"662.9600822068851px"},"defaultTransitionId":"4e47261d-f619-4805-9323-5e899549ebbd"}],"refs":{"prompts":{},"functions":{}}}

Other AI cloud functions