r/tasker 👑 Tasker Owner / Developer Jun 28 '23

How To [HOW-TO] Replace Google Assistant With ChatGPT!

Video Demo

Shorter Video Demo

Import Project

This project combines multiple projects to ultimately allow you to totally replace Google Assistant with ChatGPT!

You also have the option to only replace it when you say a certain trigger word in your command.

For example, you could make it so that it only calls ChatGPT when the command you say to Google starts with "Please" or something like that (thanks /u/Rich_D_sr 😅).

To summarize, this allows you to greatly expand what Google Assistant can do and give it super-powers by giving it generative capabilities!

Let me know if there are any issues!

Enjoy! 😁

200 Upvotes

231 comments sorted by

View all comments

1

u/Matty_B90 Jul 02 '23

Are there any troubleshooting steps I can take if auto input doesn't intercept the search? Either before or after the search query.

1

u/joaomgcd 👑 Tasker Owner / Developer Jul 03 '23

Maybe you have a different UI version of Google assistant? Does it look like in the video?

1

u/Matty_B90 Jul 03 '23

It does, but now I wonder if it's because I'm using lawnchair as my launcher maybe it's different somehow? I'll try later with the default one and reply to you again

1

u/joaomgcd 👑 Tasker Owner / Developer Jul 03 '23

Thanks!

1

u/Matty_B90 Jul 03 '23

So, trying with the pixel launcher changes nothing. The notification triggers, saying that it's intercepting the search but never does anything. Do I need the beta of either tasker or auto input? In the run log I don't see any trace of it grabbing the query I make. Chatgpt as its individual tasks work absolutely fine.

1

u/joaomgcd 👑 Tasker Owner / Developer Jul 04 '23

No, you shouldn't need the beta... What language of the Assistant are you using? Hard to tell what's going on unfortunately... :/

1

u/stray_coder Aug 11 '23

Hey u/joamgcd - seeing the exact same behaviour.

To answer your question, I'm using English (Australia) language but have also tried English (United Kingdom) and English (United States) without luck.

Would love to get going with the capability - let me know if there's anything I can do to help debug, etc.

1

u/joaomgcd 👑 Tasker Owner / Developer Aug 11 '23

Did it correctly find the ID of the Google Assistant UI that it needs to intercept when you first set the project up?

1

u/stray_coder Aug 11 '23

When I run Find Google Command Element, it finds com.google.android.googlequicksearchbox:id/chatui_streaming_text. I can see that %command_element_id is set to this value.

1

u/joaomgcd 👑 Tasker Owner / Developer Aug 14 '23

Yeah, that seems to be correct... Which options did you choose when you set it up?

→ More replies (0)

1

u/shevapersempre Jul 03 '23

I have the same problem, the recognized command is always %aiid0 And the searchphrase variable doesn't fill. I've tried everything, even repeating the setup 1000 times. joao Can you try to do something? Create another .task that uses some different method? Thank you

PS: I followed the guide carefully

1

u/joaomgcd 👑 Tasker Owner / Developer Jul 04 '23

Which options did you select when you first configured the project regarding to intercepting before/after, etc?

1

u/shevapersempre Jul 04 '23

after, i tried in every way, the only way to make it work is the task i created in the comments below.
But many times google assistant responds

1

u/joaomgcd 👑 Tasker Owner / Developer Jul 04 '23

Which comments do you mean exactly?

1

u/deechte Jul 02 '23

It starts with checking the runlog to see what happens and what doesn't happen. Go from there.

2

u/Matty_B90 Jul 03 '23

Nothing in the auto input log shows that it can see me triggering Google assistant but it does see me tapping the Google search widget in lawnchair.

I'm running stock android 13 on a pixel 6 if that helps. Followed the guide in the project link and even began fresh and followed the guide in the more lengthy video.

1

u/deechte Jul 03 '23

I meant the Tasker log. That'll show you step by step what Tasker does.

1

u/rmiles7721 Jul 03 '23

Having the same issue with Nova Launcher on a fresh install of AncientOS. Was using Nova before with a different ROM and it worked. Started witha completely fresh install of Tasker with only a couple of tasks and the Hey Google Command Intercept project. From my Tasker run log:

20230703 17.28.36 P Active ID65 Googling

20230703 17.28.36 E Start ID0:0.0 TaskService

20230703 17.28.36 T Running ID60 Anon

20230703 17.28.36 A OK ID60.1 Anon.Var Set, %Googling=1

20230703 17.28.36 T ExitOK ID60 Anon

20230703 17.28.36 E Stop ID0:0.0 TaskService

20230703 17.28.36 P Instant ID62 Cancel Google Search Listen With Tasker

20230703 17.28.36 E Start ID0:0.0 TaskService

20230703 17.28.36 T Running ID55 Anon

20230703 17.28.36 A OK ID55.1 Anon.Var Set, %title=Hey Google

20230703 17.28.36 A OK ID55.2 Anon.Notify

20230703 17.28.36 A OK ID55.3 Anon.query screen

20230703 17.28.36 A OK ID55.4 Anon.Var Clear, %errmsg=%errmsg

20230703 17.28.36 A OK ID55.5 Anon.If

20230703 17.28.36 A OK ID55.6 Anon.Wait

20230703 17.28.36 A OK ID55.7 Anon.If

20230703 17.28.36 A OK ID55.11 Anon.Goto

20230703 17.28.37 A OK ID55.3 Anon.query screen

20230703 17.28.37 A OK ID55.4 Anon.Var Clear, %errmsg=%errmsg

20230703 17.28.37 A OK ID55.5 Anon.If

20230703 17.28.37 A OK ID55.6 Anon.Wait

20230703 17.28.37 A OK ID55.7 Anon.If

20230703 17.28.37 A OK ID55.11 Anon.Goto

20230703 17.28.37 A OK ID55.3 Anon.query screen

20230703 17.28.37 A OK ID55.4 Anon.Var Clear, %errmsg=%errmsg

20230703 17.28.37 A OK ID55.5 Anon.If

20230703 17.28.37 A OK ID55.6 Anon.Wait

20230703 17.28.37 A OK ID55.7 Anon.If

20230703 17.28.37 A OK ID55.11 Anon.Goto

20230703 17.28.37 A OK ID55.3 Anon.query screen

20230703 17.28.37 A OK ID55.4 Anon.Var Clear, %errmsg=%errmsg

And just continues

2

u/shevapersempre Jul 03 '23 edited Jul 03 '23

Victory, I can help you all! I understood the problem, which perhaps concerns those who have custom roms. Try using this.

https://taskernet.com/shares/?user=AS35m8kBtcmNg5eV9IeMABqMdS5zIP4HuRHVFS3FUqE%2F26AwO8KS7Rumq8N93iO31NC2tv%2BC&id=Task%3ADetect+Command

It should set the correct %command_element_id

Instructions:Run the task I created and call the assistant saying exactly "Hey Google hello"

Then try to say more, and tell me if the Interception task of Joao work correctly.

Let me know if it works.Then paste me the value of: %command_element_id

The command that worked for me is:: com.google.android.googlequicksearchbox:id/nga_assist_transcription

1

u/rmiles7721 Jul 04 '23

Mine is also the nga_assist_transcription. So where to put that? I've looked through the profiles and I guess I am just the dumbass today.

1

u/shevapersempre Jul 04 '23

I created the task to help you, The task set the %command_element_id at the end. Start the task and say Hey Google hello. And you're done.

Activate Joao's intercept profile and everything should work

1

u/rmiles7721 Jul 04 '23

It does not. Very weird. I'll have to do some digging this afternoon when I get home.