I am having a little issue with the chat in my app. It is a tutoring app that allows chat between tutor & client. Some of them are exchanging mobile numbers & email addresses. This will allow them to bypass the app & make arrangements without paying. Is there a way to block mobile numbers & email addresses?
I think you could use NoCode Monkey’s regex component with something like this! : ^(?![\s\S]*(\+?[0-9][\d\s\-\(\)]{5,}[0-9]|\S+@\S+\.\S+))[\s\S]*$
I was also thinking to use replace text endpoint that is available in Function Hub (Function Hub | Adalo Resources) but then realized it can remove one search term per API call. I’ve noted this to share with the team so something like enhancing this endpoint to support multiple search terms and possibly able to map a regex code would be great!
Or you could use a 3rd party integration like MAKE.
I saw this and thought it was a great use case — I actually just added an API endpoint to Vibe API Hub that solves this directly without needing a regex component.
The endpoint:POST /text/regex/replace
It takes your message text, runs a regex pattern against it, and returns the cleaned version with phone numbers and emails replaced before you store it.
How to set it up in Adalo:
Create a Custom Action on your send message button (runs before the message is saved)
Great question @Dilon, right now there are no rate limits set on the API itself, so you can call it freely.
The one natural constraint is that it’s hosted on Vercel’s free tier, which has a soft limit of 100GB bandwidth/month and 100,000 function invocations/month across all users. For utility calls like these that’s a very high ceiling and realistically won’t be hit anytime soon.
If usage ever gets to a point where limits become a concern I’ll look at adding proper rate limiting, but for now, use it freely!