function sendSecondQuestion()

in SampleIntegrations/SampleBots/NodeJS/EmployeeSurvey/app.js [300:328]


function sendSecondQuestion(recipientId) {
	var messageData = {
		recipient: {
			id: recipientId
		},
		message: {
			text: 'How long do you plan to stay in the company?',
			quick_replies: [{
				content_type: 'text',
				title: '0-1 years',
				payload: 'STAY:1'
			},{
				content_type: 'text',
				title: '1-2 years',
				payload: 'STAY:2'
			},{
				content_type: 'text',
				title: '2-4 years',
				payload: 'STAY:3'
			},{
				content_type: 'text',
				title: '5+ years',
				payload: 'STAY:4'
			}]
		}
	};

	callSendAPI(messageData);
}