Assistants API Retrieval + Function call

How do I use the assistants api to operate tools from uploaded files,i want to implement based on having the assistant read the document I uploaded before executing the tool

When you add a document to the assistant or to the thread it will be considered in your prompts.
I have an email processing assistant that I feed the email attachments in the thread before processing the email.

I working on a similar item. Where i attach a file while creating an assistant.
The assistant is created with Retrieval and functionCalling enabled.

When asked to get similar items for the given query, it creates its own items and calls the function.

any help here ?

Share more details - (also you probably don’t want to programmatically create an Assistant ‘all the time’ they are persistent, you can see them in your dashboard)

Happy to help!