Skip to main content

Shorten, lengthen, or create text from attributes with AI services

Shorten, lengthen, or create text from attributes with AI data services in Productsup.

Introduction

If you need to quickly change the text in your data feed, for example, to make product descriptions shorter or longer, or create new text using the information from other attributes, you can use the following AI-based data services:

  • Shorten Text - lets you shorten the text to fit a needed character limit while keeping its main point.

  • Lengthen Text - lets you extend the text to fit a needed character limit by adding phrases that support the main point.

  • Create Text from Attributes - lets you generate text based on the data from the selected attributes and a needed character limit. The service also lets you translate the generated text into the needed language.

Note

These data services are available only for the import and intermediate stages.

The data services use the capabilities of OpenAI by using their public API.

Productsup caches the AI-generated texts for each product and doesn't send the request to Open API with each run unless you decide to clear the cache and generate new texts. Caching the data improves the platform's performance and guarantees the texts don't change with every consecutive run saving you money for the OpenAI services.

Warning

While Productsup offers integration with OpenAI for text generation at no cost, the actual text generation process is handled by OpenAI, which may involve fees for their services. Before using our AI-based data services, ensure you're familiar with OpenAI's pricing for GPT-3.5 Turbo that we use in our data services. See Pricing for more information.

Prerequisites

To use the Shorten Text, Lengthen Text, and Create Text from Attributes data services, you need:

  1. An OpenAI account. See Account setup.

  2. A product identifier. See Set a product identifier for more information.

Add the Shorten Text or Lengthen Text data service

  1. Go to Data Services from your site's main menu and select ADD SERVICE.

  2. Search for Shorten Text, select Add, and give it a desired name and column prefix.

    By default, ___service_ai_short_text for Shorten Text and ___service_ai_lengthen_text for Lengthen Text are the column prefixes.

    Shorten Text
    Lengthen Text
  3. Choose the stage where you have the attributes that need text changes in Service Data Level and select Add.

  4. Add your OpenAI API key in API Key.

  5. Choose the attribute in your feed that contains the text you need to change in Attribute.

    Note

    The list of attributes depends on the stage that you've chosen in Service Data Level.

  6. Set the desired length of your text in Max number of characters. The length of the AI-suggested text can still be a bit more than specified as OpenAI isn't strict on this.

  7. If you want the platform to clear the cache for all products, select the checkmark icon () in Clear cache before the next run. After the next run, the checkbox returns to its unchecked state, and you need to activate it again whenever you want to clear the cache and generate new texts.

  8. Select Save.

    Set up Shorten Text or Lengthen Text data services
  9. For the platform to process a new data service, select Run in the top-right corner of your site's view.

    Note

    If you can't see your new texts in Data View, ensure the platform hasn't hidden it:

    1. Go to Data View from your site's main menu and choose the relevant stage or export in the drop-down list on your left.

    2. Select the menu icon on the right and then select the eye icon.

    3. Find the attributes in the list that use the data service prefix and select the eye icon next to each attribute you want Data View to display.

    4. Close the pop-up menu.

    The naming of the attributes created by the data service depends on the column prefix you choose in Step 2. The attribute names the data service generates always start with three underscores (___), which means the platform doesn't send such attributes to your export channels.

Add the Create Text from Attributes data service

  1. Go to Data Services from your site's main menu and select ADD SERVICE.

  2. Search for Create Text from Attributes, select Add, and give it a desired name and column prefix.

    By default, ___service_ai_created_text is the column prefix.

    Create text from attributes
  3. In Service Data Level, choose the stage where you have attributes with the data needed for text generation and select Add.

  4. Add your OpenAI API key in API Key.

  5. Choose up to five (5) attributes in your feed that contain the text that you want to use to generate new text in the drop-down menus from Attribute 1 to Attribute 5.

    Note

    The quality of the generated text depends on the content of the selected attributes. For example, if the attributes are empty, there is no content to create text.

    Note

    The list of attributes depends on the stage that you've chosen in Service Data Level.

  6. Set the desired length of your text in Max number of characters. The length of the AI-suggested text can still be a bit more than specified as OpenAI isn't strict on this.

  7. Select the language of the original text in the attributes in Source language.

  8. In Target language, select the language in which the service should create new text or select the same language as the source one.

  9. If you want the platform to clear the cache for all products, select the checkmark icon () in Clear cache before the next run. After the next run, the checkbox returns to its unchecked state, and you need to activate it again whenever you need to clear the cache and generate new texts.

  10. Select Save.

    Create text from attributes
  11. For the platform to process a new data service, select Run in the top-right corner of your site's view.

    Note

    If you can't see your new texts in Data View, ensure the platform hasn't hidden it:

    1. Go to Data View from your site's main menu and choose the relevant stage or export in the drop-down list on your left.

    2. Select the menu icon on the right and then select the eye icon.

    3. Find the attributes in the list that use the data service prefix and select the eye icon next to each attribute you want Data View to display.

    4. Close the pop-up menu.

    The naming of the attributes created by the data service depends on the column prefix you choose in Step 2. The attribute names the data service generates always start with three underscores (___), which means the platform doesn't send such attributes to your export channels.

Edit a data service

  1. Go to Data Services from your site's main menu.

  2. Search for your data service.

  3. Select the cogwheel icon () next to the desired data service to edit other settings.

  4. Select Save.

Delete a data service

  1. Go to Data Services from your site's main menu.

  2. Select the cogwheel icon () next to the desired data service.

  3. In the Danger Area panel, select Remove this service.

  4. Select Yes.