How to Add Images to Custom Templates
Written By Afonso Carvalho
Last updated 3 months ago
Adding in-article Images to Custom Templates
This guide walks you through the required setup to successfully include and position images inside your custom templates.
Overview
Custom templates support embedded images if the generation prompt and markdown outline are properly configured. To ensure image generation works:
You must define the number of in-article images in the generation prompt.
You can control image placement using instructions inside the markdown outline.
Configuring Your Template for Images
Generation Prompt
To generate images, you need to tell the AI how many images to include. This is done by explicitly writing the number of images you want in the prompt field.
❗️This step is required. If you don’t specify a number, no images will be generated.
Example Prompt:
ExampleInclude 3 images in the articles
Markdown Outline
The markdown outline allows you to define the structure of the article and include image instructions at the exact positions where you’d like images to appear.
Example Outline:
Example## Section 1: Introduction
Some text content here.
{# include one image here #}
## Section 2: Key Insights
More content...If you don’t specify where to add the images in the outline, we’ll automatically distribute them across the article based on its structure and length.
Adding a Featured image to custom templates
To enable featured image generation:
Simply include the phrase “featured image” in your generation prompt.
You can also specify details about the featured image directly in your generation prompt.
Example Prompt:
“Write a blog post about the benefits of meditation (….) and please include a featured image.”
When the prompt includes that instruction, the AI will automatically generate and attach a relevant featured image to the output.