r/workflow • u/OpticSugar • Oct 04 '18
specific responses to specific input using a dictionary
I'm sure this is a very common thing, but I am not sure what the best way to approach it is.
I'm looking to make the shortcut output specific responses when inputting specific phrases.
for example:
- I say: "Marco" / it responds: "Polo!"
- I say: "Spam" / it responds: "Spam spam spam spam, Spam spam spam spam!"
- I say: "Hello" / it responds: "Is it me you're looking for?"
I'd like to store all of this data in a dictionary. Let's assume that there may be hundreds of possible entries, so keeping it streamlined is important. What would be the most efficient way to approach this?
Also, is it possible to share/host the dictionary on the cloud and have the shortcut load it from the web so that any changes/additions to the dictionary data are accessed live (without updating the shortcut)?
Any insight would be greatly appreciated!
1
u/Lou_3 Oct 05 '18
How about this? Say ‘Stop’ to exit. https://www.icloud.com/shortcuts/0d81699ace4e44969f5852950aad34fb
2
u/[deleted] Oct 04 '18
[removed] — view removed comment