Hey guys,
i am currentlöy building my AI E-Mail Agent using n8n cloud. I am trying to figure out why my OPenAI chat model is not able the work with a normal Chat Trigger input.
Here is the error code:
{ “status”: 400, “headers”: { “access-control-expose-headers”: “X-Request-ID”, “alt-svc”: “h3=":443"; ma=86400”, “cf-cache-status”: “DYNAMIC”, “cf-ray”: “93c9b72adbf19b80-FRA”, “connection”: “keep-alive”, “content-length”: “187”, “content-type”: “application/json”, “date”: “Thu, 08 May 2025 14:41:00 GMT”, “openai-organization”: “____”, “openai-processing-ms”: “30”, “openai-version”: “2020-10-01”, “server”: “cloudflare”, “set-cookie”: “__cf_bm=tMNFRYF1T1yIcHSYor.UVgECVtal1TCtKY.tYkVuxak-1746715260-1.0.1.1-JwElmaMguV.t_vDCEc_dntDCqiIOd_tVuOPz2Y18N.7bhWrKYpQMMOBrnSjBYjRJGzO0h_qkQO3pjMGmHvy9xoCZlCnUmHruauP.E.libt8; path=/; expires=Thu, 08-May-25 15:11:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=.WcSCx6UY5qaB4lHSYVr5e5HzXmjnyGtACe9Q6lNCOo-1746715260898-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None”, “strict-transport-security”: “max-age=31536000; includeSubDomains; preload”, “x-content-type-options”: “nosniff”, “x-envoy-upstream-service-time”: “33”, “x-ratelimit-limit-requests”: “10000”, “x-ratelimit-limit-tokens”: “200000”, “x-ratelimit-remaining-requests”: “9999”, “x-ratelimit-remaining-tokens”: “199325”, “x-ratelimit-reset-requests”: “8.64s”, “x-ratelimit-reset-tokens”: “202ms”, “x-request-id”: “req_34980dcb4f9ef71e85e8553a62df8074” }, “request_id”: “req_34980dcb4f9ef71e85e8553a62df8074”, “error”: { “message”: “Invalid value for ‘content’: expected a string, got null.”, “type”: “invalid_request_error”, “param”: “messages.[3].content”, “code”: null }, “code”: null, “param”: “messages.[3].content”, “type”: “invalid_request_error”, “attemptNumber”: 1, “retriesLeft”: 2 }
The workflow is screenshoted in the attachment.
Thanks in advance
Lucas