Create AI articles by using the headings from a scraped article

Loading content into AI prompts

SCM allows you to provide scraped article content to an AI prompt.

The usable selection is article title, body and headings (all h1-h4).

If you wanted to create an AI prompt that used specific number of h1-h4 this was not possible.

With the newest update, a bunch of new AI macros now allow this.

Introducing new article macros for loading content.

Once you add articles to the cache, you have a bunch of new macros to load this content into an AI prompt.

<load_next_article>

This tells SCM to load the next article in the content cache.

If you loaded 5 articles, adding this tag will load the next article in the list sequentially.

ie You can load 5 articles of content by adding this tag 5 times into the prompt.

Once an article is loaded into memory, you can access content via the following macros.

  • %article_title%
  • %article_body%
  • %article_h1%
  • %article_h2%
  • %article_h3%
  • %article_h4%

How to create a new article using the headings of a scraped article

Check the following prompt:

<h1><load_next_article>%article_title%</h1>
[write a long detailed  answer about %keyword% in language %language%. 
Use html <p></p> tags. Don't use html attributes. Start with a paragraph.
Include information about
- %article_h1%
- %article_h2%
- %article_h3%
]

It does the following.

  1. Loads the next article in cache (scraped or loaded from your hard drive)
  2. Replaces %article_title% with title of that article
  3. Replaces %article_h1% → h3 with headings from that article.
  4. Each time an %article_hx% is called a new heading is loaded from that article

This is a simple way of taking an existing article and creating a complex AI prompt using various content bits of an article.

Previously you only had access to the title, body and headings (all of them) but now you have much more granular control.

Upgrading prompts

The following macros are now deprecated. %scraped_article%, %scraped_article_title%, %scraped_article_headings%.

If you are using those macros they will still continue to work.

However they won’t appear as a selectable item on the UI.

All SCM AI templates have also been updated to use the new <load_next_article> tag.