ShareShortcuts
Fork “Whatsapp Direct”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so shorctutsink gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
39K
Saved
2
Actions
25
Category
Social Network
Version
1.0
Language
EN

Start a conversation with a phone number on WhatsApp without the need of saving a new contact ⚡️

What's New

Version 1.0

First release

Version History
1.0 Sep 24, 2022

First release

What it does

25 actions
  1. Dictionary
  2. Text
  3. If
  4. Text
  5. If
  6. Choose from Menu
    What you want to do?
  7. Choose from Menu
    Text Phone Number
  8. Ask for Input
    Enter Phone Number
  9. Choose from Menu
    Check For Update
  10. Get My Shortcuts
  11. Match Text
  12. If
  13. Run Shortcut
    Lemon Updater
  14. Stop This Shortcut
  15. If
  16. Show Alert
    InstaDP
  17. Open URLs
  18. Stop This Shortcut
  19. Match Text
  20. If
  21. Replace Text
  22. URL
    https://wa.me/…
  23. Open URLs
  24. If
  25. Show Alert
    Whatsapp Direct

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#include 'actions/shortcuts'
#define color green
#define glyph addMessage


if ShortcutInput {
} else {
	menu "What you want to do?" {
	item "Text Phone Number":
		prompt("Enter Phone Number", "Text")
	item "Check For Update":
		getShortcuts()
		const Matches = containsText(, "Lemon Updater")
		if Matches {
			run("Lemon Updater", Dictionary)
			stop()
		} else {
			alert("You need to install Lemon Updater shortcut", "InstaDP")
			openURL("https://routinehub.co/shortcut/11173/")
			stop()
		}
	}
}
const Matches1 = containsText(, "^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\.0-9]*$")

if Matches1 {
	replaceText(" ", "", Matches1)
	const URL = url("https://wa.me/{}")
	openURL(URL)
} else {
	alert("Invalid Phone Number!", "Whatsapp Direct")
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by shorctutsink

See All

You Might Also Like

See All
Advertisement