Search documentation

Search through help articles and documentation

  • Channels and templates
    • Mapping fields
    • Mapping types
    • Transforms
    • Conditions
    • Using field values in text
    • Include / exclude
    • Merge variants
    • Categories
    • Feed issues and quality score
    • Feed URLs, formats and upload
    • Copying, exporting and importing channels
    • Request a channel
  • Shops and sources
    • Connecting Shopify
    • Supplementary data files
    • Update schedule, products drop protection and alerts
    • Refresh products now and Activity
    • Shared fields
    • Lookup tables
    • Fill with AI
    • Products page
  • Getting started
    • Connect Claude or ChatGPT

Fill with AI

Let AI write a shared field's value for each product, such as product highlights, from a prompt and the product's data.

Fill with AI is a mapping type for shared fields. It writes a value for each product with AI, using your prompt and the product's data. The values are saved, so the AI does not run when a feed is built.

For example, a shared field highlights with a Fill with AI rule can write 3 short highlights for each product. A Google Shopping channel then uses it in product_highlight.

Add a Fill with AI rule

  1. Open the shop's Shared fields page and add a shared field, e.g. highlights. See Shared fields.
  2. In the field's rule, choose Fill with AI in the list that shows Value.
  3. Write a Prompt, or click Prompt suggestions and pick one. Picking a suggestion fills in the prompt. Click Insert field to add a field to the prompt.
  4. Click Preview to try it on up to 5 products. Nothing is saved.
  5. Click Save changes, then publish the shared fields.
  6. Click Generate to write values for every product that doesn't have one yet.

A shared field can have one Fill with AI rule. Channel fields can't have one: use the shared field in the channel instead, e.g. insert internal:highlights as the channel field's value.

Prompts and prompt suggestions

A prompt suggestion that you don't change works on every plan, including trials.

When you change the text, it becomes a custom prompt:

  • Custom prompts need a paid plan.
  • Feedsmith checks a custom prompt before it uses it. A prompt that isn't about the product's data, such as "write a poem", is rejected with a reason.
  • A prompt can be up to 500 characters.

What the AI sees

The AI only uses facts from the product's data. It sees the product's fields, including columns from supplementary data files, with the title, description, brand, product type, categories and options first. It doesn't see:

  • links and image links, or any value that is a link
  • IDs, handles, SKUs, barcodes, GTINs and MPNs
  • stock, inventory and quantities
  • prices, costs, discounts, taxes and currencies
  • ratings, reviews and sales counts
  • dates and times, and email addresses
  • other shared fields, unless you insert them

Each field is cut to 3,000 characters, and a product sends up to 6,000 characters and 150 fields in total. When a product has more, the less important fields are left out.

When any of this data changes, the product's value is out of date.

Insert fields in the prompt

Click Insert field to add a field to the prompt, e.g. Mention the fabric from {{fabric}} or Use {{internal:care}} for the care note. The AI always sees the fields you insert, even ones it doesn't see by default, such as sku.

  • You can insert source fields, supplementary data file columns and shared fields above this one.
  • You can't insert the field itself, or another shared field with a Fill with AI rule.
  • You can insert up to 10 fields.

The prompt keeps the placeholder. Feedsmith sends each product's value for that field alongside it. Inserting a field changes the text, so the prompt becomes a custom prompt.

When an inserted field's value changes for a product, its AI value is out of date. This also happens when you change the rules of an inserted shared field. After you publish, click Regenerate out of date, or tick Regenerate when source changes to have it done after the next product update.

What it writes

Feedsmith works out the length and format from the channel fields that use the shared field. The rule shows one line about it, e.g. "Written for: Google Shopping product_highlight (up to 6 values, 150 characters each)." When several channel fields use it, the strictest limits win.

When no channel uses the shared field yet, the rule shows the default for the kind of prompt. A highlights suggestion shows "Not used in a channel yet: up to 6 values, 150 characters each." A prompt you write yourself shows "Not used in a channel yet: up to 5,000 characters."

Values that don't fit, contain HTML or links, or aren't about the product are not saved. The product is listed as failed and keeps an empty value.

Conditions

A Fill with AI rule works like any other rule. With conditions (+ condition), the AI value is used only for products that match. Other products go to the next rule.

AI values are only generated for products where the rule applies, so you don't use your AI allowance on the others.

For example:

  1. If product_type is equal to T-Shirts Then Fill with AI, "Write 3 highlights about materials and fit."
  2. Else Leave empty.

Generate and regenerate

After you publish, the rule shows how many products have a value, and these buttons:

  • Generate writes values for products that don't have one. It shows only when some products have no value.
  • In the ⋯ menu, Regenerate out of date writes new values for products whose data, inserted fields or prompt changed.
  • In the ⋯ menu, Regenerate all writes a new value for every product.
  • In the ⋯ menu, Clear values deletes the values.

Values you edit by hand on the Products page are kept, unless you tick Also replace values edited by hand.

Tick Regenerate when source changes to write values for new products and products whose data changed after each product update.

Runs use the published rule. If you change the prompt, publish again before you generate.

A run for up to 20 products finishes in a few seconds. A bigger run usually takes a few minutes, and a very large one can take up to an hour. The rule shows Generating… until it is done, then the new count.

When you remove a shared field and publish, its AI values are deleted. A new field with the same name starts with no values.

Monthly allowance

Each workspace has a monthly AI allowance. When it is used up, Feedsmith stops generating until next month and shows "You've reached this month's AI limit. Contact support."

Feedsmith
Docs