How to Use OpenAI Functions Agent and OpenAI Structured Output in n8n?

Hi everyone,

Has anyone used the OpenAI Functions Agent node in n8n?

The documentation is quite vague—it just mentions that it’s for function calling, but it lacks clear examples of:

  1. How to insert a function into it.
  2. Whether it’s possible to use OpenAI’s structured output directly from this node.

Additionally, I have the same question regarding the OpenAI Message Model node.

  • If OpenAI already provides structured output, why do I need to attach an output parser tool to ensure a structured response in this node?

Has anyone successfully implemented structured output directly in these nodes without additional processing?

Any insights or examples would be greatly appreciated!

Thanks!

Information on your n8n setup

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