Create dataset Attributes
  • 22 Aug 2024
  • 4 Minutes to read
  • Dark
    Light
  • PDF

Create dataset Attributes

  • Dark
    Light
  • PDF

Article summary

Introduction

This article explains how to create dataset Attributes.

🎦 Watch related video:

Predefined options

Unlike basic Attributes, dataset Attributes are predefined options that become options in a dropdown field or set of checkboxes. When the customer or agent selects one of the options, that becomes the value of the Attribute.

Dataset Attributes are used for managing data like which prescription plan a customer selects, which items they are purchasing, or  what country they are from.  

Associated properties

Another feature of dataset Attributes is that each option in a dataset Attributes can be associated with other values or properties, enabling you to collect more comprehensive data. For example, you can build a dropdown Attribute consisting of three subscription plan options. For each option you can associate properties such as the price of the plan and number of licensed users. Then, in addition to the name of the plan, you can also use it's properties to build conditions into your workflow.

Dataset sources

There are three ways to create a dataset source:

Create an Attribute from a CSV file

Summary of steps

Creating a dataset Attribute from a CSV file involves the following 3 steps:

  1. Create a dataset CSV file

  2. Upload a dataset

  3. Add a dataset Attribute

Create a dataset CSV file

First you'll need to create a CSV file and save it on your local drive.

To create a dataset CSV file:

  1. Create a CSV file and name the first column id (number or character to identify each option in the system) and the second column name (name of the option). The entries in the name column are the names of the values that will appear in the relevant field.

    In the following example, we've created a dataset for a dropdown field that will contain 3 options: standard, premium, and enterprise.

  2. If you want to associate different properties with each of the values, add additional columns to the right of the name column and add the relevant properties. The column name should be unique and in lowercase. It should not include spaces or special characters other than underscore (_).

    In the following example, we've associated 2 properties with each of the values in the name column: the price of each plan (price column) and the number of licensed users allowed in each plan (users column).

    Note:

    Do not include any empty rows in the CSV file.

  3. Save the changes to your CSV file.

Upload a dataset

Once you have created the dataset as a CSV file, you can upload it to the Datasets page.

To upload a dataset:

  1. In the Lightico Administration page, in the left pane, click Workflow > Datasets.

    The Datasets page opens.

  2. In the Upload New Dataset box, enter the name of your dataset using the following naming conventions:

    • Unique name between 3 and 50 lower case characters 

    • No special characters other than underscore (_)

  3. Click Upload file and upload the relevant CSV file you created earlier.

    The new data set appears in the list of datasets in the right panel with an indication of how many rows are included. For example:

    You can also update the file or export the data using the relevant buttons.

Add an Attribute from an existing dataset

After you have uploaded the dataset, you can use it to create an Attribute.

To add a dataset Attribute:

  1. In the Lightico Administration page, in the left pane, click Attributes mapping.

    The Attributes mapping page opens, displaying the existing Attributes.

  2. On the top right corner of the page, click Add Custom Attribute.

    The Add Custom Attribute dialog opens.

  3. In the Entity field, choose Data Source and under Datasets, select Pick From Existing.

    Note:

  4. From the dropdown, select the dataset you created.


  5. Complete the remaining fields.

    Field

    Description

    Name

    The unique name of the Attribute.

    Description

    The description of the Attribute. This is the default label of the field that is visible to the customer in the document wizard.

    Type

    The type of Attribute.
    Choose from the following types:

    • Dropdown List

    • Radio Button Group

    • Checkbox group

    Sensitive Data

    Define this Attribute as "sensitive".
    Fields containing sensitive Attribute data can be:

    Tags

    You can assign a tag to the Attribute to categorize the Attributes and to make it easier to search for them.

  6. Click Save.

Create a dataset manually

If you don't need your dataset to be related to associated properties, you can create it manually from the Attribute mapping page without creating a separate dataset CSV file.

To create a dataset manually:

  1. In the Add custom Attribute dialog, under Entity select Data Source, and under Datasets select Create Manually.

  2. Enter the data options in the box as key:value pairs and press ENTER to start a new pair.

  3. Complete all other fields (see above) and click Save.

Import a dataset from an external source

If you've created a Lightico integration for an external app or data source, you can import the dataset from there.

To import a dataset from an external source: 

  1. In the Add Custom Attribute dialog, under Entity select Data Source, and under Datasets select Import From Source.
    The Add Source button appears.

  2. Click the Add Source button. 

    The import settings appear.

  3. See Map Salesforce data to Lightico for an example of how to complete these settings.

  4. Complete all other fields (see above) and click Save.


Was this article helpful?