recordsIntentFulfillment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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, | |
}; | |
conv.data.intentFulfilled[convertIntentValue[intentName]] = 1; | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment