inputTypes Resolutions and ID in AlexaSkill


#1

Anyone have an idea about how to include items that would become a given input’s “id” within the Alexa model?

Case in point, here is an inputType I am working on for Sales Stage - I tried to include

"alexaSkill: {
  "id": "12111"
}

but for all that effort it resolved to an id=null in the build folder.
Here is the whole inputType if I haven’t been clear about what I am getting at.

 {
      "name": "STAGE",
      "values": [
        {
          "alexaSkill": {
            "id": "38ca8324-587e-4a3c-8502-9054267949b2"
          },
          "value": "OpportunityMP",
          "synonyms": [
            "Major Project Opportunity",
            "Opportunity (Major Projects)",
            "large venues opportunity"
          ]
        },
        {
          "alexaSkill": {
            "id": "appointmentscheduled"
          },
          "value": "appointmentscheduledmp",
          "synonyms": [
            "Appointment Scheduled",
            "Appointment Scheduled Major Projects",
            "Appointment Scheduled Large Venue",
            "Appointment Scheduled MP"
          ]
        },
        {
          "alexaSkill": {
            "id": "qualifiedtobuy"
          },
          "value": "rfp",
          "synonyms": [
            "RFP",
            "Request For Proposal",
            "Request For Proposals",
            "ar ef pee",
            "proposal solicitation"
          ]
        },
        {
          "alexaSkill": {
            "id": "0db2d2b7-5739-4803-9f26-d043c6d58dec"
          },
          "value": "proposal submitted",
          "synonyms": [
            "submitted proposal",
            "proposal",
            "proposal submission",
            "proposal submit"
          ]
        },
        {
          "alexaSkill": {
            "id": "presentationscheduled"
          },
          "value": "descope scheduled",
          "synonyms": [
            "presentation scheduled",
            "project scoping",
            "descope"
          ]
        },
        {
          "alexaSkill": {
            "id": "decisionmakerboughtin"
          },
          "value": "solid coach identified",
          "synonyms": [
            "coach identified",
            "buy in",
            "decision maker bought in"
          ]
        },
        {
          "alexaSkill": {
            "id": "closedlost"
          },
          "value": "closed lost",
          "synonyms": [
            "lost",
            "closed did not win",
            "closed lost",
            "did not close",
            "went another direction"
          ]
        },
        {
          "alexaSkill": {
            "id": "closedwon"
          },
          "value": "closedwon",
          "synonyms": [
            "closed won",
            "won",
            "deal closed"
          ]
        },
        {
          "alexaSkill": {
            "id": "06bd59f1-69b6-4ae5-a596-abde127cfa61"
          },
          "value": "prospect",
          "synonyms": [
            "national account prospect",
            "early",
            "too early"
          ]
        },
        {
          "alexaSkill": {
            "id": "4fc2cd0e-dd2e-472f-8ac6-24d81328c602"
          },
          "value": "realopportunity",
          "synonyms": [
            "real opportunity",
            "opportunity"
          ]
        },
        {
          "alexaSkill": {
            "id": "8eae2d0a-e5c4-4221-9ceb-5443b61e8658"
          },
          "value": "design",
          "synonyms": [
            "ssp",
            "SSP",
            "Sign Specification",
            "Sign Specification Program",
            "value engineering",
            "tvd",
            "TVD",
            "total value",
            "design",
            "designing",
            "drafting",
            "value engineered"
          ]
        },
        {
          "alexaSkill": {
            "id": "a4bfbd51-8621-4ceb-b295-4951e24c17bf"
          },
          "value": "proposalnational",
          "synonyms": [
            "proposal",
            "proposal submitted",
            "proposal national accounts",
            "proposal national account",
            "national accounts proposal",
            "national account proposal",
            "national proposal submitted"
          ]
        },
        {
          "alexaSkill": {
            "id": "861312e0-28d1-44f0-9d84-da0a3f99278a"
          },
          "value": "lostna",
          "synonyms": [
            "lost",
            "lost national accounts",
            "closed lost",
            "lost closed",
            "closed and lost"
          ]
        },
        {
          "alexaSkill": {
            "id": "ff4f8e95-0358-4d87-936e-bbf794bd66e6"
          },
          "value": "wonna",
          "synonyms": [
            "closed won",
            "closed won national",
            "closed won national accounts",
            "closed national accounts",
            "won national accounts",
            "won national account",
            "won national"
          ]
        }
      ]
    }

That built out to this in the platform/alexaSkill/models folder:

				{
					"name": "STAGE",
					"values": [
						{
							"id": null,
							"name": {
								"value": "OpportunityMP",
								"synonyms": [
									"Major Project Opportunity",
									"Opportunity (Major Projects)",
									"large venues opportunity"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "appointmentscheduledmp",
								"synonyms": [
									"Appointment Scheduled",
									"Appointment Scheduled Major Projects",
									"Appointment Scheduled Large Venue",
									"Appointment Scheduled MP"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "rfp",
								"synonyms": [
									"RFP",
									"Request For Proposal",
									"Request For Proposals",
									"ar ef pee",
									"proposal solicitation"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "proposal submitted",
								"synonyms": [
									"submitted proposal",
									"proposal",
									"proposal submission",
									"proposal submit"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "descope scheduled",
								"synonyms": [
									"presentation scheduled",
									"project scoping",
									"descope"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "solid coach identified",
								"synonyms": [
									"coach identified",
									"buy in",
									"decision maker bought in"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "closed lost",
								"synonyms": [
									"lost",
									"closed did not win",
									"closed lost",
									"did not close",
									"went another direction"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "closedwon",
								"synonyms": [
									"closed won",
									"won",
									"deal closed"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "prospect",
								"synonyms": [
									"national account prospect",
									"early",
									"too early"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "realopportunity",
								"synonyms": [
									"real opportunity",
									"opportunity"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "design",
								"synonyms": [
									"ssp",
									"SSP",
									"Sign Specification",
									"Sign Specification Program",
									"value engineering",
									"tvd",
									"TVD",
									"total value",
									"design",
									"designing",
									"drafting",
									"value engineered"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "proposalnational",
								"synonyms": [
									"proposal",
									"proposal submitted",
									"proposal national accounts",
									"proposal national account",
									"national accounts proposal",
									"national account proposal",
									"national proposal submitted"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "lostna",
								"synonyms": [
									"lost",
									"lost national accounts",
									"closed lost",
									"lost closed",
									"closed and lost"
								]
							}
						},
						{
							"id": null,
							"name": {
								"value": "wonna",
								"synonyms": [
									"closed won",
									"closed won national",
									"closed won national accounts",
									"closed national accounts",
									"won national accounts",
									"won national account",
									"won national"
								]
							}
						}
					]
				}

I’d appreciate a little guidance if someone had the time.


#2

I think just id without the surrounding alexaSkill element should work.

One more thing: In the language model, we’re typically not using the platform app type (alexaSkill, googleAction) but the NLU name (alexa, dialogflow) to distinguish between different NLU services.

The one below might also work, but I haven’t tested it:

"alexa: {
  "id": "12111"
}

#3

The regular

{
  "id": "332233", 
  "value": "company",
  "synonyms: [
    "business",
    "operation",
    "outfit"
  ]
}

did the trick for anyone struggling with the same thing in the future. That may have been one of those rare instances where I overthunk myself.

Appreciate the help. Side note - after watching just about every JOVO video on YouTube, the fact that you took the time to answer my question feels a little like a celebrity encounter.


#4

haha, thank you! :smile: