ShareShortcuts

Duplex Alpha 0.6.2

stardj1999
Fork “Duplex Alpha 0.6.2”

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 stardj1999 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
4K
Saved
0
Actions
77
Category
Messaging
Version
1.1
Language
EN

This is a replica of the Duplex feature launched by Google in 2018 and revealed at Google I/O 2018. It has most of the features Duplex had, although now there is a workaround, since you cannot inject audio into phone calls in Shortcuts: using two devices, which are: 1. the device you are currently using and 2. another device, preferably a phone, which can make and receive calls. Disclaimer: this project is not affiliated with Google or any of their trademarks. Please let me know if there are any bugs.glitches in the comments, and what your experience was like.

What's New

Version 1.1

Stuttering

Version History
1.1 Jun 28, 2026

Stuttering

1.0 Jun 14, 2026

First release

What it does

77 actions
  1. Dismiss Siri
  2. Show Result
  3. Comment
    Creating profile of what the user wants to do
  4. Wait
  5. Speak Text
  6. Dictate Text
  7. Speak Text
  8. Dictate Text
  9. Set Variable
    location
  10. Change Case
  11. If
  12. Replace Text
  13. Replace Text
  14. Replace Text
  15. Search Local Businesses
  16. Choose from List
  17. Get Details of Locations
  18. Set Variable
    location_phone
  19. Speak Text
  20. Dictate Text
  21. If
  22. Replace Text
  23. Replace Text
  24. Calculate
  25. Speak Text
  26. If
  27. Replace Text
  28. Replace Text
  29. Calculate
  30. If
  31. Speak Text
  32. If
  33. Speak Text
  34. Speak Text
  35. Dictate Text
  36. Set Variable
    name
  37. List
  38. Set Variable
    opening_list
  39. Get Item from List
  40. Show Result
  41. Wait
  42. Make Spoken Audio
  43. List
  44. Get Item from List
  45. Replace Text
  46. Speak Text
  47. Dictate Text
  48. If
  49. Random Number
  50. Wait
  51. Dictate Text
  52. Split Text
  53. Change Case
  54. List
  55. If
  56. Split Text
  57. Change Case
  58. List
  59. Get Item from List
  60. Get Item from List
  61. Get Item from List
  62. If
  63. List
  64. Get Item from List
  65. Make Spoken Audio
  66. List
  67. Get Item from List
  68. Replace Text
  69. Speak Text
  70. Wait
  71. Dictate Text
  72. Text
  73. List
  74. Get Item from List
  75. Make Spoken Audio
  76. Speak Text
  77. Show Result

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/text'
#include 'actions/device'
#define color lightblue
#define glyph phone

dismissSiri()
show("Disclaimer: this project is not affiliated with Google or any of their trademarks. ")
// Creating profile of what the user wants to do

wait(1)
speak("What do you want to book?")
listen()
speak("Where?")
listen("After Short Pause")
@location
uppercase(@location)

if  contains "at" ||  contains "pm" ||  contains "am" {
	replaceText("at", "")
	replaceText("am", "")
	replaceText("pm", "")
}
rawAction("is.workflow.actions.searchlocalbusinesses", {
	"WFSearchQuery": "{@location}"
})
const SelectedItem = chooseFromList(LocalBusinesses, "Which one?")
getLocationDetail(SelectedItem, "Phone Number")
@location_phone
speak("At what time?")
const DictatedText = listen("After Short Pause")

if DictatedText contains "PM" {
	replaceText("At", "", DictatedText)
	const UpdatedText = replaceText("PM", "", DictatedText)
	speak("OK, but if {DictatedText} isn't available today, can I try {} PM?")
} else {
	replaceText("At", "", DictatedText)
	const UpdatedText1 = replaceText("AM", "")
	const CalculationResult = UpdatedText1 + 1
	if CalculationResult >= 12 {
		speak("OK, but if {DictatedText} isn't available today, can I try {CalculationResult} PM?")
	} else {
		speak("OK, but if {DictatedText} isn't available today, can I try {CalculationResult} AM?")
	}
}
speak("One last thing: what's your name?")
listen("After Short Pause")
@name
list("Hi. I'd like to make {} on behalf of {@name} at {}. Oh, and by the way, is {DictatedText} available? We can always do later instead.", "Hey there. Can I make {} on behalf of {@name} at {}? Also, is {DictatedText} available? If it isn't, we can do later instead.", "Hello there. Let’s do {}. I’m calling on behalf of  {@name} at {}. Can you please confirm that {DictatedText} is available? If it isn't, we can use later as a replacement. ", "Hi there. I’m calling to make  {} for  {@name} at {}. Can I confirm with you that that {DictatedText} is available? If it isn’t, we can do later instead. ")
@opening_list
getFirstItem(@opening_list)
show("Disclaimer: this setup requires two devices, which are: 1. the device you are currently using and 2. another device, preferably a phone, which can make and receive calls. Call {@location_phone} on the Phone app's number pad then click \"Done\" once they pick it up.")
wait(0)
makeSpokenAudio()
const List = list("…um…", "…um,", ", uh…", ", uh, ", ", erm…", ", erm, ")
getRandomItem(List)
replaceText(", ")
speak()
const DictatedText1 = listen()

if DictatedText1 == "" {
	const RandomNumber = randomNumber(1, 3)
	wait(RandomNumber)
	const DictatedText2 = listen()
	const SplitText = splitText(DictatedText2, " ")
	uppercase(SplitText)
	list("pm", "available", "am")
} else {
	const SplitText1 = splitText(DictatedText1, " ")
	const UpdatedText2 = uppercase(SplitText1)
	const List1 = list("available", "pm", "am")
	getFirstItem(List1)
	getListItem(List1, 2)
	getListItem(List1, 0)
	if UpdatedText2 contains  {
		const List2 = list("That's wonderful! I'm, using experimental technology, so, can you please state, at what time in a clean format such as \"4 PM\" or \"11 AM\"? Thanks.", "Great. I was, made with experimental technology, so please tell me: what time do you, have available. Say it in a clean format like \"3 PM\" or \"10 AM\"? Thank you.", "Good! I was made with technology in its early stages, so tell me what time you have in a format like “2 PM” or “9 AM”.", "Good. I’m currently using technology still being experimented with, so, please tell me what time you’d like me to book in a clean format, like “1 PM” or “8 AM”.")
		getFirstItem(List2)
		makeSpokenAudio()
		const List3 = list("…um…", "…um,", ", uh…", ", uh, ", ", erm…", ", erm, ")
		getFirstItem(List3)
		replaceText(", ")
		speak()
		wait(0)
		listen()
		const List4 = list("Good! {@name} will pay on-site. I’ll inform them and they’ll be there!", "Awesome. {@name} will pay right there, and I’ll inform them right now.", "Great! {@name} will pay there, and they’ll be informed by me now.")
		getListItem(List4, 0)
		makeSpokenAudio()
		speak()
		show("I've already talked to them—hang up if they haven't done it already. In short: I've booked {} on your behalf and said you'd pay on-site. Goodbye!\n\nTips:\n1. Go there at {}, as that is what's available;\n2. Informed them you'll pay on-site.")
	}
}
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 stardj1999

See All

You Might Also Like

See All
Advertisement