# How to use AI generated text

> **Who can use this feature:** \
> You need the **Core Pro** plan in your [Channable subscription](https://app.gitbook.com/s/8y3q10FnokmlpzYq3YPS/manage-your-subscription/channables-pricing-plans) to use this feature.

### What is AI generated text?

**AI generated texts** are AI-enhanced texts that you can generate in the **Optimize** section of Channable. Using AI, you can enhance your ‘title’, ‘description data’ or other fields, creating high-performing texts for product listings in bulk, all in one workflow. You can select which fields in your product data, such as ‘category’, ‘brand’, ‘color’, or ‘size’, should be used to create these generated texts.

For example, you can enhance a title like:

“Urban Explorer Cargo Joggers” to “Men’s Urban Cargo Joggers - Durable Streetwear & Casual Pants” based on the data from a description field.<br>

<figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2FAGrz64aNRgSBFe1FEQZC%2Funknown.png?alt=media&#x26;token=81dcdeb8-446d-427a-bc40-9df4df2cf4d8" alt="" width="563"><figcaption></figcaption></figure>

### Before you start:

**Good to know**

* Your [Gemini tokens](https://helpcenter.channable.com/manage-improve-product-data/optimize-attributes-with-ai/how-to-use-ai-generated-text/how-to-create-a-gemini-connection) will be used in the **Prompting** and **Generate values** steps. Monitor your usage to control costs.
  * Spending on AI text generation depends on the amount of input data, prompt length, length of output data and a number of products in the list for generation.
  * You can check the expected tokens needed for generation in Channable while using the feature. The token costs are available [here](https://ai.google.dev/gemini-api/docs/pricing) - Gemini 3.1 Flash-Lite Preview model.

### Step 1: Settings

1. Go to **\[your company] > \[your project] > Optimize**.
2. Click **Generate text with AI** to start the setup.
3. In the pop up, select the type of content that you want to create. The content type that you select defines the prompt template that you will work with in the Prompting step.\ <br>

   <figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2F125uC9oGLf2tzYvblZOa%2Funknown.png?alt=media&#x26;token=3175e867-5607-4d82-ac99-8fd07a33d958" alt=""><figcaption></figcaption></figure>
4. At **Settings**, fill in these details:
   1. At **Name**, add a name for your AI text generation to make it easy to search for.
   2. At **AI connection**, select an AI model to use (currently only **Gemini** is available) and a connection. Learn more about how to create this connection [here](https://helpcenter.channable.com/manage-improve-product-data/optimize-attributes-with-ai/how-to-use-ai-generated-text/how-to-create-a-gemini-connection).
   3. At **Project fields used to generate attributes**, select the **text fields** that should be used to generate the new texts.
   4. At **Field to save the optimized text**, select the project field where you want to save the generated text. We recommend [creating a new field](https://helpcenter.channable.com/hc/en-us/articles/360011026539) to avoid overwriting your existing title and description data.
   5. At **Output language**, select a different language if you want your texts to be translated. This setting is sent to Gemini and is used to generate your results. **We recommend reviewing the output** to ensure the AI's translation and tone meet your quality standards.
5. Click **Save**.

<figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2FatZUw7YVdCcNkb8HuCZP%2Funknown.png?alt=media&#x26;token=2e58b4a7-13e0-4dac-bd50-753408272bbc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** In the next step, you can approve and regenerate the new texts.
{% endhint %}

{% hint style="warning" %}
**Important:** If you have several AI text generators, note that the lower one in the list overrides the higher in case they contain the same products and you use the same fields to save generated texts. You can drag-and-drop the generators to change the order.
{% endhint %}

### Step 2: Item filtering

{% hint style="success" %}
**Tip:** This filter is similar to [Rule conditions in Channable](https://helpcenter.channable.com/hc/en-us/articles/360019983459-How-to-use-conditions-IF-in-rules).
{% endhint %}

1. At I**tem filtering**, set up a filter that will select which specific items in your product data will be enhanced. We recommend that you filter products to make the prompt work better for a certain product group.

{% hint style="warning" %}
**Important:** Refine your filter to avoid generating content for thousands of products and incurring high costs.
{% endhint %}

<figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2Fzp1A0YpodzlRDFu00umj%2Funknown.png?alt=media&#x26;token=35f33a78-1be7-4f5f-a06c-046cad9e3612" alt=""><figcaption></figcaption></figure>

### Step 3: Prompting

2. At **Prompt**, add a prompt that explains how your values should be generated.
3. Write your custom prompt in the text field or change the template adjusting it based on your requirements. For example, you can change the maximum number of characters based on your channel limitations or describe the style of the text you want to have.<br>

   <figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2FNsKUJXnYPP1xw62O1DeU%2Funknown.png?alt=media&#x26;token=7d4db482-b7af-46cc-8461-8651d06af111" alt=""><figcaption></figcaption></figure>
4. To preview your new texts, click **Generate 5 previews**. A preview of the items will show in the 5 previews section.
5. Edit your prompt and click **Generate 5 previews**. Continue to iterate on your prompt until you get the results you want in your previews.
6. Once you are getting the results that you want from the previews, click **Generate all**.<br>

   <figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2FWGw9MRhJlBP9qowKcST7%2Funknown.png?alt=media&#x26;token=138ad41e-3aad-4c2a-a661-9b0b33816b77" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** In the next step, you can approve and regenerate the new texts.
{% endhint %}

### Step 3: Generated values

1. To review one generated text at a time select either **Approve** or **Regenerate**.
2. To regenerate all generated texts at once, click **Regenerate all**. Already approved texts won’t be regenerated.
3. To approve all texts at once, click **Approve all**.

The chosen field for the optimized text now contains the approved values and can be sent to any channel. For example, Google Merchant Center or Amazon.

{% hint style="success" %}
Tip: Enable Approve new items automatically to accept the generated values for new items as you import them into Channable.
{% endhint %}

<figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2Fmlb1MYnTpEwDK4KKcD89%2Funknown.png?alt=media&#x26;token=8ffae511-08b1-401d-8af4-5ee201c95f82" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Important:** If you have several AI text generators, note that the lower one in the list overrides the higher in case they contain the same products and you use the same fields to save generated texts. You can drag-and-drop the generators to change the order.
{% endhint %}

\
After generating the texts and before using generated texts in your channels, make sure that there are no empty fields. This could cause errors in the product list with generated values but this could also be due to an issue with Gemini.
