Multi Level Prompt Workflow with Ai Agent

Hi everyone, I just installed selfhosted n8n and its amazing! I wanted to use it to help me work on a content ideas for videos. One thing I find hard to work out (maybe its stupid easy lol, but I cant figure it out)… I need to creat sort of multi level AI prompt, in this way:

I ask chatgpt (or any other AI), Prompt #1, it answers, I ask it Prompt #2 and so on upto prompt #5. But the AI agent has to remember the whole conversation because its important for it to create content script longer, than it could produce in a single reply.

For example first prompt is for it to create content outline, 2nd to write chapter 1, 3rd to write chanpter 2, 4th to write chapter 3 and fifth to write chapter 4.

I have some dynamic data that I would pull from my google sheet to place inside first prompt, and after its done with full “script creation” I would want to save it either to some google doc or airtable.

Dynamic data fetching, and saving stuff I have worked out by now, the only issue for me is, creating this 5 level prompt, so the ai remembers “this current” conversation - 1 workflow run - one conversation. Would appreciate any help in pointing me into the right direction!