So I’m just really trying to learn more about google chat bots - I’ve built a few bots for discord at this point, and I found what looked like a decent tutorial, that even adds some AI calls.
https://github.com/GQueues/build-a-google-chat-bot-with-chatgpt/tree/main/mod_1_chat#readme
In order to follow the tutorial, I had to create a Workspace account for myself, as I’m not affiliated with any organizations that would have one already set up, which means handling permissions and things like that are all on me.
I was able to fix some errors with deployment (Literally stuck on step 8 of the guide), but now I’m running into one I can’t solve.
Trying to deploy returns this error:
Build failed: Build error details not available.Please check the logs at https://console.cloud.google.com/cloud-build/builds;region=us-central1/fb6483d5-a4f4-4965-a63e-6ccb23510c74?project=977930447661. Please visit https://cloud.google.com/functions/docs/troubleshooting#build for in-depth troubleshooting documentation for build related errors.
And trying to look at the logs just shows this:
The service account running this build does not have permission to write logs. To fix this, grant the Logs Writer (roles/logging.logWriter) role to the service account.
My service account is listed under the Cloud Functions details as chatgpt-bot-429817@appspot.gserviceaccount.com, so I went to the IAM configuration page, and added the service account as a new principal, and added Logs Writer as a role. Redeploying doesn’t seem to have changed anything.
Any help would be hugely appreciated, this is the second time I’ve tried to build a google chat bot (first time was using app script) and I ended up just using webhooks as the configuration issues were so challenging.
Thanks