# How to set set title as filename when using AI article generator?

**URL:** <https://forum.seocontentmachine.com/t/how-to-set-set-title-as-filename-when-using-ai-article-generator/71>\
**Category:** faq\
**Tags:** article-creator\
**Created:** [February 7, 2024, 4:21pm UTC](https://forum.seocontentmachine.com/t/how-to-set-set-title-as-filename-when-using-ai-article-generator/71 "2024-02-07T16:21:51Z")\
**Posts on this page:** 1\
**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:** [February 7, 2024, 4:21pm UTC](https://forum.seocontentmachine.com/t/how-to-set-set-title-as-filename-when-using-ai-article-generator/71/1 "2024-02-07T16:21:52Z")

</div>

The filename is controlled by filename string.

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

We can use macro %title% as filename string. Just type it in or use +macro button to insert it into the textbox.

**Inside AI writer section we MUST declare %title% user macro.**

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

This %title% macro can be used both in article prompts and also the filename string.

Basically we are saving the output of the article prompt into the %title% macro and re-using it later as the filename.

Proof of concept:

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

Image and filename is the same.
