Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Records which options the user has complete
* @param {obj} conv, the conversation object.
* @param num conv, the conversation object.
* @return {null} none.
function recordsIntentFulfillment(conv, intentName) {
const convertIntentValue = {
'gdg': 0,
'next event': 1,
'last event': 2,
'members': 3,
'organizer': 4,
};[convertIntentValue[intentName]] = 1;
return null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment