4.5 Alexa Channel

This topic describes the systematic instruction to Alexa Channel option. Creating an Alexa skill called futuraBank along with a Webhook channel lets you chat with a specific bot.

Creating an Alexa skill called Futura Bank along with a Webhook channel lets you chat with a specific bot.

Add the skill information

Set up a developer account in the Amazon Developer Portal.

  1. Open the Amazon Developer Console.
  2. Click on ‘Create Skill’.

  3. Enter Futurabank (or any name that you want to use to invoke this skill) as the Invocation Name.

  4. Add new intent as CommandBot.

  5. Add sample utterance to it

  6. Create custom slot.



  7. Update this CustomSlot in previously added intent.

  8. Click Build Model in Build tab.
  9. Update endpoint and add CA.
  10. Note the skill ID.

Setup Account Linking for Alexa

  1. Go to Account Linking tab in Alexa console and enable “allow users to create an account or link to an existing account”.
  2. In the Security Provider Information, select “Auth Code Grant” and set your web authorization Uri ,and access token
  3. Set scope to “accounts”.



  4. Set the client Id for client from client Maintenance page for “OBDXVoiceAstDomain” identity domain client.
  5. Click Edit and set the client secret for the above client.

  6. Go to Resource Server Maintenance page and select Identity domain to OBDXVoiceAstDomain.
  7. Edit the Scope Name of SCO2 to “accounts” and Scope Description to “accounts”.

  8. Go to Touch Point Maintenance page and search for Voice Assistant Banking touch point name.
  9. Add “accounts” scope to the list of scopes, and add upload your bank logo.
  10. Enable Touch point status.

  11. Go to Role Transaction Mapping page, and create an external user and add accounts scope.

  12. Add module “current account savings account”, “term deposit”, “customer servicing” and “loan”,”payments”.

  13. Set the 'CODE_CHALLENGE_FLAG' , 'OPAQUE_ACCESS_TOKEN_FLAG' flags to N in auth_config table.

    update auth_config set prop_value='N' where prop_id='CODE_CHALLENGE_FLAG';

    update auth_config set prop_value='N' where prop_id='OPAQUE_ACCESS_TOKEN_FLAG';

  14. Update token_expiry in digx_au table for OBDXVoiceAstDomain domain_id

    update DIGX_AU_tokendetail set TOKEN_EXPIRY=600 where DOMAIN_ID='c733dee8-6e4f-4400-8170-cf7c6ef98165';

  15. Restart the server.

Create a Webhook channel in ODA

  1. In the Bot Builder, create a webhook channel for your bot. In the Create Channel dialog, enter the outgoing Webhook URL as https://bots-samples-nodejs:8889/ext/apps/alexa-singleBot/singleBotWebhook/messages. This URL is where your bot will send its responses back to the Alexa Futura Bot skill.

    1. Update amzn_appId, channelSecretKey & channelUrl in service.js
    2. Run nodeJS script
    3. npm install
    4. node index.js
    5. This must be publicly hosted in https URL.
    6. Enter this URL in below screen

  2. In the Alexa Mobile App
    1. Ensure that the skill is visible.
    2. Change the language to English US.

  3. Link your amazon account for your skill through alexa app.