You need to sign in to do that
Don't have an account?

Create Alexa Skills and Lambda Functions with the ASK CLI
after installing node.js when i am running the command ask deploy i am getting the following error
Profile for the deployment: [default]
Skill Id: amzn1.ask.skill.f0439ae9-befa-4ece-a4c7-293f30e1669f
Skill deployment finished.
Call update-model error.
Error code: 400
{
"message": "Interaction model is not valid.",
"violations": [
{
"message": "InvalidSlotTypeName: Slot type name \"AMAZON.SearchQuery\" is invalid. The name of a custom slot type must begin with an alphabetic character and can consist only of alphabetic characters or underscores."
}
]
}
How to solve this error
Profile for the deployment: [default]
Skill Id: amzn1.ask.skill.f0439ae9-befa-4ece-a4c7-293f30e1669f
Skill deployment finished.
Call update-model error.
Error code: 400
{
"message": "Interaction model is not valid.",
"violations": [
{
"message": "InvalidSlotTypeName: Slot type name \"AMAZON.SearchQuery\" is invalid. The name of a custom slot type must begin with an alphabetic character and can consist only of alphabetic characters or underscores."
}
]
}
How to solve this error
There was a problem with the requested skill's response
JSON input
{
"version": "1.0",
"session": {
"new": true,
"sessionId": "amzn1.echo-api.session.bf966f68-2931-40cb-8490-860a0f43bc15",
"application": {
"applicationId": "amzn1.ask.skill.37703e85-dbb3-41c1-9c6b-9aae0f03658a"
},
"user": {
"userId": "amzn1.ask.account.AFIV2UCDSFWW2S7BEXWGBSZJEVOXZJJJHS3GMQES5QKLVLV5PRXLQMF4GOHPZLXOXBW4AFM7TP2SK565DQHO3ZMSPDPSLNDR244TENSPQFEMDEGENS4IWKQDMOB5MPOPSL4KZBI4D3Q6D7VB7MN64SHEYPPNODY3VXK3LCTICM5GQFTXXIFQOD7DWDRMU3ZEEMEN3DXYYFCANFY"
}
},
"context": {
"System": {
"application": {
"applicationId": "amzn1.ask.skill.37703e85-dbb3-41c1-9c6b-9aae0f03658a"
},
"user": {
"userId": "amzn1.ask.account.AFIV2UCDSFWW2S7BEXWGBSZJEVOXZJJJHS3GMQES5QKLVLV5PRXLQMF4GOHPZLXOXBW4AFM7TP2SK565DQHO3ZMSPDPSLNDR244TENSPQFE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RRVM1UUtMVkxWNVBSWExRTUY0R09IUFpMWE9YQlc0QUZNN1RQMlNLNTY1RFFITzNaTVNQRFBTTE5EUjI0NFRFTlNQUUZFTURFR0VOUzRJV0tRRE1PQjVNUE9QU0w0S1pCSTREM1E2RDdWQjdNTjY0U0hFWVBQTk9EWTNWWEszTENUSUNNNUdRRlRYWElGUU9EN0RXRFJNVTNaRUVNRU4zRFhZWUZDQU5GWSJ9fQ.LgGvTy0VhgFDFnXjexTEx_u0D0lEnZq4TEE1P5mE3ij3htjxf9mY3542ZFyitHtJmZgCRVVhvCOnIINpyqfrqcxKkqE0tlg7aXcJZwCRXIHMiByuChG7ig7THmlzfI1-WhE6l6wangScJKV5RAX-riiXzGJ7WP5FPb43i4ySzDKHgLp_WqfaIhQH8DJTVXimlko_tH8jV1d3WOaz-GmAakNBjbg4zMBVvaPsP6a3x3ZlajJV17img612xE0bhtsWQTaHi5YKLna5EaAZzMNO8WSiKqDXAi25mbPjlCtkQ5EDAo4geORhEf4w2Prl-QWY21mSvMILcT0mK3fkws_uxg"
}
},
"request": {
"type": "LaunchRequest",
"requestId": "amzn1.echo-api.request.3ba3ffb8-a231-43ca-8ff1-fda9c6ff1202",
"timestamp": "2018-06-19T09:17:51Z",
"locale": "en-US",
"shouldLinkResultBeReturned": false
}
}
JSON Output
null
2018-06-19T09:17:52.088Z a466a7d2-73a1-11e8-92c2-f3d4fdfd3a82 Error saving state: AskSdk.DynamoDbPersistenceAdapter Error: Could not save item (amzn1.ask.account.AFIV2UCDSFWW2S7BEXWGBSZJEVOXZJJJHS3GMQES5QKLVLV5PRXLQMF4GOHPZLXOXBW4AFM7TP2SK565DQHO3ZMSPDPSLNDR244TENSPQFEMDEGENS4IWKQDMOB5MPOPSL4KZBI4D3Q6D7VB7MN64SHEYPPNODY3VXK3LCTICM5GQFTXXIFQOD7DWDRMU3ZEEMEN3DXYYFCANFY) to table (Salesforce_Skill): User: arn:aws:sts::157483919600:assumed-role/ask-lambda-Salesforce-Demo/ask-custom-AlexaSalesforceDemo-default is not authorized to perform: dynamodb:PutItem on resource: arn:aws:dynamodb:us-east-1:157483919600:table/Salesforce_Skill
AskSdk.DynamoDbPersistenceAdapter Error: Could not save item (amzn1.ask.account.AFIV2UCDSFWW2S7BEXWGBSZJEVOXZJJJHS3GMQES5QKLVLV5PRXLQMF4GOHPZLXOXBW4AFM7TP2SK565DQHO3ZMSPDPSLNDR244TENSPQFEMDEGENS4IWKQDMOB5MPOPSL4KZBI4D3Q6D7VB7MN64SHEYPPNODY3VXK3LCTICM5GQFTXXIFQOD7DWDRMU3ZEEMEN3DXYYFCANFY) to table (Salesforce_Skill): User: arn:aws:sts::157483919600:assumed-role/ask-lambda-Salesforce-Demo/ask-custom-AlexaSalesforceDemo-default is not authorized to perform: dynamodb:PutItem on resource: arn:aws:dynamodb:us-east-1:157483919600:table/Salesforce_Skill
at Object.createAskSdkError (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/utils/AskSdkUtils.js:22:17)
at DynamoDbPersistenceAdapter.<anonymous> (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/attributes/persistence/DynamoDbPersistenceAdapter.js:165:45)
at step (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/attributes/persistence/DynamoDbPersistenceAdapter.js:44:23)
at Object.throw (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/attributes/persistence/DynamoDbPersistenceAdapter.js:25:53)
at rejected (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/attributes/persistence/DynamoDbPersistenceAdapter.js:17:65)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
2018-06-19T09:17:52.109Z a466a7d2-73a1-11e8-92c2-f3d4fdfd3a82
{ "errorMessage": "Could not save item (amzn1.ask.account.AFIV2UCDSFWW2S7BEXWGBSZJEVOXZJJJHS3GMQES5QKLVLV5PRXLQMF4GOHPZLXOXBW4AFM7TP2SK565DQHO3ZMSPDPSLNDR244TENSPQFEMDEGENS4IWKQDMOB5MPOPSL4KZBI4D3Q6D7VB7MN64SHEYPPNODY3VXK3LCTICM5GQFTXXIFQOD7DWDRMU3ZEEMEN3DXYYFCANFY) to table (Salesforce_Skill): User: arn:aws:sts::157483919600:assumed-role/ask-lambda-Salesforce-Demo/ask-custom-AlexaSalesforceDemo-default is not authorized to perform: dynamodb:PutItem on resource: arn:aws:dynamodb:us-east-1:157483919600:table/Salesforce_Skill", "errorType": "AskSdk.DynamoDbPersistenceAdapter Error", "stackTrace": [ "Object.createAskSdkError (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/utils/AskSdkUtils.js:22:17)", "DynamoDbPersistenceAdapter.<anonymous> (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/attributes/persistence/DynamoDbPersistenceAdapter.js:165:45)", "step (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/attributes/persistence/DynamoDbPersistenceAdapter.js:44:23)", "Object.throw (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/attributes/persistence/DynamoDbPersistenceAdapter.js:25:53)", "rejected (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/lib/attributes/persistence/DynamoDbPersistenceAdapter.js:17:65)", "<anonymous>", "process._tickDomainCallback (internal/process/next_tick.js:228:7)" ] }
According to the documentation this error can happen the first time you try to access the DynamoDB but I've been getting the error for the last hour or two.
I have linked my SF account to the skill in Alexa website-->Dev Skills--> xxxxdemo. But when I say open Salesforce demo it is keeping on asking me to link account. I am not sure what else is required. Can someone please throw lght on this? Thanks.
According to the CLI
? Allow users to enable skill without account linking: Yes
? Authorization URL: https://login.salesforce.com/services/oauth2/authorize
? Client ID: <my consumer key >
? Scopes(separate by comma): api,refresh_token
? Domains(separate by comma):
? Authorization Grant Type: AUTH_CODE
? Access Token URI: https://login.salesforce.com/services/oauth2/token
? Client Secret: [hidden]
? Client Authentication Scheme: REQUEST_BODY_CREDENTIALS
? Optional* Default Access Token Expiration Time In Seconds: 3600
Account linking created successfully.
The problem is i don't have any other error message wich make the debug more complicated. Is anyone have an idea?
I am also facing the same issue Charles is facing.
Does anyone successful in resolving the issue?
Thanks & Regards,
Harsha BR
1)https://alexa.amazon.in (Open this)
2)go to Skills---->Your Skills(On right upper corner)--->Click on Your Salesforce Demo Skill
It should look like below
Go to the settings---->Click on Link Account hyperlink----->Give your trailhead credentials and connect
I haver tried the above suggestion, but still getting the failure when I try to use the ASK CLI simulator (See below)
Has anyone found a resolution for this?
✓ Simulation created for simulation id: d84f18ec-9e81-4d3e-96d7-60a8641d0c11
{
"id": "d84f18ec-9e81-4d3e-96d7-60a8641d0c11",
"status": "SUCCESSFUL",
"result": {
"alexaExecutionInfo": {
"alexaResponses": [
{
"type": "Speech",
"content": {
"caption": "There was a problem with the requested skill's response"
}
}
],
......
......
......
......
"request": {
"type": "LaunchRequest",
"requestId": "amzn1.echo-api.request.d5730be3-4e26-47b4-90fa-dbbe596c8509",
"timestamp": "2020-03-04T22:46:52Z",
"locale": "en-US",
"shouldLinkResultBeReturned": false
}
}
},
"metrics": {
"skillExecutionTimeInMilliseconds": 5048
}
}
]
},
"error": {
"message": "Request to skill endpoint resulted in an error."
}
}
}
__PRESENT