Which role is the Openai node in AI Agents

I want to use the "chat"role for the openai model in the AI agents.

it looks like it’s defaulting us to use the “assistant” role.

can someone confirm this? is there a way to change the role?

here is a screenshot of the openai playground and what i want to use in the n8n ai agent.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Hanson_Cheng

I get that it can be a bit confusing navigating the AI nodes and we are currently working on making that more clear in the future. :eyes:

Basically if you want to do the standard OpenAI Chat you’d use our LLM Chain Nodes and attach the OpenAI Chat Model.

:bulb: The other OpenAI Model that is mentioned here would be the Completion model. We are also working on providing a better description here!

The OpenAI Assistant nodes that you were referring to are exclusively built for the OpenAI Agent/Assistent (What you have in the OpenAI API playground under Assistant).

You could also use our AI Agent node and hook up the OpenAI Chat Model, which would generally work in the same way. We built the AI Agent node as a replacement for the OpenAI Assistent node, but with the AI Agent node you could connect other models too (e.g. Ollama, Mistral etc.).

Below an overview of the three “categories” described above.

I hope this clarifies it a bit :pray: But let us know if there’s still anything unclear!

1 Like