节点与集成
OpenAI
Use the OpenAI node to automate work in OpenAI and integrate OpenAI with other applications. n8n has built-in support for a wide range of OpenAI features, including creating images and assistants, as well as chatting with models.
On this page, you'll find a list of operations the OpenAI node supports and links to more resources.
Operations
- Text
- **Generate a Chat Completion**
- **Generate a Model Response**
- **Classify Text for Violations**
- Image
- **Analyze Image**
- **Generate an Image**
- **Edit an Image**
- Audio
- **Generate Audio**
- **Transcribe a Recording**
- **Translate a Recording**
- File
- **Delete a File**
- **List Files**
- **Upload a File**
- Video
- **Generate a Video**
- Conversation
- **Create a Conversation**
- **Get a Conversation**
- **Update a Conversation**
- **Remove a Conversation**
Templates and examples
Browse n8n-nodes-langchain.openai integration templates or search all templates
Related resources
Refer to OpenAI's documentation for more information about the service.
Refer to OpenAI's assistants documentation for more information about how assistants work.
For help dealing with rate limits, refer to Handling rate limits.
If this node doesn't support the operation you want to do, you can use the HTTP Request node to call the service's API.
You can use the credential you created for this service in the HTTP Request node:
- In the HTTP Request node, select Authentication > Predefined Credential Type.
- Select the service you want to connect to.
- Select your credential.
Refer to Custom API operations for more information.
Using tools with OpenAI assistants
Some operations allow you to connect tools. Tools act like addons that your AI can use to access extra context or resources.
Select the Tools connector to browse the available tools and add them.
Once you add a tool connection, the OpenAI node becomes a root node1, allowing it to form a cluster node2 with the tools sub-nodes3. See Node types for more information on cluster nodes and root nodes.
Operations that support tool connectors
Common issues
For common questions or issues and suggested solutions, refer to Common issues.
Footnotes
- Back
Each n8n cluster node contains a single root nodes that defines the main functionality of the cluster. One or more sub nodes attach to the root node to extend its functionality.
- Back
In n8n, cluster nodes are groups of nodes that work together to provide functionality in a workflow. They consist of a root node and one or more sub nodes that extend the node's functionality.
- Back
n8n cluster nodes consist of one or more sub nodes connected to a root node. Sub nodes extend the functionality of the root node, providing access to specific services or resources or offering specific types of dedicated processing, like calculator functionality, for example.
官方原文和授权
本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。