> For the complete documentation index, see [llms.txt](https://ce-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ce-docs.keywordrush.com/set-up-products/fill-tool.md).

# Prefill tool

The Prefill Tool allows you to automatically add Content Egg products to existing posts.

{% embed url="<https://www.youtube.com/watch?v=_diFdiqlKSU>" %}

{% hint style="warning" %}
Prefill will modify your posts, and changes **cannot be undone**. Be sure to **back up your database** before proceeding.
{% endhint %}

### AI Integration

To enable AI-powered features in Prefill, enter your [OpenAI API key](https://ce-docs.keywordrush.com/ai/openai-api) under:\
**Content Egg > Settings > AI > OpenAI API Key**\
Make sure your OpenAI account has sufficient balance.

<figure><img src="/files/tCHqkLHgNmRtlsLIM2rm" alt=""><figcaption></figcaption></figure>

### How It Works

1. **Navigate to:** Content Egg > Prefill
2. **Select Posts to Prefill:**\
   Use filters such as **post type**, **status**, **category**, etc., to narrow down your selection.

<figure><img src="/files/y4ewCeLnTVtuOKYdBM5Y" alt=""><figcaption></figcaption></figure>

3. **Alternatively**, you can run Prefill on a single post directly from the post edit screen. Just click the “**Prefill**” button in the editor.

   <figure><img src="/files/G3554xGHabJw3O0viexn" alt=""><figcaption></figcaption></figure>
4. **Choose Modules:**\
   Select one or more Content Egg modules to use for product insertion.

* Modules are processed based on priority (set in each module’s settings).
* If the first module fails to find relevant products, the next module in the priority list will be used.

<figure><img src="/files/XWiLLXnk8EjclczJKjhC" alt=""><figcaption></figcaption></figure>

5. **Set Prefill Mode & Options:**\
   Choose your desired **Prefill Mode** and adjust any additional settings.
6. **Start the Process:**\
   Click **Start Prefill** to begin. The process runs in the background using **WP-Cron**, so you can safely leave the page and return later to monitor progress.

### Fully Automatic AI Mode

This mode works with both Gutenberg and Classic Editor posts. It does everything for you:

* Splits the article into clear sections
* Finds keywords based on each section’s content
* Filters out products that don’t match
* Writes unique content for each product
* Adds product blocks directly to your post
