> ## Documentation Index
> Fetch the complete documentation index at: https://amasty.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom prompts

> Use your own instructions to generate content with WritePilot: custom prompts, built-in templates, variables and metafields.

Custom prompts are specific instructions you provide to the AI, ensuring it generates content that meets your needs.

> [!NOTE]
>
> While the Generate button uses a default prompt, which may be too general in some cases, the Generate with Custom Prompt action allows for more tailored results.

You can browse our library of pre-made custom prompt templates that already include necessary variables, or create your own.

## Generate content with custom prompts or templates

Content generation with a custom prompt works similarly to generating content with the default prompt, but with the added step of specifying the prompt you want to use.

**1. Open Content generation**

Open **Content generation** from the sidebar.

**2. Select the appropriate tab**

* [Products](https://amasty.mintlify.site/sf/writepilot/products.md) - generate content for products and bundles.
* [Collections](https://amasty.mintlify.site/sf/writepilot/collections.md) - generate content for collections.
* [**Pages**](https://amasty.mintlify.site/sf/writepilot/cms-pages.md) - generate content for CMS pages.
* [Blog posts](https://amasty.mintlify.site/sf/writepilot/blog.md) - generate content for blog posts.

**3. Select items**

Select the item(s) you want to work with.

**4. Click Generate with custom prompt**

A popup window will appear. You can either:

* Type your custom prompt directly, or
* Click the dropdown under **Prompt Template** to choose one of the built-in or saved custom prompt templates.

> [!NOTE]
>
> Be sure to use the `{{ all.item.data }}` variable - it pulls information about your product directly from your product settings. For bundles, use the `{{ bundle_products_summary }}` variable.

![Built-in prompts](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_ChatGPT/custom-prompts-inbuilt.jpg)

**5. Generate**

Once ready, click the **Generate** button to create the content.

## Create a new custom prompt template

If you prefer using custom prompts for content generation, you can save frequently used prompts as templates to easily reuse them, or use the built-in ones.

**1. Open Prompts**

![Prompt templates grid](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_ChatGPT/prompts-page.jpg)

**2. Click Add new prompt**

**3. Fill in the details and write your prompt**

You can specify the text structure, the type of content you want, key information to include, and any other details you want the AI to consider.

> [!NOTE]
>
> Be sure to use the `{{ all.item.data }}` variable, as it pulls product information directly from your product settings. For bundles, use the `{{ bundle_products_summary }}` variable.

You can also use additional variables to make your prompt more specific (not all of these variables are available on all instances):

* `{{ item.description }}` - includes context from your current product description (first 400 characters).
* `{{ product.variants }}` - adds information about product variants.
* `{{ item.title }}` - provides the product title for the AI to incorporate.
* `{{ store.name }}` - includes your store's name in the prompt.
* `{{ item.price }}` - adds the product's price to the context.
* `{{ keywords }}` - helps AI generate and use relevant, popular keywords.
* `{{ collections }}` - adds information about the collection the product belongs to.
* `{{ store.contact.details }}` - adds your store's contact details to the prompt. Useful for contact and legal pages.

You can use **Metafields as variables** in custom prompts to generate more accurate, attribute-based content. This helps create richer descriptions that highlight details like material, fabric, or product features.

> [!NOTE]
>
> Metafield prompt variables are currently supported for **products only**.

![Metafields variables](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_ChatGPT/custom-prompts-variables.jpg)

For best results, combine Metafield variables with other data points such as `{{ item.description }}` or keywords.

If you use Metafields for bulk generation, at least one standard variable (such as Title or Description) must also be included to maintain content quality.

**4. Save your prompt**

**5. Use the prompt**

Use it during content generation through the **Generate with custom prompt** action.

![Custom prompt template](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_ChatGPT/custom-prompts-allitem-variable.jpg)

> [!NOTE]
>
> Built-in prompt templates are not editable. To make changes, use the **Duplicate** function to create a new template and edit it as needed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.