0
votes

My slot type has race track names in like Silverstone and Suzuka
They also have synonyms like Bristish and Japanese.

When I say British race I want the Python to return the value or id not the spoken words.

Currently I've got: track = intent['slots']['trackSlot']['value'] which would return British, not the required Silverstone

1

1 Answers

0
votes

I've just used the Python to dig into the JSON as required.

track = intent['slots']['trackSlot']['resolutions']['resolutionsPerAuthority'][0]['values'][0]['value']['id']