Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Updating for ASK CLI v2 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The [ASK CLI](https://developer.amazon.com/docs/smapi/quick-start-alexa-skills-k
Once you have installed the CLI, you need to initialize ASK CLI with your Amazon developer account credentials with the following command:

```bash
$ ask init
$ ask configure
```

**Note:** You may have AWS credentials connected to the ASK CLI to automatically deploy and manage skills powered by AWS Lambda; for this set up, you **do not** need to have AWS credentials tied to your ASK CLI installation. For more information on how to set up your AWS credentials, see [Set Up Credentials for an Amazon Web Services (AWS) Account](https://developer.amazon.com/docs/smapi/set-up-credentials-for-an-amazon-web-services-account.html).
Expand Down
12 changes: 6 additions & 6 deletions instructions/3-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ The ASK CLI will create the skill front-end for you.

```
$ ask deploy
-------------------- Create Skill Project --------------------
Profile for the deployment: [default]
Skill Id: <Your Skill ID>
Skill deployment finished.
Model deployment finished.
[Info]: No lambda functions need to be deployed.
==================== Deploy Skill Metadata ====================
Skill package deployed successfully.
Skill ID: amzn1.ask.skill.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

==================== Build Skill Code ====================
...
```

2. Make sure to save your skill ID returned in the previous output. We’ll use that often in the future steps.
Expand Down
20 changes: 9 additions & 11 deletions instructions/5-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@ Now that you completed most of the setup, let's make sure everything is working.
1. Run the following command to execute a command against your skill:

```
$ ask simulate -l en-US -t "open sales assistant"
✓ Simulation created for simulation id: 0c857923-0753-43a5-b44c-ee2fca137aab
◜ Waiting for simulation response{
"status": "SUCCESSFUL",
"result": {
$ ask dialog -l en-US
========================================== Welcome to ASK Dialog
========================================== In interactive mode, type your utterance text onto the console and hit enter
========================================== Alexa will then evaluate your input and give a response!
========================================== Use ".record <fileName>" or ".record <fileName> --append-quit" to save list of utterances to a file.
========================================== You can exit the interactive mode by entering ".quit" or "ctrl + c".

User > Open Sales Assistant
...
```

2. Check for the output message to also see what Alexa would have said. In this case, the message just indicates you need to link a Salesforce account since the skill requires authentication against Salesforce to get started.

```
...
"outputSpeech": {
"type": "SSML",
"ssml": "<speak>You need to link a Salesforce account before you can use this skill.\n I've sent a card to your Alexa app to help.</speak>"
},
...
Alexa > You need to link a Salesforce account before you can use this skill. I've sent a card to your Alexa app to help.
```

### Test the Linking Flow
Expand Down