# 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. [Learn how to back up your database](https://chatgpt.com/c/6828cc2e-f94c-8007-a8fb-49dee75dbb3e#).
{% 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/1WDluqzrcSLQA55vfAJd" 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ce-docs.keywordrush.com/set-up-products/fill-tool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
