OpenAI chat model issues with n8n

The OpenAI Agent node in n8n Cloud returns ‘OPENAI_API_KEY environment variable is missing or empty’ even when API key is set in the credentials. Other OpenAI nodes work as expected. Is this node not compatible with Cloud, or is there a workaround? I am using the n8n cloud version and things were working fine until last night.

Hey @rlemos !

Can you share an image with that node/workflow and the error?

I am really curios about that…

@rlemos you can also download the json file and share the agent node code here - might to help pinpoint the problem..

i have the same issue also

Hey, what your Credentials UI shows?

Connection successfully?

Did you tried to recreate the Credentials?

Cheers!