ShareShortcuts

TextGPT

Interact with ChatGPT using your keyboard

blackhatteam
Fork “TextGPT”

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 blackhatteam 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
35K
Saved
5
Actions
26
Category
Productivity
Version
1.1
Language
EN

Interact with ChatGPT using your keyboard.

Are you looking for a way to utilize ChatGPT, but don't like speaking to Siri?

TextGPT may be the shortcut you have been looking for.

Simply type your question in the prompt and Siri will speak the answer. You will also have the option to save the result and view it on your screen.

You can now access the shortcut from the Share menu.

*Results are saved by date to ICloud Drive - Shortcuts - TextGPT.

What's New

Version 1.1

- Added shortcut to the Share menu.

Version History
1.1 Apr 13, 2023

- Added shortcut to the Share menu.

1.0 Mar 22, 2023

First release

What it does

26 actions
  1. Text
  2. Get File
  3. Create Folder
  4. If
  5. Show Alert
  6. Open URLs
  7. Wait
  8. Text
  9. Close Tab
    com.apple.mobilesafari
  10. Show Alert
  11. Wait
  12. Set Variable
    List
  13. Repeat
  14. Ask for Input
    What do you want to know?
  15. Text
  16. Add to Variable
  17. Show Notification
    I'm working on it. Please wait...
  18. Get Contents of URL
    https://api.openai.com/v1/completions
  19. Get Dictionary from Input
  20. Get Dictionary Value
  21. Wait
  22. Speak Text
  23. Show Alert
  24. Append to Text File
  25. Wait
  26. 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/web'
#include 'actions/documents'
#define color darkblue
#define glyph waveform

const File = getFileFromFolder(, "TextGPT", false)
createFolder("TextGPT")

if !File {
	confirm("Run Initial Setup? ")
	openURL("http://www.blackhatteams.com/p/textgpt.html")
	wait(6)
	const Text = "TextGPT"
	rawAction("com.apple.mobilesafari.CloseTab", {
		"AppIntentDescriptor": "",
		"target": "Text"
	})
	confirm("Setup Complete! ")
}
wait(2)
@List = nil

repeat _ for 100 {
	prompt("What do you want to know? ")
	@List += "{}\n"
	showNotification("I'm working on it. Please wait...", false)
	const ContentsOfURL = jsonRequest("https://api.openai.com/v1/completions", "POST", {
		"max_tokens": 500,
		"model": "text-davinci-003",
		"prompt": "{@List}",
		"stop": "\\\\n",
		"temperature": "0.5"
	}, {
		"Authorization": "Bearer {}",
		"Content-Type": "application/json"
	})
	const Dictionary = getDictionary(ContentsOfURL)
	wait(0)
	speak()
	confirm("Do you want to save the text? ")
	appendToFile("{CurrentDate}.txt", "{}{}")
	wait(2)
	show()
}
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 blackhatteam

See All

You Might Also Like

See All
Advertisement