Hey there, I am struggling a lot with simple things in n8n. I managed to setup google credentials via service account and could get available spaces. As the google chat node is missing a method for getting messages in a space, I wanted to call the API directly using HTTP Request node in conjunction with google chat node custom operation. I did hit the toggle to allow the credentials to be used for http requests. Once I did that, n8n complains about secretOrPrivateKey must be an asymmetric key when using RS256. Without the toggle at least getting the space works.
Can someone please assist setting this up to let me call the api?
Btw, saving google credentials always stuck at the testing stage because of an exception Cannot read properties of undefined (reading 'googleApiCredentialTest'). Seem to be a bug in the latest docker image.
Btw2, without toggling the permission to use the credential for http requests I receive an error from the google api Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
It drives me crazy that all my plans to use n8n stuck at the integration of 3rdParty
Yup, it’s simpler than your setup, but I remember how much time it took me to figure out the same thing… hahaha.
Since you’ve found your solution, I’d appreciate it if you could take a moment and mark the post as the solution…this will help others who might be trying to solve the same problem in the future. :->
FYI: A restriction is the endpoint is paginated, the very simple solution does not support this. It also doesn’t support sorting. So very large threads >100 messages will not be complete. Still a nice and simple solution.
In regards to marking as solved, I don’t see the option yet, likely due to me being new in this forum.
Hi! In this video, you used the Manual Execution Trigger. How can we set it up so that the trigger is a message received from Google Chat, given that there isn’t a built-in trigger node for incoming Google Chat messages?
I just would like get some help as im trying to create a Google chat app with either a apps script or http node.
The goal is that I want to be able to send and receive message from n8n.
I can recieve messages so far with the help appscript and it only works when using @mention. But my problem is I want to have the app to send all the messages to my webhook. I also tried the dm to app but I can’t respond to dm via the webhook or any means if you can help me I would be very great ful
Setup webhook in n8n to receive Google Chat messages
Creating bidirectional communication between Google Chat and n8n
This supports both space as well as DM…i.e you will be able to chat with the AI agent inside the space as well as in DM (Directly to the application)
From API perspective this is possible. You need either a service account with domain wide delegation or use Oauth2 with a user who has joined the corresponding space.
I do use the Oauth2 approach with a custom node which implements the get message list operation.
Downside of Oauth2 approach is that you won’t get deplay names of users but only their id (its called name in googles API).