https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can we detect a spam caller and block them
# ❓・ai-evy-support
d
@AI Evy how can we detect a spam caller and block them
a
Thanks for tagging me @diddy345_63419. I'll look through relevant sources and get back to you shortly.
### Answer To detect and block spam callers in Retell AI, you can set up an inbound webhook to detect and block unwanted traffic based on the incoming number. [(1) ]() When a number is made public, it's possible to receive unwanted traffic. The inbound webhook allows you to analyze incoming calls and take action to block spam callers. Additionally, to prevent abuse scenarios where bad actors make excessive outbound calls or spam your system, you should: - Never expose your API key to the public, always use public key in frontend - Always use a reCAPTCHA if possible to prevent bots from abusing your endpoints - Implement rate limiting (number based, IP based, etc.) for your endpoints if necessary - Have user identification mechanism (KYC measures) in place if necessary - Have prompt in your agent that can potentially detect unrelated calls and hang up fast For your own outbound calling operations, if your numbers are getting marked as spam, Retell provides two services to improve call pickup rates: Verified Phone and Branded Call. [(5) ]()
​ To learn more, see the sources I considered: [[1] Prevent abuse](https://docs.retellai.com/reliability/prevent-abuse) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@User i mean programmatically in python and js