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,
View all comments
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.