Test Personalization with the Alexa Simulator
In the simulator, you first create user profiles that provide different combinations of permissions to your skill. Next, you select a profile, and then type text into the utterance box to open the skill and interact with your skill as that particular user. This functionality enables you to test different permission configurations.
For details about adding personalization to your skill, see Add Personalization to Your Skill.
To test the personalization of your skill, you can perform the following actions directly from the simulator in the developer console:
- Create and configure user profiles – User profiles enable you to test your skill's functionality for different permission configurations. For each user profile on your account — both existing profiles and new profiles that you create within the simulator — you can toggle consent on and off for the various skill permissions that your skill requests. (Account refers to the Amazon account under which you created the skill.) For details, see Create and configure user profiles.
- Enter utterances to simulate user input – You can enter user utterances into the simulator text box to test how your skill responds to users with different permissions enabled. For details, see Simulate user input with the selected profile.
Note: Currently, the simulator only supports text utterances for personalization testing.
Create and configure user profiles
In the simulator, you create user profiles, and then assign the user profiles different sets of permissions. For example, you might create a user profile for each of the following users:
- a user who hasn't consented to any of the skill permissions that your skill requests
- a user who has consented to all the skill permissions that your skill requests
- a user who has consented to some, but not all, permissions that your skill requests
To create and configure a user profile in the simulator
- Sign in to the Alexa developer console and navigate to a skill that supports personalization.
- Ensure that the interaction model for the skill builds successfully.
- On the Build tab, in the left pane, click Tools, and then click Permissions.
- In the permissions list, in addition to Skills Personalization (which should already be selected if your skill supports personalization), select the individual permissions that your skill requires from the user.
Examples are Full address and Full name. If you don't select any specific permissions on this page, the user profile you configure for testing won't have any permissions to configure.
- At the top, click the Test tab.
- At the top left, next to Test is disabled for this skill, click the box, and then select Development.
The option changes to Skill testing is enabled in with Development selected.
- Ensure that the green box at the top right says Personalization has been enabled.
Note: If the green box has a link titled Enable Personalization, your skill doesn't support personalization. If you need a skill that supports personalization, you can create an Alexa-hosted custom skill based on the Fact Skill or Fruit Shop Skill template, which support personalization.
- Under the green box, expand Personalization.
- Under Select a profile, click the box, and then click Create new profile.
- Enter a first and last name for the user.
These don't need to be real names; they are just for testing.
- On the right, toggle Profile personalization to ON.
- On the right, enable any specific permissions that you want this user profile to have.
For example, if your skill requires Full address and Full name, you might create four user profiles: 1) a profile that doesn't give either permission, 2) a profile that gives permission for just Full address, 3) a profile that gives permission for just Full name, and 4) a profile that gives permission for both Full address and Full name.
- Click Save.
Simulate user input with the selected profile
Now that you have some user profiles, you can simulate interaction with your skill by using a particular profile. This functionality enables you to test different permission configurations.
To select a profile and simulate user input
- In the Test tab, under the green box, expand Personalization, and then select a user profile.
If you don't see any user profiles, create one.
- On the left, in the box that says, Type and click or hold the mic, type
open <skill invocation name>.
If you don't know your skill invocation name, go to the Build tab, and then click Invocation.
- After Alexa responds, type user utterances to interact with the skill as if you are the skill user with the profile you selected.
- Personalize the User Experience of an Alexa Skill
- Add Personalization to Your Alexa Skill
- Learn Best Practices for Testing Personalization
- Test with the Alexa Simulator
Was this page helpful?
Last updated: Mar 24, 2022