04.6.2.01 Create Assistant
Node Description
Create Assistant - an action type node required to create a GPT Chatbot assistant.
Node Configuration
To configure the Create Assistant node, you must fill in the required and optional fields.
Required* fields include:
- API Key;
- Model ID.
API Key
The field required for entering the API key (see more details here).
Model ID
Drop-down list to select the desired version of the GPT Chatbot model (see more details here). By default, the field is filled with the value gpt-3.5-turbo.
File IDs list
A field for entering file IDs that the assistant can use, for example, to write code, if these features are enabled.
The following format for entering file IDs is used:["file-abc123","file-abc456"]
.
Metadata
The field required to enter additional information about the assistant in the key-value format. The key can contain 64 characters, and the value can contain 512 characters.
Assistant name
A field for entering the name of the assistant. The name can contain up to 256 characters.
Description
A field for entering a description of the assistant. The description can contain up to 512 characters.
System instructions
A field for entering instructions for the assistant.
Tools
Fields for configuring the assistant with the option to select true/false:
- Code interpreter(Tools) - The setting allows the assistant to write and run Python code in an isolated runtime environment. This tool can process files with a variety of data and formatting, as well as create files with data and graph images. The code Interpreter allows your Assistant to iteratively run code to solve complex code and mathematical problems. For more information, see here.
- Retrieval(Tools) - Extraction complements the assistant with knowledge beyond its model, such as private product information or documents provided by your users. After the file is uploaded and transferred to the assistant, the documents are automatically divided into parts, indexed and attachments are saved. For more information, see here.
Function(Tools)
A field for entering a function that the assistant can use. Assistants API supports function calling. Function calling allows you to describe functions to the Assistants and have it intelligently return the functions that need to be called along with their arguments. The Assistants API will pause execution during a Run when it invokes functions, and you can supply the results of the function call back to continue the Run execution.
For more information, see here.
The following function input format is used:
[{"type": "function", "function": {"name": "function_name","parameters": {},"description": "function_description"}]
Example of launching a node
It is necessary to run the Create Assistant node once with the parameters:
- API Key - Your API key;
- Model ID - gpt-3.5-turbo;
- Assistant name - Latenode platform assistant;
- Description - An assistant answering questions about the user's work on the Latenode platform, for example, about creating scenarios, nodes, routes.
The result of the node execution is the creation of an assistant named assistant Latenode platform assistant. The output data of the node Create Assistant are the parameters of the assistant: