Google Docs with AI Agent not working

I’m trying to ask the AI Agent to pull data from a DB and then generate a summary in Google Docs. I used a Google Docs create tool and then a Google Docs Update tool to fill out the file (since the create tool doesn’t allow me to add the body, which is a bummer) . But everytime I run it, it fails saying that the document doesn’t exist. I send the URL as a parameter in the update and when I test the URL it actually exists and works, so not sure why is failing. The file and creds are mine so it should not be a creds issue.

Any help would be appreciated

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi @vicoleon
My guess would be that the nodes are one right after the other? As with a lot of cloud-based API stuff, just because the create call returned doesn’t mean that what it created is already accessible through the API, so it may be that your nodes are simply executing too quickly.
Try adding a Wait node in between to slow it down a second or two and see if that helps. If it still doesn’t work, it would help to post your workflow here (use the ‘preformatted text’ button in the forum post window and paste in the JSON for the workflow) so we can get a better idea.

thank you for your answer…however since these are tools connected to th AI Agent I can’t add a wait otherwise it would be a great solution

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