Preparing action interaction data for training

If you use the Next-Best-Action custom recipe, Amazon Personalize uses action interactions data to identify user interest and predict the actions they will most likely take. An action interaction is an interaction involving a user and an action in your Actions dataset. For example, if you have an enroll action in your Actions dataset, and a user takes this action, you would record the user's ID, the action's ID, the timestamp, and for event type, record TAKEN.

You import action interactions into an Amazon Personalize Action interactions dataset. You can import action interaction events in bulk with a dataset import job, or you can stream them in real time with the PutActionInteractions API operation. You can't create next best action resources, including Actions and Action Interactions datasets, in a domain dataset group.

Your bulk action interactions data must be in a CSV file. Each row in the file should represent a unique interaction between a user and an action. After you finish preparing your data, you are ready to create a schema JSON file. This file tells Amazon Personalize about the structure of your data. For more information, see Creating schema JSON files for Amazon Personalize schemas.

The following sections provide more information on how to prepare your action interaction data for Amazon Personalize. For bulk data format guidelines for all types of data, see bulk data format guidelines.

Topics
Action interaction data requirements
Event type data
Action interactions data example