What is your goal?
Get the text file and send it to gemini for analysis
What is the problem & what have you tried?
I’m trying to post a file to gemini. I will take that file from google drive and send the whole file to gemini but I don’t know how to do it exactly. Can someone help me?
Screenshots (scenario flow, module settings, errors)
Hi @Dat_Tran,
Your logic looks sound. Where exactly are you experiencing the error? Is it with downloading the file contents from google drive or is it the upload into Gemini?
This info will help us troubleshoot further!
-@Trainward_Consulting
Hi @Dat_Tran,
Welcome to the community. 
From my understanding of your query, you would like to upload a file from Google Drive to Gemini.
To achieve this, you can:
-
Download the file from Google Drive using the Download a File module. (Already there in your scenario)
-
Use Gemini’s Upload a File module and map the downloaded file from the previous step.
-
After the file is uploaded, add the Generate a Response module, include the MIME type and URI returned by the Upload a File in the Message Type, setting the type as File module so Gemini can access and process the uploaded file.
I’ve attached screenshots for reference, which should help with the configuration.
If you run into any issues while setting this up, feel free to let us know and we’ll be happy to help.
Best Regards,
@Mohamed_Jahar
Thank you, my problem has been resolved
Thank you. This answer is very helpful to me