I am looking to create a keyboard shortcut that would allow me to copy specific text (like the text from an article or other source). This same shortcut would then directly send the text to a GPT. Finally, I would like to automatically retrieve only the GPT's response, or do so via another shortcut.
Would you have a solution to automate this process with a shortcut? If it requires a custom setup, we could discuss further implementation.
Currently, I copy the text and send it to my GPT. I then wait for its response, retrieve it, and paste it into a text field, which wastes time.
Ideally, I’d like to trigger GPT as soon as a text is selected, sending that selected text directly to the chosen GPT. Then, I would like to retrieve GPT’s response with another shortcut that inserts it directly into the text field I’m working in.
Anything that you do manually, with your eyes and hands, is possible with KM, I always say.
What is "my GPT". Is that an app? Are you using the official Chat GPT App from OpenAI?
No, you don't want that. You would never be able to select text without the macro kicking in and taking control of your Mac away from you. Besides, it's extremely difficult to do that detection in Keyboard Maestro (as far as I can tell.) You probably want a mouse button or a keyboard key to trigger your macro to act upon the selected text.
What does "the chosen GPT mean?"
That's a cool looking utility. But it seems to require something called "API credits with OpenAI" which is a cost above and beyond the normal paid account.
That utility looks nearly perfect for him. And that utility works FAST. Probably much faster than anything I could write for him. I would like him to state his speed requirements before I write any solution for him. Any solution I write for him would be just as slow as if he did it manually. I would also like him to explain how he does it manually. His question assumes that we have Chat GPT and that we know how it works. Personally, I don't, so perhaps someone else can help him. (Actually, I trust OpenAI so I'm willing to download it. But when I run it, it says "Sorry we were unable to create your account" so I cannot write any macro.)
Using an API is likely the fastest and most reliable way, no matter which LLM we are talking about. Depending on what you do and which model you choose, API access can be much cheaper than any other paid access.
Yes, I agree. But he didn't say if "fast" or "reliable" were important. I've managed to download the app and register, but the app is EXTREMELY SLOW. It takes about a minute to see the reply get "typed". but maybe he's okay with that, because perhaps he wants this done when he's not at his computer and speed isn't an issue.
I have far too many questions about your process to be able to write any code to help you. Perhaps if you show a video of your process I might understand better.
Sorry, I don't even read my messages on this website, nor do I share my email address with other people. My philosophy is that all communication with me must be made through the public forums on this site. Is the problem that you don't know how to upload a video?
Write down, step by step, how you do that manually and how you then use the returned answer. Post those steps here and someone will (hopefully) be able to walk you through the necessary steps of making a macro.
And be complete, even when something is obvious to you. For example -- how do you "send it to my GPT"? Copy and paste into a dialog in another app? Right-click and select a service? Something else?
At the moment there are far too many things that you know but we don't for anyone to be able to help.
Imagine: you're on Gmail. A colleague sends you an email, and you want to respond quickly using ChatGPT, specifically with a GPT (a bot trained to respond to your emails).
To do this, you copy the colleague's text and send it to the GPT. Then, you copy the GPT's response before sending it back via email to your colleague. But you receive hundreds of emails per day, and you'd like to automate this process to respond quickly with this same GPT. In other words, you'd want a shortcut that allows you to open this GPT as soon as you select the text from your email, and another shortcut that lets you retrieve the GPT's response and integrate it directly into the Gmail text field. This would allow you to respond to all these emails quickly.
To propose a viable solution, would you need more details on this? If so, which ones?
Imagine: you're on Gmail. A colleague sends you an email, and you want to respond quickly using ChatGPT, specifically with a GPT (a bot trained to respond to your emails).
To do this, you copy the colleague's text and send it to the GPT. Then, you copy the GPT's response before sending it back via email to your colleague. But you receive hundreds of emails per day, and you'd like to automate this process to respond quickly with this same GPT. In other words, you'd want a shortcut that allows you to open this GPT as soon as you select the text from your email, and another shortcut that lets you retrieve the GPT's response and integrate it directly into the Gmail text field. This would allow you to respond to all these emails quickly.
To propose a viable solution, would you need more details on this? If so, which ones?
Basically, all of it. We need a description of what you do manually in order to understand, because there's a good chance very few of us have the exact same stuff you have, nor do what you do, so descriptions at a summary level don't help.
Translating what you've written, we need something more along the lines of this made-up workflow:
Using Gmail in the Chrome browser, I select text in an email.
I copy that text with Command-C.
I switch to [what, another app? another browser tab? something else?] and hit Launch Bot.
The Launch Bot dialog allows me to select the appropriate robot, and I choose Email Replier.
In the Email Replier window, I select the Input box and paste the copied text.
I click a Go button in [whatever that ChatGPT app/window is].
After some time, a response appears. It shows up in a box labeled Answer Text.
Within the Answer Text box, I press Command-A to select all the text, then Command-C to copy it.
I switch back to Gmail, open a reply email, and paste the copied text in the body of the email
But for us, the big holes right now are how are you using ChatGPT—functionally, how do you get to it on your system when you're going to use it, and what precisely do you manually do on that page to process the text.
With a detailed guide like that, it becomes much more realistic to give you better answers.
I use ChatGPT through its website on Microsoft Edge. With two screens, I keep ChatGPT open on the right screen at all times, while the conversation sites (LinkedIn, WhatsApp, Gmail) are on the left screen. My usage relies on specific "GPTs" dedicated to specific tasks, which I call upon about 150 times per day. Each request runs on the GPT-4 model, providing a response in just about two seconds.
Here’s my process for handling text: I select the text from the relevant conversation on the left screen, copy it with Command+C, and then paste it into ChatGPT’s text field. Once the response is generated, I copy it, return to the initial conversation, and paste it (Command+V) before sending. This manual workflow, with copy-and-paste steps, allows me to manage interactions efficiently while quickly switching between my conversations and ChatGPT across both screens.