N8n mit Gmail Authentification

Hey,I want to try using an AI Agent in n8n, but it’s not working. When I try to add Gmail, I get an “OAuth Authorization Error.”
However, I’ve already connected Google services with n8n successfully. please can you help me

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I had this issue a few times and this is how I resolved the problem:

  1. Leave your workflow and go to n8n → Credentials.
  2. Go to your Gmail credential.
  3. Even if your account shows as connected. Locate and select the Sign in with Google option (see attached)
    1. Note: When you select that option, the UI might change and you might have to find that button and select it at the bottom of the connection page.
  4. When you connect, look at your browser to make sure a pop-up window is not being blocked. Unblock it, if necessary.
  5. Select your account (like [email protected])
  6. When you get to the dialog that has a title like “wants to access your Google Account”, read all the settings and make sure those are what you require for your workflow to run (see attached).
    1. If not, close the dialog, go back to https://console.cloud.google.com, make the necessary adjustments and then start back at step 1 here.
  7. Make sure scroll to the bottom of the access dialog and select the Allow button (see attached)
  8. At the end of the process, you should see a Connection successful option. Now you can close the dialog, Save your n8n Gmail credentials (if applicable) and then try your workflow again.

I hope this helps! -Bill

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.