in SampleIntegrations/SampleBots/NodeJS/ExpenseBot/app.js [529:559]
function sendGetStarted(recipientId) {
graphapi({
url: '/' + recipientId,
qs: {
'fields': 'first_name'
}
},function(error,response,body) {
body = JSON.parse(body);
var messageData = {
recipient: {
id: body.id
},
message: {
text: 'Hi ' + body.first_name + ', what would you like to do?',
quick_replies: [
{
'content_type':'text',
'title':'New Claim',
'payload':'FILE_NEW_CLAIM'
},
{
'content_type':'text',
'title':'View Claims',
'payload':'VIEW_OPEN_CLAIMS'
}
]
}
};
callSendAPI(messageData);
});
}