Outline Loop in Macros

is it possible to enable the outline loop (w/ Previous output) in User Macros too?

THE PROBLEM:
By restricting the outline content loop in Article Prompt box only, you are forcing the content loop to be the final draft of the article. This means I cannot call my AI to fix anything, apply conditioning, or add a “Key Takeaways” to the intro, address search user intent for SEO, or do any formatting, add lists, or anything to the article once it is has gone through the loops.

EXAMPLE AI WRITING PROCESS:

  1. Compile/Summarize RAG Research Data using SCM
  2. Create Outline based on above Data
  3. Create Article (with Content Loop) without Intro
  4. Add Search-intent focused Introduction with Key Takeaways at the top to satisfy new SEO rules (which attempts to answer the search intent as soon as possible). This can only be done after the article is written.
  5. Run article through an AI humanizer (remove AI words etc)
  6. Apply formatting (bold or italicize key concepts etc), add lists etc.

This is just for a basic article … I’m not including product review roundups or any other specialized articles which are more complex.

SOLUTION:
Allow the content outline loop (w/ previous output) to be run in User Macros as well so that we can set new AI macros after the loop is done and rough draft is written.

Or do you already have a solution for this?

From my code review it won’t work because user macro processing is done before outline loop is run.

The code goes

  1. Run all user macros
  2. Run article template code
  3. If article template has outline then enter outline loop

User macros don’t re-run each time the outline loop starts, its already been processed.

You can think of them as static globals by the time the outline loop is running.

What you are asking for is essentially another layer on top that pipes output of the already completed main article into its own variable, which you can then do some extra AI stuff on top.

I think the best way to do it is to create 2 tasks, one to create the first draft article.

Then a 2nd article creator task to load the previous output and do your summary via AI prompt macros %scraped_article% and %scraped_article_title%.

This is made possible due to the newly added content sources > local

On the 2nd article creator task, put in output folder of the first article creator task.

I think its better to do it in 2 tasks,

  1. You can do infinite recursion on output, by sending one set of articles into another article creator task
  2. It keeps the current UI simpler and avoids having to essentially recreate another ‘AI article template step 2’ tab

To automate the 2 article creators, you can use chain task as well.

On the 1st article creator, select the 2nd article creator task as the ‘after done, run’ setting

That way you only have to run article creator task 1, and the 2nd step will run automatically after

Okay … thank you! … I will try this!

Let me know how it goes.

This is all theoretical of course, I haven’t actually replicated this in a test case yet.

Its possible some feature might be missing.

FYI, the output article should have title in <h1> if you want SCM to autodetect scraped article title.