I must be dumb - passing and returning metadata

Hi,

For the life of me I can’t figure out how to pass and return metadata to and from a skill. Just for example, I have a javascript application calling the skill, and returning the result back. I want to pass a variable from javascript (lets just call it ID with a value of ABC), have the skill receive that value, and then pass it back again. Unfortunately on calls like self.speak_dialog I see no means to set response values other than just what is being spoken. Am I doing something wrong?

Thanks,
Jay

you should be able to use the message context field, context gets passed along in the speak message, so any data you put in there in js side will also be in the response

this PR is also potentially of interest to you once it gets merged

1 Like