/ / Alexaのサンプル発話では、コネクタの単語に基づいてスロットを識別できません-alexa、alexa-skills-kit、alexa-slot

Alexaサンプルの発言は、コネクタの単語に基づいてスロットを識別できません - alexa、alexa-skill-kit、alexa-slot

私は仕事をしようとしている2つのAlexaの簡単な質問があります:

when is the next train from chicago to new york
when is the next train to new york from chicago

上記の両方の質問で、最初の都市は出発地にマップされ、2番目の都市は目的地にマップされます。

when is the next train *from* new york *to* chicago

の代わりに

when is the next train *to* new york *from* chicago

サンプルの発話を次のように設定しています:

NextTrainIntent next train from {OriginCity} to {DestinationCity}
NextTrainIntent next train to {DestinationCity} from {OriginCity}

コネクタの単語が無視されていることに気付きました。しかし、このような場合、英語はどのように機能するかが重要です。両方の質問を機能させる方法はありますか?

回答:

回答№1は2

これらの発言を2つの異なるインテントに実装します。

FirstIntent ... {OriginCity} to {DestinationCity}
SecondIntent ...{DestinationCity} from {OriginCity}

Alexaはその後、注意深く耳を傾けます。

または、Alexa Skill Builder(BETA)を試してください。