Skip to content
Getting Multiple Fi...
 
Notifications
Clear all

Getting Multiple File IDs from OpenAI Assistant

3 Posts
2 Users
0 Reactions
6 Views
Just_Horse_Riders
(@just_horse_riders)
Posts: 2
New Member
Topic starter
 

Hello,

I'm working on a scenario where I upload a file to an OpenAI assistant for editing and splitting into four documents. After the assistant completes the task, I can see the four files, but I'm unable to retrieve the individual file IDs when attempting to create a document. Do you have any suggestions?

 
Posted : 15/07/2024 4:10 pm
samliew
(@samliew)
Posts: 293
Reputable Member
 

The file IDs are contained within an array. When you encounter an array, utilize an Iterator module.

Subsequently, you'll need to employ the Make an API Call module after the Iterator if your objective is to download the file generated by OpenAI.

Finally, it's probable you'll prefer to use the Google Drive “Upload a file” module rather than the Google Docs “Create a document” module.

Join the unofficial Discord server to chat with us!

 
Posted : 15/07/2024 4:20 pm
Just_Horse_Riders
(@just_horse_riders)
Posts: 2
New Member
Topic starter
 

Thanks! I have some Python code where I need to input file IDs. However, when I attempt to add them to a Google Doc, it's creating four separate Google Docs instead of combining them into a single one. Could you help me understand why this might be happening?

 
Posted : 15/07/2024 6:27 pm
Share: