šŸ”„ ChatGPT Tips Tuesday #7: Hey Siri!

Combine the power of OpenAI's API with Siri

šŸ’” ChatGPT Tips for the day

Adding OpenAI’s API will supercharge the response you can get from Siri. Just ask the question in your own language and see how you can get fluently written responses and hear it spoke out by your lovely assistant Siri.

Thanks to all the people who voted in the last issue. By popular demand, I am going to talk about the tip to integrate OpenAI’s API with Siri.

It is gonna be a longer email as there are many steps to go through. But trust me, you would be able to see some amazing results 🤩 

This email primarily follows the suggestion from this article: You can now use ChatGPT with Siri using this simple iPhone shortcut from Tom’s Guide. I did make some tweaks in my suggestion since the article is more about utilising just the shortcuts while I am more keen to ensure we can speak to Siri that is utilising OpenAI’s API.

Alright, before we start, here are the things you need:

  • An iPhone (Sorry Android users 😬 )

  • An OpenAI account with some money topped up

    • We would be using the OpenAI’s API in this instance, hence it would start to cost you.

    • But the cost is not that high, I have tested several conversations and asked for several emails and travel plans today. In total, it only costs me 4 cents USD so far, so it is not too bad at all for just personal use. I think the cost is about $0.02 USD per 1k token, i.e. 750 words (counting both prompt and response words combined).

    • To understand more about the cost, it would be good to check the pricing here.

Step 1: Download the shortcut

This is how the integration can be established. You would need to download the pre-made shortcut here.

Step 2: Go to your OpenAI account for API Keys

This is to ensure we can use the API from OpenAI. Go to your OpenAI account → Click Menu → Click your account → Click View API Keys

Step 3: Create and copy the API key

You can name the API key so that you can easily manage these keys. Be careful not to share your API key as other people could potentially use this key and start draining down your money topped in your OpenAI account.

Also, this key would only be shown once during the creation, please be sure to copy it when creating it. If you happen to miss it, feel free to delete the old one and create a new one. I believe there is no cost at all in creating such API keys.

Step 4: Add your API key to the ShortCut

Now let’s add things together. Go to Shortcut → Find SiriGPT and click on the 3 dots → Add in your API key in this one location

Step 5: Set up dictation

This would ensure that the SiriGPT can understand what you are speaking about and pass this speech as text to OpenAI’s API for processing.

Step 6: Give it a test

The way to test this Shortcut is to just click on the play button on the bottom right.

You would see 2 confirmations on your first run. One is to confirm is to allow this ShortCut to use Speech Recognition. The other one is to allow ShortCut to send the data to the OpenAI API for processing. I have selected ā€œAlways Allowā€ so that I don’t need to click this every time. Feel free to decide which option works best for you.

Once those are done, you should be able to see the responses from OpenAI’s API regarding the test question you have asked.

Step 7: Ensure Siri picks up this ShortCut

I hope you love the response you have got for that first time.

Now, let us make this shortcut work with Siri better. Assuming you have Siri enabled already, the only thing to say to trigger this Shortcut is to speak ā€œHey Siri, SiriGPTā€. However, I struggled to get Siri to understand the ā€œSiriGPTā€ part. Hence, I have changed that to ā€œChat GPTā€ and it works way better. Here is how you can change if you want as well.

Alright, now you should have your Siri working with OpenAI’s API now.

By the way, if you want a more powerful shortcut where you can set a play list for your Apple Music using just your spoken words, you can check this video:

As with anything with tech, there might be issues when you try to set up. If you do get stuck, feel free to drop me a message at [email protected] or hit me up on my Twitter @AnInquisitiveMd. Always happy to help out.

šŸŽ§ What topic would you like me to discuss in the next issue of ChatGPT Tips Tuesday?

Please choose the topic you would like to hear and I will try to write it in the next issue. I look forward to hearing your thought.

Login or Subscribe to participate in polls.

šŸ”¤ Word of the day

Transformer

n. a specific type of deep learning model. It is different to other models due to its adoption of self-attention, differentially weighting the significance of each part of the input (which includes the recursive output) data. It is used primarily in the fields of natural language processing and computer vision. It is also one of the key foundation for the creation of GPT, i.e. Generative Pre-trained Transformer.

To explore further about this concept, check this page on Wikipedia

This model is proposed from Google from this research paper, Attention Is All You Need. If you are interested to know more and have a bit of time, give it a go.

šŸ–¼ļø Image of the day

🤣 

šŸ’• Share the love and get some cool avatars!

I am doing weekly draw to get people referring the newsletter to others with some cool avatars as a way to say thank you.

If you can refer at least 3 of your friends, you would be in this week’s draw of 3 to get 3 cool avatars using 3 of your chosen styles.

So if you enjoy this newsletter and want to get some cool avatars for yourself, here is your link to share your love of the Prompt Craftsman with your friends.

That is it for the day!

Until I see you next time, stay awesome my friend!

Cheers,
Minjie

Reply

or to participate.