1. Once you have your API key, launch the Shortcuts App on your phone. Index

  2. Click the + to create a new shortcut New

  3. For your first action, choose Ask for Input. 4.

  4. It should say Ask forTextwithAsk ChatGPT3?” This is what Siri will ask you when you call this shortcut. 5.

  5. At the bottom where it says “Search for Apps and Actions” type in Set Variable
  6. Set Variable to “Prompt” to “Provided Input”

  7. At the bottom, choose Get Contents From URL

  8. Type in the URL in the open space: https://api.openai.com/v1/completions

  9. Click the blue arrow and make yours look similar. The only difference is after Bearer in the “Authorization” key, you need to paste the API key you generated from OpenAI.

  10. Type in get dictionary from “Contents of URL

  11. Set it to the following

  12. Type in “Get Dictionary Value”

  13. Get “Value” for “Choices” in “Dictionary”

  14. Search “Get Dictionary From”

  15. Set it to “Dictionary Value”

  16. Search Dictionary From Input

  17. Set it to: Get “Value for “Text” in “Dictionary”

  18. Search “Speak Text”

  19. Set it to Speak “Dictionary Value”


At the top of the screen, set the name of the shortcut to OpenChat.

Now ask Siri for Open Chat and you will be prompted with Ask ChatGPT3?

This is how it all looks.

TL:DR

If you want to avoid doing all the work, you can install this Shortcut.

Scroll down to the “Get Content from https://” and hit the blue arrow. Scroll down to Authorization and replace “yourtoken” with your API token.