OpenAI Chat Model1 <uuid>.role column doesn't exists

Over the last week, I’m consistently this error from my Agent node attached to an OpenAI model.

Error in sub-node ‘OpenAI Chat Model1‘ column 9827483463398fbb7d6b96916fe451d8bdefa0e8.role does not exist

The only solution I’ve found is to delete the open ai component and add a new one, but that only seems to work temporarily. It will execute fine in the workflow building, but then bricks when I trigger the workflow normally. Only started noticing this after updating from the 4.1 to 5 models, but I’m not sure if that’s just a coincidence. The prompt hasn’t materially change on the user / system side.

I’d suggest:

  • Clear and recreate the OpenAI node after updating to v5.

  • Double-check if you’re using the new ‘Chat Model’ node (v5 structure is stricter).

  • Make sure system, assistant, and user roles are defined properly in your prompt input.

  • If it persists, export and re-import the workflow so the node JSON refreshes.

Besides having separate user and system prompts, which I think covers off the system and user roles, is there anything else required for v5? I’m not familiar with passing the assistant role.

What I find strange is I swap out the OpenAI Chat Model node with a new one, test the workflow out, and experience no issues. But when the workflow runs independently, the error surfaces. What’s changed?

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