I was trying to read the first name of the person using the skill with the SSML tag of alexa:name.
I see that when I hard-code the personID, the skill works correctly:
var speechOutput = 'Hello, <alexa:name type="first" personId="amzn1.ask.person.AG5O55GEGNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY"}/> how are you?';
However, when I try to use the same command with a variable in personId, I am not able to get it to work correctly. i.e.:
let person = requestEnvelope.context.System.person;
const personUniqueId = person.personId;
var speechOutput = 'Hello, <alexa:name type="first" personId=personUniqueId}/> how are you?'
I tried to wrap personUniqueId in double quotes, {} etc and none of them seem to work.
Any clues as to how to proceed?