Handling multiple files including docx and excel

Hi,

in my chatbot, users can upload multiple files including docx and excel.

for docx and excel, i extract the data with libraries.

for the other types i use inlineData.

When i get multiple files for example:

for example:

‘architecture.xlsx’ (a list of components)

‘architecture.docx’ (a document that describes architecture)

‘architecture.jpeg’ (a picture of a diagram)

‘contacts.xlsx’ (a list of contacts).

what is the best way to handle these files?

How to build the request correctly?

Thanks

Hello
welcome to the forum!!

For managing the file uploads and getting the URIs you need to include in your request, check out the Files API guide : https://ai.google.dev/gemini-api/docs/files

Thanks!!