Scan with your iPhone to install
Type to Siri is a shortcut that lets you type to Siri!
What's New
Version 1.0
First release
What it does
44 actions-
CommentMade by CoolM
-
Get Current Weather
-
Text
-
Set VariableName
-
Text
-
Set VariableLocation
-
Ask for Input
-
If
-
Send Message
-
Stop This Shortcut
-
If
-
If
-
Play/Pause
-
Stop This Shortcut
-
If
-
If
-
Play/Pause
-
Stop This Shortcut
-
If
-
If
-
Choose from MenuForward or backwards
-
Choose from MenuForward
-
Skip Forward
-
Choose from MenuBackwards
-
Skip Back
-
If
-
If
-
Call
-
If
-
If
-
Search Web
-
If
-
If
-
Get Current Location
-
Show Alert
-
Stop This Shortcut
-
If
-
Change Case
-
Text
-
Get Dictionary Value
-
Speak Text
-
Show Result
-
Run ShortcutType to Siri
-
CommentMade by CoolM
View as code
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/sharing'
#include 'actions/location'
#define color pink
#define glyph doubleQuote
// Made by CoolM
getCurrentWeather()
@Name = ""
@Location = ""
const AskForInput = prompt("")
if AskForInput == "Send a message" || AskForInput == "Send text message" {
sendMessage(Ask, Ask)
stop()
} else {
if AskForInput == "Pause" || AskForInput == "Pause current music" || AskForInput == "Stop playing music" {
play()
stop()
} else {
if AskForInput == "Play" || AskForInput == "Play current music" || AskForInput == "Play the music" {
play()
stop()
} else {
if AskForInput == "Skip" || AskForInput == "Skip current music" || AskForInput == "Skip the music" {
menu "Forward or backwards" {
item "Forward":
skipFwd()
item "Backwards":
skipBack()
}
} else {
if AskForInput == "Call" {
call(Ask)
} else {
if AskForInput == "Search the web" || AskForInput == "Search" || AskForInput == "Search the internet" {
searchWeb("", Ask)
} else {
if AskForInput == "Show my current location" || AskForInput == "Current location" || AskForInput == "Show my location" {
getCurrentLocation()
confirm()
stop()
} else {
}
}
}
}
}
}
}
uppercase(AskForInput)
const Text = "{\n\\"hi\\": \\"Hello {@Name}. How can I help?\\",\n\n\\"hello\\": \\"Hello {@Name}. How can I help?\\",\n\n\\"what is the weather today\\": \\"{}\\",\n\n\\"what’s the weather for today\\": \\" {}\\",\n\n\\"what’s the weather\\": \\"{}\\",\n\n\\"what’s the weather in {@Location}\\": \\"{}\\",\n\n\\"alexa\\": \\"Not exactly. My name is Siri\\",\n\n\\"i prefer samsung over apple\\": \\"Im probably won't respond to that question\\",\n\n\\"oh no\\": \\"What happened?\\",\n\n\\"{}\\": \\"Sorry, something went wrong Please try again!\\",\n}"
const DictionaryValue = getValue(Text)
speak(DictionaryValue, false, "en-US")
show("{DictionaryValue}\n\n\n")
runSelf(DictionaryValue)
// Made by CoolM
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 coolm
You Might Also Like
Advertisement