Hi Guys:
May I know how to set a filter to restrict the text in chat message? For example, I want to stop
some chat message to present with hassle or insult words.
Hi Guys:
May I know how to set a filter to restrict the text in chat message? For example, I want to stop
some chat message to present with hassle or insult words.
Hi Grant @crowdzoning,
Welcome to the forum!
One of the ways is to use AI content moderation for that. Adalo has a pre-built one (Power Your App with ChatGPT | Adalo Resources), there is an answer to your question in this doc.
If youâd like to have something more advanced, you will have to build integration by yourself, maybe with the help of 3rd party platforms like Make.
Best,
Victor.
Hi Vector:
Many Thanks for your help!
B.RGDS
Grant
Hi Vector:
Thanks for your last reply about how to use OpenAI for chat message moderation.May I ask you a question:
In order to moderate some specific texts in the chat message,I add a custom action of AskChatGPT on my message submit button (please refer to my screenshot),
Then I was asked to input a prompt in the prompt field.May I know what I should enter:
Should I enter: Regex patterns for custom content moderation as follows:
const moderationPatterns = [
{ label: âEmailâ, regex: /\b[A-Za-z0-9._%±]+@[A-Za-z0-9.-]+.[A-Z|a-z]{2,}\b/ },
{ label: âPhone Numberâ, regex: /\b\d{10,}\b/ },
{ label: âCredit Cardâ, regex: /\b(?:\d[ -]*?){13,16}\b/ },
{ label: âPayPalâ, regex: /\bpaypal\b/i },
{ label: âSocial Media URLâ, regex: /(facebook|instagram|twitter|tiktok|linkedin).com/i },
{ label: âWebsite URLâ, regex: /\bhttps?://[^\s]+\b/ }
or I just paste the following in the field:
Prompt should contain this?
Thanks for your help
Grant
Hi Grant @crowdzoning,
I believe that you need to do it in a text format. However - what would you expect ChatGPT to return - you need to add an instruction for that. I think smth like âreturn original text with the following parts maskedâ. But thatâs just my opinion, you need to experiment to get results.
Best,
Victor.