Using Google Document AI via HTTP Request node

Hello everyone,
I am trying to integrate PDF analysis into an n8n workflow. To do this, I would like to use the Google tool “AI Document”. However, I’m not sure how to approach this, and I’m stuck with the HTTP request. The output should be structured data in JSON format. To do this, the PDF should be uploaded to Google AI Document and then the results returned. I’ve added the first part of the workflow.

Hier noch die Informationen die ich beim HTTP Request eingeben kann:

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Error code
404
Full message
Unsupported content type: text/html; charset=utf-8
Request
{ “body”: { “”: “” }, “headers”: { “accept”: “application/json,text/html,application/xhtml+xml,application/xml,text/;q=0.9, image/;q=0.8, /;q=0.7” }, “method”: “POST”, “uri”: “https://eu-documentai.googleapis.com/v1/projects/1066385670266/locations/eu/processors/7759736a6793ab7:process”, “gzip”: true, “rejectUnauthorized”: true, “followRedirect”: true, “resolveWithFullResponse”: true, “followAllRedirects”: true, “timeout”: 300000, “encoding”: null, “json”: false, “useStream”: true }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:

When reading the API documentation ( Method: processorVersions.process  |  Document AI  |  Google Cloud Documentation ), I would assume that you have to send a JSON body with your request to receive a valid response.