# Split up OpenAI Input in chunks (multi step conversation)

**URL:** <https://community.n8n.io/t/split-up-openai-input-in-chunks-multi-step-conversation/45030>\
**Category:** Questions\
**Tags:** node, openai\
**Created:** [April 25, 2024, 12:43pm UTC](https://community.n8n.io/t/split-up-openai-input-in-chunks-multi-step-conversation/45030 "2024-04-25T12:43:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@phil](https://community.n8n.io/u/phil)\
**Post date:** [April 25, 2024, 12:43pm UTC](https://community.n8n.io/t/split-up-openai-input-in-chunks-multi-step-conversation/45030/1 "2024-04-25T12:43:27Z")

</div>

I’m trying to split the input data for OpenAI in multiple chunks due to token limits.  
So basically I would like to have an introduction prompt that says “Hey, you will do this and that and you will receive the needed data in the next n messages. Once you received the last message, please execute the task and return the answer”.  
So preparing the task with multiple messages and then returning the answer.  
Is that possible with the existing nodes yet?  
I tried the OpenAI node and the AI agent but could not identify a way to do this.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [April 25, 2024, 12:43pm UTC](https://community.n8n.io/t/split-up-openai-input-in-chunks-multi-step-conversation/45030/2 "2024-04-25T12:43:28Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [May 17, 2024, 3:27pm UTC](https://community.n8n.io/t/split-up-openai-input-in-chunks-multi-step-conversation/45030/3 "2024-05-17T15:27:11Z")

</div>

Hey @phil,

I can’t think of a way to do this but maybe @oleg has some thoughts.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 15, 2024, 3:27pm UTC](https://community.n8n.io/t/split-up-openai-input-in-chunks-multi-step-conversation/45030/4 "2024-08-15T15:27:31Z")

</div>

Closed on August 15, 2024, 3:27pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
