Cluster Nodes
root-nodes
n8n-nodes-langchain.agent
OpenAI Functions Agent node documentation

OpenAI Functions Agent node

Use the OpenAI Functions Agent node to use an OpenAI functions model (opens in a new tab). These are models that detect when a function should be called and respond with the inputs that should be passed to the function.

Refer to AI Agent for more information on the AI Agent node itself.

OpenAI Chat Model required: You must use the OpenAI Chat Model with this agent.

Node parameters

Configure the OpenAI Functions Agent using the following parameters.

Prompt

Require Specific Output Format

Node options

Refine the OpenAI Functions Agent node's behavior using these options:

System Message

Max Iterations

Return Intermediate Steps

Refer to the main AI Agent node's Templates and examples section.

Common issues

For common questions or issues and suggested solutions, refer to Common issues.