Tracking Custom User Metadata
You can send any custom user metadata to build detailed audience segments.
Custom user metadata can be sent for both incoming and outgoing messages.
Examples of metadata that you might send:
- Your own User ID
- Experiment Group, for A/B Testing
- Favorite Book
- Location
To send Custom User MetaData
TO pass custom metadata, set the dashbotUser session attribute
'NewIntent': function () {//generate a new fact using an array of available facts (data)...this.attributes.dashbotUser = {favoriteBook: 'Harry Potter'}...this.emit(':responseReady');}
Or, in the outgoing JSON:
"dashbot_timestamp": 1529391516389,"event": {...},"response": {"version": "1.0","response": {"shouldEndSession": false,"outputSpeech": {"type": "SSML","ssml": "<speak> <audio src="https://s3.amazonaws.com/volley-voice-service-prod/output_1ca64570533a435a28316bafaa766fdc.mp3" /> </speak>"},"reprompt": {"outputSpeech": {"type": "SSML","ssml": "<speak> <audio src="https://s3.amazonaws.com/volley-voice-service-prod/reprompt_1ca64570533a435a28316bafaa766fdc.mp3" /> </speak>"}}},"sessionAttributes": {"dashbotUser": {"favoriteBook": "Harry Potter"},...}}}