• Resolved mikenewman

    (@mikenewman)


    Are there detailed instructions on how to properly set up Account linking? When to Prompt? When to initialize the user? How to test? etc…

    I set up your Order Pizza skill to learn, and found your online instructions extremely helpful! Guess I’m looking for something similar re Account Linking.

    Any sssistance you could provide would be great.

    Thank you, Mike

    • This topic was modified 3 years, 4 months ago by mikenewman.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Tihomir Dmitrovi?

    (@tolecar)

    Hi Mike,
    We still have some work on account linking, especially on documentation, but here is a short explanation that can serve you.

    First you have to configure your skill to support account linking. You can check how to do that in our documentation https://convoworks.com/docs/publishers/platforms-configuration/amazon-alexa/
    If you are going to link your WordPress user, choose the “Installation” Account Linking Mode. For easier testing, I would suggest you uncheck the “Allow users to enable skill without account linking” option.
    After that, the users who wish to enable your skill (in Alexa web or mobile app) will be redirected to your website and will have to log in. When you want to startower and test the workflow again, disable the skill and logout from the website.

    In your skill use the “Init current auth user” element from the convo-wp-core package. When the service is executing and it comes to that element, if the user is not linked, it will prompt him to link the account and will end the session. If the user has a linked account, after the element you will be able to access the user object with expression language. Element stores the user in the request scope, meaning that it is available only in the current request. So, anywhere you need to access user data, just place that element in the workflow and you’ll have it.

    User which is resolved is Convoworks user object (it contains id, name, email, username). If you want to access the WP_User object you can get it with ${user.wpUser}. You can also load wp users by using the get_user_by WP function: ${get_user_by(‘ID’, user.id)}.

    Hope this helps

    Plugin Contributor Tihomir Dmitrovi?

    (@tolecar)

    We published two related articles which are describing the Account Linking process.
    https://convoworks.com/know-your-users-with-alexa-account-linking/ – Account linking setup.
    https://convoworks.com/grow-your-wordpress-business-by-acquiring-the-amazon-alexa-skill-users/ – Use account linking to grow your subscribers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Account Linking’ is closed to new replies.