# Use AI writer to create sub headings, then use those sub headings to write content

**URL:** <https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52>\
**Category:** feature\
**Tags:** done\
**Created:** [December 14, 2023, 12:44pm UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52 "2023-12-14T12:44:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [December 14, 2023, 12:44pm UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/1 "2023-12-14T12:44:26Z")

</div>

1. The problem  
Not possible to re-use ai generated content in a prompt (except for %title% macro)

We want to use the current article keyword to generate heading or subheading and t then use the headings to create related content.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [December 14, 2023, 12:45pm UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/2 "2023-12-14T12:45:16Z")

</div>

Introducing AI Writer variables

You can create unlimited variables which can then be used in your article prompt to create more dynamic content.

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/1016da87ee9a7f902d14553eed26c34b23689e56.png)

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [December 14, 2023, 12:47pm UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/3 "2023-12-14T12:47:00Z")

</div>

Example:

How to create an AI article with a title and sub headings and have AI write content for each sub heading.

## Create variables you need

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/e7791d9fb7259e20d516f40c3d482dbedd31b4b1.png)

> TITLE1=[write a title about %keyword%]  
> SUB1=[create a sub heading introduction to %keyword% don’t use " and ! punctuation symbols]  
> SUB2=[create a sub heading %keyword% don’t use " and ! punctuation symbols]

- Each line is its own variable
- Each line starts with the variable name eg TITLE, SUB1 etc
- After the variable name, use = to mark the end of the variable name
- Create the prompt by including it inside [ai prompt] brackets

## How use AI variables inside the article prompt

Variables can be used by %variable%, ie using the %% symbols.

See the following examples on creating an article

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/17615eabbf5e164da073d04b6349272fcf6af1e7.png)

Code is:

```auto
<h1>%TITLE1%</h1>

<h2>%SUB1%</h2>
[write a paragraph about %sub1%]
[create a html table about %sub1% only return the table code dont explain yourself]

<h2>%SUB2%</h2>
[write a paragraph about %sub2%]
[create a bullet point list about %sub2%]

```

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [December 14, 2023, 12:52pm UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/4 "2023-12-14T12:52:36Z")

</div>

Missing AI variables?

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/fb946646a52bf3139ed59951fff808dec9b42b40.png)

Each time a variable is correctly detected, you can see its name inside the task log.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [December 14, 2023, 12:55pm UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/5 "2023-12-14T12:55:31Z")

</div>

## Sample output

Source

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/73ce60e72bf7f0381774b006e69e054acd3b63b2.png)  
Preview  
 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/84463c7ca79919a95652742c50e87c6b138dbce7.png)

Without using variables this setup would not be possible.

---

<div class="post-metadata">

**Author:** ![News\_KThksBuy](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/news_kthksbuy/32/451_2.png) [@News\_KThksBuy](https://forum.seocontentmachine.com/u/News_KThksBuy)\
**Post date:** [May 11, 2024, 5:17am UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/6 "2024-05-11T05:17:44Z")

</div>

Will this method creates repeating or duplicate sub headings?

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [May 11, 2024, 5:36am UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/7 "2024-05-11T05:36:36Z")

</div>

It’s possible.

More likely the more times you repeat the prompt.

However the best solution is to load the ai outline template.

This ensures proper lengthy article without duplicate sub headings.

---

<div class="post-metadata">

**Author:** ![News\_KThksBuy](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/news_kthksbuy/32/451_2.png) [@News\_KThksBuy](https://forum.seocontentmachine.com/u/News_KThksBuy)\
**Post date:** [May 11, 2024, 6:13am UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/8 "2024-05-11T06:13:50Z")

</div>

I’m still slightly confused. If I enter a keyword, loaf ai outline template and leave everything else as it is, does it search the Google and then use the searched result content to create my content?

If it uses the searched content as content, does it use rewrite?

If I do not want searched content, how to go about turning it off?

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [May 11, 2024, 6:35am UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/9 "2024-05-11T06:35:27Z")

</div>

> [@News\_KThksBuy](#):
>
> I’m still slightly confused. If I enter a keyword, loaf ai outline template and leave everything else as it is, does it search the Google and then use the searched result content to create my content?

I’m talking about this when referring to AI outline template

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/851656cbf8e87089214e25a6bb431946bd53abc2.png)

Set this to 0 to turn off all search scraping

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/8d992e872a3793ff6ad26d6635210c2552ceaf19.png)

If you use AI it doesn’t use any scraped content by default.

However if you use any of the content inserts, these use scraped content.

---

<div class="post-metadata">

**Author:** ![News\_KThksBuy](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/news_kthksbuy/32/451_2.png) [@News\_KThksBuy](https://forum.seocontentmachine.com/u/News_KThksBuy)\
**Post date:** [May 11, 2024, 6:53am UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/10 "2024-05-11T06:53:03Z")

</div>

So the scraped content will be rewritten by ai when I select scm as the writer?

Does it rewrite using scraped content as context or just changing the words of the scraped content?

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [May 11, 2024, 7:30am UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/11 "2024-05-11T07:30:35Z")

</div>

Scraped content will be re-written if you select the AI Writer dropdown item.

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/70627f901d7ca6614a4739be0d7e274926578e34.png)

It re-writes each sentence.

So you can think of it as a paraphraser.

Its technically possible to ask the AI to rewrite using ‘spintax’.  
eg  
 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/e9c858d7ad8d4863d9533a132857686fe624aedc.png)

However I don’t allow any spintax output from the AI because all {|} spintax characters are forcefully removed so that it doesn’t break spintax used by content inserts etc.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [May 20, 2024, 11:33pm UTC](https://forum.seocontentmachine.com/t/use-ai-writer-to-create-sub-headings-then-use-those-sub-headings-to-write-content/52/12 "2024-05-20T23:33:37Z")

</div>

Is possible using ai outline template now.

[Use an AI outline to write a long article](https://forum.seocontentmachine.com/t/use-an-ai-outline-to-write-a-long-article/101)
