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

For Google dashbotUser should be set in the userStorage parameter which should be stringify’ed JSON (outgoing example)

{
"dashbot_timestamp": 1528632520763,
"request_body": {
"originalRequest": {
...
}
},

"message": {
"speech": "<speak> I will ask you a series of 1st grade math questions. Correct answers earn you prize money! You can choose to bank that prize money or risk it for a larger prize. Try to bank as much money as you can before time runs out. The player who banks the most money wins. Let's begin. <audio src='https://s3.amazonaws.com/volley-voicetrivia/audio/Blue_Impulse_Alexa.mp3' /> Player 1: For $1,000: What is 18 minus 7? </speak>",
"displayText": " I will ask you a series of 1st grade math questions. Correct answers earn you prize money! You can choose to bank that prize money or risk it for a larger prize. Try to bank as much money as you can before time runs out. The player who banks the most money wins. Let's begin. Player 1: For $1,000: What is 18 minus 7?",
"data": {
"google": {
"expect_user_response": true,
"userStorage": "{\"dashbotUser\":{\"favoriteBook\":\"Harry Potter\"}}"
}
}
}
}
Close Menu