> ## 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.

# Templates

> Use built-in AutoPost templates or create custom Standard and Advanced AI templates with variables for your social media posts.

[Templates](https://www.youtube.com/embed/rRd64MI4CSg)

Social media posts in AutoPost are created using templates. There are two template types:

* **Standard templates** - fixed text with variables.
* **Advanced AI templates** - also include a prompt that AI uses to generate post text; recommended for more diverse posts.

You can browse the built-in template library and use any template when [creating a manual post](https://amasty.mintlify.site/sf/autopost/posts.md) or [setting up an automation](https://amasty.mintlify.site/sf/autopost/auto-posting.md#create-a-new-automation).

Alternatively, you can create your own custom template to match your business needs:

**1. Open the Templates page**

![Built-in templates: Bestseller, Limited Edition, Black Friday, Top Picks, Back In Stock, Flash Sale](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_Social_Media/UG-Autopost-130-Templates.png)

**2. Click Create**

> [!NOTE]
>
> If the **Create** button is disabled, it means you haven't connected the app to any of your social media accounts. Please, return to the **Accounts** page and [connect your social media account](https://amasty.mintlify.site/sf/autopost/connect-account.md).

![Create a template](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_Social_Media/autopost-180-template.png)

**3. Enter the name and choose the type**

* **Standard** - a template created with your text and variables.
* **Advanced AI** - a template created with variables, fixed and AI-generated text (recommended for more diverse posts).

**4. Add the content**

Add the text for your template. Insert variables to display relevant product information.

**5. Add the AI\_RESULT variable (AI template)**

For an AI template, add the `{AI_RESULT}` variable to the content - this is where the AI-generated text will appear based on the instructions you share in the **AI Prompt** field.

**6. Add the AI prompt (AI template)**

For an AI template, add your content generation instructions in the **AI Prompt** field. You can also use variables here, which you can copy from the **Content** section.

You can use discount-related variables in the **Content** template to automatically add current promotion details to your posts.

**Available variables:**

* `{AI_RESULT}` - AI-generated content
* `{PRODUCT_TITLE}` - title of the product being published
* `{SHOP_NAME}` - store name
* `{SHOP_URL}` - store URL
* `{PRODUCT_URL}` - product URL
* `{PRODUCT_PRICE}` - current product price
* `{DISCOUNTED_PRICE}` - discounted product price
* `{COMPARE_AT_PRICE}` - original product price
* `{DISCOUNT_CODE}` - discount code from the selected Shopify discount rule
* `{RULE_DISCOUNT}` - discount value and type, such as 20%, \$10, or Free
* `{GET_PRODUCT}` - product received with a Buy X Get Y discount

![AI prompt to generate your social media caption](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_Social_Media/ai-prompt-170.jpg)

**7. Save your template**

On the right, you can preview a sample post created with your template. Switch between modes to see how it will look on each social media platform.

![Preview standard template](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_Social_Media/template-views-170.jpg)

After that, you're ready to [create posts](https://amasty.mintlify.site/sf/autopost/posts.md) using your template.


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