Integrate ChatGPT into Siri to make your Apple voice assistant 100x smarter

We’ve all been there: you ask Siri a question, and it responds with the ever-frustrating “Sorry I didn’t understand that”. It could be an accent or dialect problem, the fact that Siri isn’t trained on the vast volume of data that Google’s AI is trained on, or just that Apple absolutely dropped the ball on Siri. Apple launched the voice AI as an app almost 13 years ago, although Siri today still feels noticeably dumb and unhelpful even after more than a decade. Google’s voice AI seems to overwhelmingly be the most popular choice nowadays, although there’s a new kid on the block that’s absolutely eating Google’s lunch, at least in the search department.

Unveiled less than a year ago, ChatGPT from OpenAI took the world by storm for its incredible natural language processing capabilities, hitting a million users in just 5 days, and 100 million users in just two months (that’s faster than the growth seen by social media giants like Facebook, Google, and even Snapchat). ChatGPT’s intelligent and human-like responses make it the perfect AI chatbot, especially given that it really understands natural sentences much better than most other AI tools, and it’s most likely to respond with a helpful answer than an apology. Developer Mate Marschalko saw this as a brilliant opportunity to integrate ChatGPT’s intelligence with Siri, turning it into a much more helpful voice AI. With a little bit of hackery (which just took him about an hour), Marschalko combined Siri’s voice features with ChatGPT’s NLP intelligence using Apple’s Shortcuts feature. The result? A much better Voice AI that fetches better search results, offers more meaningful conversations, and even lets you control your smart home in a much more ‘human-friendly’ way… almost rivaling Tony Stark’s JARVIS in terms of usability. The best part? You can do it too!

Marschalko lists out his entire procedure in a Medium blog post that I definitely recommend checking out if you want to build your own ‘SiriGPT’ too, with an approach that required absolutely no coding experience. “I asked GPT-3 to pretend to be the smart brain of my house, carefully explained what it can access around the house and how to respond to my requests,” he said. “I explained all this in plain English with no programme code involved.”

The video above demonstrates exactly how Marschalko’s ‘SiriGPT’ works. His home is filled with dozens of lights, thermostats, underfloor heating, ventilation unit, cameras, and a lot more, making it the perfect testing ground for possibly every use case. Marschalko starts by splitting up his tasks into four distinct request types. The four request types are labeled Command, Query, Answer, and Clarify, and each request type has its own process that GPT-3 follows to determine what needs to be done.

Marschalko’s AI is significantly better at processing indirectly worded commands.

Where the magic really unfolds is in how even indirect requests from Marschalko are understood and translated into meaningful actions by the assistant. While Siri and other AI assistants only respond to direct requests like “turn the light on”, or “open the garage door”, GPT3 allows for more nuanced conversations. In one example, Marschalko says “Notice that I’m recording this video in the dark, in the office. Can you do something about that,” and the assistant promptly turns on the light while responding with an AI-generated response instead of a template reply. In another example, he says “my wife is on the way driving home, and will be here in 15 minutes. Switch lights on for her outside just before she parks up”, to which the assistant responds with “The lights should be turned on by the time your guest arrives!”, demonstrating two powerful things… A. The ability to grasp concepts as complex as ‘wanting to switch a specific light on after a delay of a couple of minutes’, and B. Responding in a natural manner that conveys that they understood exactly what you wanted to be done.

Marschalko hooked all this into a shortcut called Okay Smart Home, and to power it, all he had to do was activate Siri and say the name of the shortcut (in this case “Okay Smart Home”) and then begin talking to his assistant. The four request types basically allowed Marschalko to cover all kinds of scenarios, from controlling smart home appliances with the Command request to asking the status of an appliance (like the temperature of a room or the oven) with the Query request. The Answer request covers more chat-centric queries like asking the AI for recommendations, suggestions, or general information from across the web, and the final Clarify request would allow the AI to ask you to repeat or rephrase your question if it was unable to detect any of the three previous request types.

Although this GPT-powered assistant absolutely runs circles around the visibly dumber Siri, it doesn’t come for free. You have to set up an OpenAI account and buy tokens to access its API. “Using the API will cost around $0.014 per request, so you could perform over 70 requests for $1,” Marschalko says. “Bear in mind that this is considered expensive because our request is very long, so with shorter ones you will pay proportionally less.”

The entire process is listed in this Medium blog post if you want to learn how to build out your own assistant with its distinct features. If you’ve got an OpenAI account and want to use the AI that Marschalko built in the video above, the Okay Smart Home shortcut is available to download and use with your own API keys.

The post Integrate ChatGPT into Siri to make your Apple voice assistant 100x smarter first appeared on Yanko Design.

How ChatGPT by OpenAI is Revolutionizing the Way We Search and Do Things Online

OPENAI LOGO

OPENAI LOGO

OpenAI is a research company founded by entrepreneurs and researchers, including Elon Musk, Sam Altman, and Greg Brockman. The company's mission is to advance artificial intelligence responsibly and safely, intending to benefit humanity. To achieve this mission, OpenAI conducts research in a variety of fields, including machine learning, robotics, and economics, and also develops technologies and tools that can be used by researchers, developers, and businesses. One of the most unique products developed by OpenAI is ChatGPT, a natural language processing chatbot with the potential to revolutionize online search.

ChatGPT by OpenAI is a revolutionary new natural language processing (NLP) technology developed by OpenAI that has great potential to change the way we use search and interact online. At its core, ChatGPT is a chatbot that utilizes advanced machine learning algorithms to understand and respond to user input in real time. However, what sets ChatGPT apart from other chatbots is its ability to generate human-like responses based on a vast database of pre-trained data. This allows ChatGPT to not only understand user queries and provide accurate information but also engage in natural conversation and offer suggestions and recommendations based on the context of the conversation.

ChatGPT could revolutionize how we search and do things online by providing a more intuitive and user-friendly interface for accessing information. Traditional search engines can be cumbersome and difficult to use, especially for users unfamiliar with search syntax and advanced operators. With ChatGPT, users may simply ask a question or make a request in natural language, and the chatbot will provide a relevant response or list of suggestions. This is especially useful for tasks that involve multiple steps or involve a large amount of information, as ChatGPT can help users navigate and filter through the results to find exactly what they are looking for.

Another way that ChatGPT could revolutionize the way we search and do things online is by providing a more personalized and tailored experience. Traditional search engines often provide generic and impersonal results, as they do not consider the user's specific interests or preferences. With ChatGPT, users can provide additional context and background information about themselves, and the chatbot will use this information to provide more relevant and accurate results. For example, if a user is looking for a new restaurant to try, they can tell ChatGPT their location, preferred cuisine, and price range, and the chatbot will provide a list of recommendations based on these criteria.

In addition to improving the search experience, ChatGPT could also revolutionize the way we interact with online content and services. Today, many websites and apps have rigid and inflexible interfaces that can be difficult to use, especially for users who are not technically savvy. With ChatGPT, users can simply ask the chatbot to perform a task or access a feature, and the chatbot will handle the rest. This could be especially useful for tasks involving multiple steps or requiring the input of specific information, as ChatGPT can guide the user through the process and provide assistance.

Overall, ChatGPT has great potential to revolutionize how we search and do things online by providing a more intuitive, personalized, and user-friendly interface for accessing information and interacting with online content and services. Furthermore, with its advanced NLP capabilities and ability to generate human-like responses, ChatGPT could become a powerful tool for users of all levels of technical proficiency.

How to use ChatGPT by OpenAI?

Chatting with ChatGPT is a unique experience that allows you to interact with a cutting-edge AI language model conversationally. You can use it to generate creative writing, chat with it as if it were a person, or use it to answer questions you might have. Here's a guide on how to use ChatGPT to get the most out of it.

  1. First, you will need to access ChatGPT. You can do this by using the OpenAI API, which is available to developers and businesses, or by using one of the third-party applications that have integrated the API.
  2. Once you have access to ChatGPT, you will need to provide it with a prompt, which is the initial text that the model will use to generate a response. The prompt should be a sentence or two that gives the model context for the conversation.
  3. Next, you can begin interacting with the model by typing a message and pressing the enter key. The model will use the prompt and your message to generate a response.
  4. One thing to note when using ChatGPT is that it's a machine-learning model that has been trained on a vast dataset of text. Therefore it will make mistakes or may not be able to understand some specific terms or questions. Keep that in mind while you are working with it, and perhaps try to be as clear as possible in your interactions with the model.
  5. You can also adjust the level of confidence of the model's responses, which is a value that indicates how likely the model thinks its response is to be accurate. By default, this value is set to 0.7, but you can adjust it to a higher or lower value, depending on your needs.
  6. Additionally, you can also use specific API endpoints to fine-tune the settings like temperature, top_p, top_k, etc for better response.
  7. Have fun with it! Experiment with different prompts and see what kind of responses you can get from the model. You can use ChatGPT for creative writing, answering questions, or just having a conversation with an AI.

Definitely try ChatGPT out. It's mind-blowing.

The post How ChatGPT by OpenAI is Revolutionizing the Way We Search and Do Things Online appeared first on Walyou.