The filename is controlled by filename string.
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.
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 and filename is the same.