Importing interactions individually - Amazon Personalize
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Importing interactions individually

After you complete Creating a dataset and a schema to create an Interactions dataset, you can individually import one or more new events into the dataset. To import interaction events individually, you create an event tracker and then import one or more events into your Interactions dataset. You can import historical individual interaction events using the Amazon Personalize console, or import historical or real-time events using the Amazon Command Line Interface (Amazon CLI), or the Amazon SDKs.

This section includes information about importing events with the Amazon Personalize console. We recommend using the Amazon Personalize console to import only historical events. For information about using the Amazon CLI or the Amazon SDKs to record events in real-time, see Recording events.

For information about how Amazon Personalize updates filters for new records and how new records influence recommendations, see Importing individual records.

Creating an event tracker (console)

Note

If you've created an event tracker, you can skip to Importing events individually (console).

Before you can import an event to an Interactions dataset, you must create an event tracker for the dataset group.

To create an event tracker (console)
  1. Open the Amazon Personalize console at https://console.amazonaws.cn/personalize/home and sign in to your account.

  2. On the Dataset groups page, choose the dataset group with the Interactions dataset that you want to import events to.

  3. On the Dashboard for the dataset group, in Install event ingestion SDK, choose Start.

  4. On the Configure tracker page, in Tracker configurations, for Tracker name, provide a name for the event tracker, and choose Next.

  5. The Install the SDK page shows the Tracking ID for the new event tracker and instructions for using Amazon Amplify or Amazon Lambda to stream event data.

    You can ignore this information because you're using the Amazon Personalize console to upload event data. If you want to stream event data using Amazon Amplify or Amazon Lambda in the future, you can view this information by choosing the event tracker on the Event trackers page.

  6. Choose Finish. You can now import events with the console (see Importing events individually (console) or record events in real time using the PutEvents operation (see Recording events).

Importing events individually (console)

After you create an event tracker, you can import events individually into an Interactions dataset. This procedure assumes you have already created an Interactions dataset. For information about creating datasets, see Creating a dataset and a schema.

To import events individually (console)
  1. Open the Amazon Personalize console at https://console.amazonaws.cn/personalize/home and sign in to your account.

  2. On the Dataset groups page, choose the dataset group with the Interactions dataset that you want to import events to.

  3. In the navigation pane, choose datasets.

  4. On the Datasets page, choose the Interactions dataset.

  5. At the top right of the dataset details page, choose Modify dataset, and choose Create record.

  6. In Create user-item interaction record(s) page, for Record input, enter the event details in JSON format. The event's field names and values must match the schema that you used when you created the Interactions dataset. Amazon Personalize provides a JSON template with field names and data types from this schema. You can import up to 10 events at a time.

  7. Choose Create record(s). In Response, the result of the import is listed and a success or failure message is displayed.