r/GoogleAppsScript • u/Think_Opportunity_79 • Dec 23 '25
Resolved Google Chat APP (AI Chat Bot)
I'm in the middle of developing a Google Chat APP (AI Chat Bot) inside my job's organization , to be honest this its my first time doing something like this so I'm completely lost about what to do actually, I was able to to set up the appsscript code.gs linked to the google cloud project that is inside my organization right?
Im able to run it on a separate URL tab in which the AI its able to respond me back as wished, but when I'm actually talking to the chat AI bot on google Chat app, I'm always getting a (Chat bot name) not responding.
Is there a way I can completely integrate this Chat bot into google chat?
P.D. My organization it's either willing to use the OpenAI api key or the Gemini one,
1
u/Think_Opportunity_79 Jan 05 '26
UPDATE - was able to make it work
the only thing that I needed it to make it to work basically, Google's security is very strict and doesn't allow anonymous scripts to post in Chat. We implemented ServiceAccount.gs to give the bot its own digital identity (so it doesn't run as me personally), and OAuth2.gs to automatically handle the complex security keys and passwords required to log that bot in. It’s the standard, secure way to keep the bot running 24/7 without disconnecting.
After adding them into script project was able to get it to respond back. Thanks for your help really helped me to see it as a different angle.
2
u/CuteSocks7583 Dec 26 '25
Okay, I’m assuming you’re vibe coding.
I tried this myself sometime ago, and this is how it went:
This process has been so tedious, that for most automated sending of messages, I’m creating webhooks in the chat spaces and sending messages to the spaces from Google Sheets using GAS.
Chat bots are only for internal Tech Support and stuff like that.
1
u/zmandel Dec 23 '25
there are some tutorials that guide you to do exactly that. which are you following? look at ADK tutorials that integrate into google chat.
1
u/WicketTheQuerent Dec 23 '25
There is codelab that might help you
https://codelabs.developers.google.com/codelabs/chat-apps-gemini
The last update was done in Aug 2024, so there might be bits that might be obsolete. However, it's very likely that it will be helpful to understand how the different parts should be assembled together.
1
u/PaleHim Dec 23 '25
Have you tried workspace flows? It might be what you need
1
u/venkatakarthk-mark Dec 24 '25 edited Dec 24 '25
I believe i can relate, I tried the same thing and its the same error.
1
u/aniphreak Dec 28 '25
Actually we have the same problem. Im in an exact situation you are in now. The bot is not responding and i gave up. I am searching reddit and found your post funny.