In your {outline} {/outline} loop, before the AI is about to write the next section, is there a way I can send the AI a copy of the “ARTICLE SO FAR” with the all previously written sections of the article?
This is important so that the AI understands the full context of the article as it’s writing it, understands the full direction, and more importantly, does not duplicate previous concepts from earlier in the article. While the outline is a general guide, being able to send the AI the backstory with instructions to write the next section gives the AI much better direction than the section headline alone.
It would be basically like hitting the CONTINUE button with full context.
Since the {outline} {/outline} loop happens in the Article Prompts box, I cannot set any variables based on the output of that loop. Or is that possible somehow?
The outline loop just pre-generates the section prompts using the <h2> <h3> of an AI outline.
Because the prompt hasn’t been run yet there is no context to pass into it.
The only context you can use is something global that you create in the user macro section.
Maybe its possible that while the outline loop is running, it keeps in memory the last generated output that is then stored into a variable.
It would have to be a sliding window though, eg last 2000 characters or something like that.
So on long outlines, it will ‘forget’ what it wrote outside that 2000 character limit and only have available the most recent stuff.
I can make that 2000 character limit customizable.
It may not even need one, as I think most AI models will just ignore prompts after a certain length, so you can just stick in the context at the end of a prompt?