Agents
OpenAI Assistant
The OpenAI Assistant node is an advanced agent that leverages OpenAI’s Assistant API to create a powerful, context-aware AI capable of executing tools and engaging in multi-turn conversations.
Node Details
- Name:
openAIAssistant
- Type: OpenAIAssistant
- Category: [[Agents]]
- Version: 4.0
Parameters
-
Select Assistant (Required)
- Type: asyncOptions
- Description: Allows selection of a pre-configured OpenAI Assistant.
- Load Method: listAssistants
-
Allowed Tools (Required)
- Type: Tool[]
- Description: A list of tools that the assistant can use to perform tasks or gather information.
-
Input Moderation (Optional)
- Type: Moderation[]
- Description: Moderation tools to detect and prevent harmful input.
-
Tool Choice (Optional)
- Type: string
- Description: Controls which tool is called by the model. Can be “none”, “auto”, “required”, or a specific tool name.
- Additional Params: true
-
Parallel Tool Calls (Optional)
- Type: boolean
- Default: true
- Description: Whether to enable parallel function calling during tool use.
- Additional Params: true
-
Disable File Download (Optional)
- Type: boolean
- Description: Prevents downloading of files included in messages.
- Additional Params: true
Input
- A string containing the user’s message or query.
Output
An object containing:
text
: The assistant’s responseusedTools
: An array of tools used by the assistantartifacts
: Any generated artifacts (e.g., images)fileAnnotations
: Information about files referenced in the responseassistant
: Details about the assistant session (assistantId, threadId, runId, messages)
How It Works
- The node initializes with a selected OpenAI Assistant and configured tools.
- It receives user input, which may be moderated if specified.
- The assistant processes the input, potentially using tools and accessing its knowledge base.
- It generates a response, which may include text, file references, or generated artifacts.
- The node manages the conversation thread, allowing for context retention across multiple interactions.
Use Cases
- Complex, multi-turn conversational AI systems
- Task-oriented assistants with tool-using capabilities
- Information retrieval and analysis from large datasets
- Creative content generation (text, images)
- Educational tutoring systems
- Customer support automation
Special Features
- OpenAI Assistant Integration: Leverages the full capabilities of OpenAI’s Assistant API.
- Tool Usage: Can use a variety of tools to enhance its capabilities.
- File Handling: Ability to work with and reference files in conversations.
- Conversation Threading: Maintains context over multiple interactions.
- Moderation: Optional input moderation for safe interactions.
- Parallel Tool Execution: Can run multiple tools simultaneously for efficiency.
Was this page helpful?