I Was Sick of Spam Calls So I Made This iPhone Shortcut to Help
Mar 12, 2025 am 12:32 AMQuickly identify harassing calls: use shortcuts and ChatGPT to intercept suspicious calls
Tired of answering marketing calls that claim you have had an accident that is not your responsibility? This article will introduce a clever way to quickly identify and process incoming calls from unknown numbers using iPhone shortcuts and ChatGPT.
Google searches for harassing calls take too long and often cannot complete the search before the incoming call hangs up. While shortcuts can help, unfortunately, iPhones cannot automatically trigger shortcuts on incoming calls. So I had to find a different way, using the tap on the back gesture to trigger my shortcut, checking the call number through ChatGPT.
Google search for harassing calls is inefficient
Receiving calls from unfamiliar numbers is always frustrating. It can be a spam call or a big call from a doctor or energy provider that you don't want to miss.
But the reality is that if you answer, it is likely to be a spam call; if you don’t answer, you may miss an important call.
So when an unrecognized number appears, I quickly google it to see if it has been reported as a harassing call. The problem is that the phone often hangs up before I search for the number and read the results.
Create shortcuts to automate processes
I've encountered this situation again recently and I started thinking about whether I could automate this process so that my iPhone would automatically check the number every time I receive an incoming call from a non-contact number.
I know that it is possible to create an iPhone shortcut that performs web searches. It looks like it should be possible to create a shortcut to help me check the number so that it can quickly determine if it is a spam call or a legal call.
Shortcut command cannot be triggered when incoming calls
However, I quickly encountered obstacles. Ideally, I would like to be able to trigger my shortcuts every time the iPhone calls. This way, whenever the phone rings, the shortcut will run, extract the phone number, search for relevant information, and see if it comes from a number with spam phone records.
The problem is that while automation can be triggered on iPhones in a variety of ways, shortcuts cannot be triggered on iPhone calls at this time. This is a shame because it will be a very useful trigger; you can create many useful automations based on this. I had to find another way.
Use the gesture of tapping the back
If the shortcut cannot be triggered when the iPhone starts ringing, my only option is to start the shortcut manually. I can use the action button on the iPhone 15 Pro, but I have used it for other purposes and there is no shortcut action that can be used to change the function of the action button when the phone rings.
So I decided to trigger the shortcut by tapping the back gesture. This is an accessibility gesture that can be used to perform actions on your iPhone, such as opening the camera or control center by tapping the back of the iPhone two or three times. One of the options for tapping the back gesture is to run the shortcut, so once the shortcut is created, I can run it three times by tapping the back of the iPhone when the phone rings.
Plan shortcuts to check incoming call numbers
The final step is to create a shortcut to check the incoming call number when it is incoming calls. I can use the web search, but this still requires me to check the results to determine if the number is a spam call. I think the quickest and simplest way is to ask ChatGPT.
I need to pass the incoming call number to ChatGPT. Since the number will appear on the screen on incoming calls (unless the number is hidden), I can let the shortcuts take a screenshot. I can then use the "Extract Text from Image" operation in the shortcut application, which uses optical character recognition (OCR) to extract text from the image.
After extracting the text (including the phone number), I can pass it to ChatGPT and ask it to search for the number online and tell me if it might be a spam call.
Create shortcuts
Now that I know all the steps required in the shortcut, it's time to start building it. This shortcut requires only three operations to work.
Open the Shortcuts app and click the “ ” icon in the upper right corner to create a new shortcut. Click "Search Action", enter "Screenshot", and select "Search Screenshot". Search for Extract and select Extract text from image. This will extract text from the screenshot, including the incoming call number.
Search for "ChatGPT" and select "Ask ChatGPT" from the results. You can choose the model you want to use; I chose GPT-4. Click on “Message” and enter something like this: “Search for the phone number in this text and tell me if it is safe or spam. Set the first word of the response to “SCAM” or “SAFE” and keep the response short.”
Click "Text from Image" above the keyboard, which will add the text extracted from the screenshot to your message. Click the arrow and turn off "Continuous Chat" so that ChatGPT only gives you a single reply.
Click the shortcut name at the top of the screen and select Rename. Take a easy-to-remember name for your shortcut and click "Done" to save.
Assign shortcuts to Tap the back gesture
After creating the shortcut, the last step is to assign it to the tap back gesture. You need to do this through accessibility settings.
Go to Settings > Accessibility. Under Physics and Movement, select Touch. Scroll to the bottom of the screen and select Tap the Back. Select Double Click or Three Click. Scroll down and select the shortcut you created. Your shortcut is now set to Tap Back gesture.
Use shortcuts when incoming calls
Now that I have set my shortcuts to run whenever I use the tap back gesture, I have a better chance to check if the caller is a spam call before the caller hangs up. When I call and I don't know the number, I will tap the back of the iPhone three times and the shortcut will run. After a minute or two, ChatGPT will tell me if the call is a spam and I know if I want to answer it.
Shortcuts are not perfect, but they help
This approach is not ideal and has some major drawbacks. The biggest problem is that the caller hides their numbers. There are no numbers to check, so shortcuts become useless. It’s frustrating that some legal calls also hide their numbers, so you’re back to the starting point.
Another problem is that this method does not take effect immediately. When incoming calls, you have to pick up your phone, perform a tap-to-back gesture, and wait for ChatGPT to check the number. If you are not fast enough, the caller may hang up before you complete the process.
However, in many cases it works enough to enable me to answer before a legal incoming call hangs up.
Without the possibility of triggering shortcuts when the iPhone starts ringing, using the tap-back gesture is the best thing I can do with the iPhone native tools. However, my next plan is to see what I can make with Home Assistant. For Android phones, there is a "phone_state" sensor that changes when the phone rings, but this doesn't exist on the iPhone, so it seems that another workaround is needed.
The above is the detailed content of I Was Sick of Spam Calls So I Made This iPhone Shortcut to Help. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Gaia GPS is a widely used app among outdoor lovers, but one of the drawbacks of the app is that it can significantly drain your iPhone's battery.If you're looking to conserve battery and maximize the time you can spend using Gaia GPS on your iPhone d

If you're still using a third-party task manager on your iPhone, you might want to check out Apple's updated Reminders app. With each new update, Reminders gets more powerful yet remains one of the simplest task managers to use, and iOS 17's new to-d

Want to check a wi-fi network password directly on your iPhone? Thanks to the latest iOS update, you can now do this effortlessly.It's not uncommon to connect to a wi-fi network with a complicated password and later need to share that password with s

iPadOS 16 introduces a range of significant new features, such as an entirely new multitasking option for the iPad. However, there are also numerous smaller and more subtle enhancements, modifications, and additions that iPad users will find quite us

The backlit keyboard on iPad Magic Keyboard usually activates as soon as you attach the Magic Keyboard to the iPad Pro or iPad Air. However, there are times when this doesn’t occur, and the iPad Magic Keyboard backlight fails to turn on.Thankfully, t

Apple has released iOS 15.7 and iPadOS 15.7 for iPhone and iPad users. The update is available to iPhone users as an alternative to the freshly released iOS 16 update for iPhone, and offers security fixes for iPad users given that iPadOS 16 is not av

iPadOS 16.1 has been released for iPad, making the update the first iPadOS 16 version available for the tablet after the initial release was postponed. iPadOS 16.1 includes a variety of new features, including Stage Manager multitasking interface for

While the Maps app hasn't received as big an update in iOS 16 as Books, Messages, Photos, and Weather did, there are still quite a few exciting new features to enjoy on your iPhone.In the new Apple Maps update, there are improvements to trip planning
