# OPEN-AI Message Chat GPT Assistant with multiple File ID's

**URL:** https://community.make.com/t/open-ai-message-chat-gpt-assistant-with-multiple-file-ids/64478
**Category:** Questions
**Tags:** csv, api, open-ai, chatgpt
**Created:** [December 19, 2024, 11:51pm UTC](https://community.make.com/t/open-ai-message-chat-gpt-assistant-with-multiple-file-ids/64478 "2024-12-19T23:51:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Danny\_Berovides](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Danny\_Berovides](https://community.make.com/u/Danny_Berovides)
#### Post date: [December 19, 2024, 11:51pm UTC](https://community.make.com/t/open-ai-message-chat-gpt-assistant-with-multiple-file-ids/64478/1 "2024-12-19T23:51:44Z")

</div>

So I have searched endlessly for hours on how to fix this situation. I uploaded two CSV files too open ai with no issues but when I try to map the file id for the assistant to use the code interpreter and use more than one file id it does not function, but if its a single file id it works with no problem.

Here is my workflow

 ![Screenshot 2024-12-19 at 6.49.33 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/0/b0fc1ce2a42ffda34d425cfc9e5784484ccc54da.png)  
 ![Screenshot 2024-12-19 at 6.51.20 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/7/275b4baca2419da2697bd5f069cca5f2d0fb4d8f.png)

---

<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: [December 24, 2024, 2:37pm UTC](https://community.make.com/t/open-ai-message-chat-gpt-assistant-with-multiple-file-ids/64478/2 "2024-12-24T14:37:32Z")

</div>

Welcome to the Make community!

If a field accepts multiple inputs, then it is likely you need to send an ARRAY.

You can use the built-in function `add` to quickly create an array.

e.g.:

```plaintext
{{ add(emptyarray; 26.value1; 48.value2) }}

```

For more information, see the function documentation in the [Help Center](https://www.make.com/en/help) and do the [tutorials in the Make Academy](https://academy.make.com).

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

### Author: ![Danny\_Berovides](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Danny\_Berovides](https://community.make.com/u/Danny_Berovides)
#### Post date: [January 7, 2025, 5:13pm UTC](https://community.make.com/t/open-ai-message-chat-gpt-assistant-with-multiple-file-ids/64478/3 "2025-01-07T17:13:40Z")

</div>

Thank you so much, I actually figured it out after 5 hours of trying thank you so much!!

---

<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: [January 23, 2025, 12:55am UTC](https://community.make.com/t/open-ai-message-chat-gpt-assistant-with-multiple-file-ids/64478/4 "2025-01-23T00:55:28Z")

</div>


