Collabai Agent Node
AI-generatedOverview
This node integrates with the Collabai API to interact with AI assistants. It allows users to select an assistant, enable tools like code interpreter and file search, provide prompts either from previous node input or a custom variable, and include Google Docs or Drive URLs for context. Users can upload files to the assistant, create new conversation threads, and delete specific or all files associated with the assistant. The node sends the prompt and context to the assistant and returns the assistant's response. This is useful for automating AI-driven conversations, document analysis, and code interpretation within workflows.
Use Case Examples
- Automate customer support by sending user queries to a Collabai assistant and returning AI-generated responses.
- Analyze content from Google Docs by uploading document URLs and querying the assistant for summaries or insights.
- Use the code interpreter tool to run code snippets dynamically within a workflow.
Properties
| Name | Meaning |
|---|---|
| Assistant Name or ID | Select or specify the ID of the Collabai assistant to interact with. |
| Code Interpreter | Enable or disable the code interpreter tool for the assistant. |
| File Search | Enable or disable the file search tool for the assistant. |
| Prompt Source | Choose how to determine the prompt for the question, either from the previous node's chat input or a custom input variable. |
| Input Variable Name | Name of the input variable to use from previous item when using custom prompt source. |
| Google Doc URLs | Add Google Doc or Google Drive URLs to include in the request for context. |
| Upload Files | Option to upload the specified Google files to the assistant. |
| Create New Thread | Option to create a new conversation thread for this interaction. |
| Delete Files | Option to delete specific files from the assistant after upload. |
| Delete All Files | Option to delete all files from the assistant. |
Output
JSON
success- Indicates if the operation was successful.message- Message describing the result or error details.googleFiles- The Google files URLs provided in the request (if any).newFileIds- IDs of newly uploaded files (if files were uploaded).question- The prompt or question sent to the assistant.assistantDetails- Details about the assistant including instructions, model, and enabled tools.thread_id- Indicates if a new conversation thread was created.fileIds- IDs of files deleted (if specific files were deleted).data- Response data from the assistant's chat API call.
Dependencies
- Collabai API key credential
Troubleshooting
- Ensure the Collabai API key credential is correctly configured and valid to avoid authentication errors.
- If no Google Doc URLs are provided when 'Upload Files' is enabled, the node returns an error prompting to add URLs.
- Network or API errors during file upload, chat request, or file deletion are logged; verify network connectivity and API endpoint availability.
- If the assistant ID is invalid or the assistant details cannot be loaded, the node logs an error and may fail to proceed.
- When enabling tools like code interpreter or file search, ensure the assistant supports these tools to avoid unexpected behavior.