Hey @fer_not Welcome!
Can you share the workflow with us? Also for now try using the AI agent and there give your message 1 as a system prompt and your AI prompt as the message 2, and connect your OpenAI model there it should work that way.
welcome to the n8n community @fer_not
I believe the error is happening because the tutorial uses an older OpenAI node setup, and in the current n8n version you need to enable structured JSON output (or disable “Require Specific Output Format”) and make sure the prompt returns valid JSON instead of plain text.