# OpenAI API - uploaded file is not analyzed

**URL:** <https://community.make.com/t/openai-api-uploaded-file-is-not-analyzed/34518>\
**Category:** Questions\
**Tags:** chatgpt, api\
**Created:** [April 20, 2024, 9:30pm UTC](https://community.make.com/t/openai-api-uploaded-file-is-not-analyzed/34518 "2024-04-20T21:30:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandyman](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@Sandyman](https://community.make.com/u/Sandyman)\
**Post date:** [April 20, 2024, 9:30pm UTC](https://community.make.com/t/openai-api-uploaded-file-is-not-analyzed/34518/1 "2024-04-20T21:30:24Z")

</div>

Hi, I am trying to create a workflow that will extract data from invoices using the OpenAI API. I successfully upload a file via the OpenAI Upload and File module, but then in the OpeanAI Create a Completion module (am I using the correct module?) I don’t get a response that is based on the data from the file, but fake data. In other words - ChatGPT responds correctly to my prompt, but with completely made up data. It successfully ignores my uploaded file and its contents. Does anyone have any experience what to do about this?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/9/7916ca517056a1d3c7ec919b5ec0d0fd64c3832f.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/3/232df300f027fcf84277c524a038ee67b560f435.png)

No error message is displayed.

Thanks for any help

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [April 21, 2024, 12:20am UTC](https://community.make.com/t/openai-api-uploaded-file-is-not-analyzed/34518/2 "2024-04-21T00:20:52Z")

</div>

Welcome to the Make community!

I think that’s not the right way to pass a file to create a chat completion.

But the only way I’ve gotten files to work is by using “Message an Assistant” module, which has a file field where you can insert file ids.

[samliew](https://samliew.com/services) – [request private consultation](https://samliew.com/request-quote?ServiceType=Automation%20Consultation&Referrer=Make)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [July 20, 2024, 12:34am UTC](https://community.make.com/t/openai-api-uploaded-file-is-not-analyzed/34518/3 "2024-07-20T00:34:01Z")

</div>


