question

Luca Martinucci avatar image
Luca Martinucci asked

Using a skill with two different devices at the same time

Suppose that a user has two devices registered to use an Alexa skill

The user starts a skill session on the first device, then mutes it after the first intent, while the session is still open, and starts talking to the second device (using the same skill).

What happens in this situation?

Does Alexa create a second session, independent from the first one, for the second device, or does it detect that a session is already open for the user and carries on using it, inheriting its data, attributes, etc.?


alexa skills
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Andy Whitworth avatar image
Andy Whitworth answered

It would be a separate skill session but the Alexa userId would be the same for both invocations. As the normal pattern for persisting session variables to a DB uses that userId as a key then you could get inconsistent results *if* the skill uses session persistence.

A combo of userId + deviceId used as a key would get around this.

If the skill doesn't use session persistence then all should be well.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.