From 2029ab41ea1e23a445468d9e591528ecb7d51719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyour?= Date: Thu, 30 Apr 2020 13:44:19 +0530 Subject: [PATCH 1/7] Add free flow text for tara --- bot/data/nlu.md | 77 +++++++++++++++++++++++++++++++++++-------- bot/data/stories.md | 30 ++++++++++++++++- bot/domain.yml | 79 ++++++++++++++++++++++++++++++++++++++++----- 3 files changed, 163 insertions(+), 23 deletions(-) diff --git a/bot/data/nlu.md b/bot/data/nlu.md index bd4230a..3212850 100644 --- a/bot/data/nlu.md +++ b/bot/data/nlu.md @@ -14,21 +14,22 @@ - vanakkam ## intent:how_you -- how are you -- how you doing -- how do you do -- whats up -- how is it going -- how are you today -- How have you been? -- whassup -- What are you up to +- how are you ? +- how you doing ? +- how do you do ? +- whats up ? +- how is it going ? +- how are you today ? +- How have you been ? +- whassup ? +- What are you up to ? ## intent:goodbye -- bye -- goodbye -- see you around -- see you later +- Bye +- Goodbye +- See you around +- See you later +- See you ## intent:bot_challenge - are you a bot? @@ -172,4 +173,52 @@ data/mediums.txt - When will DIKSHA have live classes? - Do you have live classes?" - online classes -- live classes \ No newline at end of file +- live classes + +## intent: covid_or_corona_virus +- What is COVID? +- What is COVID19? +- How do I deal with COVID? +- How do I deal with COVID19? +- COVID +- COVID19 +- quarantine + +## intent: creative_and_critical_thinking +- I want to practice Weekly Creative and Critical Thinking questions +- Critical thinking questions +- I want to access critical thinking questions +- Show me critical thinking questions +- Take me to critical questions + +## intent: download_diksha_app +- I want to downlaod DIKSHA App +- DIKSHA app download +- How to download the DIKSHA app +- How to install the DIKSHA app +- I want to install DIKSHA app + +## intent: how_to_scan_qr_code +- I want to scan the QR code +- How to scan QR code +- I want to understand how to scan QR code +- I am unable to sca QR code + +# intent: query_login +- I am unable to login +- I want to register on DIKSHA +- Facing problem with login +- Don't know how to login +- Help me to login +- Help me to register + +# intent: query_reset_password +- I have forgotten my password +- I want to reset my password + +# intent: contribute_content +- I want to contribute content as a teacher +- I want to access vidyadaan +- I am a teacher and want to contribute content +- Contribute content +- Content Contribution \ No newline at end of file diff --git a/bot/data/stories.md b/bot/data/stories.md index ba12c1b..cda395c 100644 --- a/bot/data/stories.md +++ b/bot/data/stories.md @@ -52,4 +52,32 @@ # curfew or lockdown * lockdown_or_curfew - - utter_lockdown_or_curfew \ No newline at end of file + - utter_lockdown_or_curfew + +# covid or corona or covid 19 +* covid_or_corona_virus + - utter_covid_or_corona_virus + +# creative and critical thinking +* creative_and_critical_thinking + - utter_creative_and_critical_thinking + +# download diksha app +* download_diksha_app + - utter_download_diksha_app + +# how to scan qr code +* how_to_scan_qr_code + - utter_how_to_scan_qr_code + +# unable to login +* query_login + - utter_query_login + +# query about reset password +* query_reset_password + - utter_query_reset_password + +# contribute content +* contribute_content + - utter_contribute_content \ No newline at end of file diff --git a/bot/domain.yml b/bot/domain.yml index 7b6a7dd..7cbf11e 100644 --- a/bot/domain.yml +++ b/bot/domain.yml @@ -14,6 +14,13 @@ intents: - content_suggestions - online_or_live_classes - lockdown_or_curfew + - covid_or_corona_virus + - creative_and_critical_thinking + - download_diksha_app + - how_to_scan_qr_code + - query_login + - query_reset_password + - contribute_content entities: - board @@ -38,20 +45,27 @@ actions: - utter_content_suggestions - utter_online_or_live_classes - utter_lockdown_or_curfew +- utter_covid_or_corona_virus +- utter_creative_and_critical_thinking +- utter_download_diksha_app +- utter_how_to_scan_qr_code +- utter_query_login +- utter_query_reset_password +- utter_contribute_content responses: utter_greet: - custom: blocks: - type: "response" - text: "Hi there! Please press 0 for menu." + text: "Hi, there!

Tell me your query so that I can help you or press 0 to go to first menu or press 99 to go back
" intent: "greet" utter_how_you: - custom: blocks: - type: "response" - text: "I am good, thanks for asking. Please press 0 for menu." + text: "I am good! Hope you doing well too.

Tell me your query so that I can help you or press 0 to go to first menu or press 99 to go back
" intent: "how_you" utter_get_started: @@ -65,21 +79,21 @@ responses: - custom: blocks: - type: "response" - text: "I am bot, here to help you. Please press 0 for menu." + text: "I am Tara, your DIKSHA bot guide.

Tell me you query so that I can help you or press 0 to go to first menu or press 99 to go back
" intent: "who_am_i" utter_goodbye: - custom: blocks: - type: "response" - text: "See ya!" + text: "Bye, Happy learning!


**Press 0 to go to first menu or type your query directly
" intent: "goodbye" utter_low_confidence: - custom: blocks: - type: "response" - text: "Can you rephrase that please? Press 0 for menu." + text: "I could not understand correctly, can you rephrase that for me? or Press 0 to go to first menu" intent: "low_confidence" utter_out_of_scope: @@ -108,7 +122,7 @@ responses: - custom: blocks: - type: "response" - text: "We support English, Hindi, Kannada, Bengali, Marathi, Tamil, Telugu, Urdu languages." + text: "DIKSHA has digital contents in English, Hindi, Kannada, Bengali, Marathi, Tamil, Telugu, Urdu languages.


** Press 0 to go to first menu or press 99 to go back or type your query directly
" intent: "language_support" @@ -140,16 +154,65 @@ responses: - custom: blocks: - type: "response" - text: "Currently, there are no online or live classes on DIKSHA.
But, I can guide you to a lot of interesting content specific to your board, medium, class and subject.
To discover content, press 0 to go to first menu or press 99 to go back or type your query directly" + text: "Currently, there are no online or live classes on DIKSHA. But, I can guide you to a lot of interesting content specific to your board, medium, class and subject.
To discover content, press 0 to go to first menu or press 99 to go back or type your query directly
" intent: "online_or_live_classes" utter_lockdown_or_curfew: - custom: blocks: - type: "response" - text: "I understand you are worried about studying during these trying times.
I can guide you to a lot of interesting content for you on DIKSHA.
To discover content, press 0 to go to first menu or press 99 to go back or type your query directly" + text: "I understand you are worried about studying during these trying times.I can guide you to a lot of interesting content for you on DIKSHA.
To discover content, press 0 to go to first menu or press 99 to go back or type your query directly
" intent: "lockdown_or_curfew" + utter_covid_or_corona_virus: + - custom: + blocks: + - type: "response" + text: "I understand that you are worried about the situation. Unfortunately, I cannot help you with this information. But, I can guide you to a lot of interesting content on DIKSHA.
To discover content, press 0 to go to first menu or press 99 to go back or type your query directly
" + intent: "covid_or_corona_virus" + + utter_creative_and_critical_thinking: + - custom: + blocks: + - type: "response" + text: "I understand you want to practice Weekly Creative and Critical Thinking questions.
Please visit : diksha.gov.in/play/collection/do_31290608850520473612338?contentType=TextBook
Select the Subject to view relevant content on the webpage.

** Press 0 to go to first menu or press 99 to go back or type your query directly
" + intent: "creative_and_critical_thinking" + + utter_download_diksha_app: + - custom: + blocks: + - type: "response" + text: "I understand you want to download DIKSHA app.
Please visit (
play.google.com/store/apps/details?id=in.gov.diksha.app&referrer=utm_source%3Dtara)
Step 1. Download the DIKSHA mobile app from the link given above.
Step 2. Install the DIKSHA app
Step 3. Follow the instructions provided in the app

You are good to go!

** Press 0 to go to first menu or press 99 to go back or type your query directly" + intent: "download_diksha_app" + + utter_how_to_scan_qr_code: + - custom: + blocks: + - type: "response" + text: "I understand you want to see how to scan the QR code.
Please visit: diksha.gov.in/help/getting-started/diksha-mobile-app/understanding-qr-code.html

** Press 0 to go to first menu or press 99 to go back or type your query directly
" + intent: "how_to_scan_qr_code" + + utter_query_login: + - custom: + blocks: + - type: "response" + text: "I understand you want to know how to login/Register.
Please visit: diksha.gov.in/help/getting-started/sign-in/index.html

**Press 0 to go to first menu or press 99 to go back or type your query directly
" + intent: "query_login" + + utter_query_reset_password: + - custom: + blocks: + - type: "response" + text: "I understand you want to know how to reset password.
Please visit: diksha.gov.in/help/getting-started/recover-password/index.html

** Press 0 to go to first menu or press 99 to go back or type your query directly
" + intent: "query_reset_password" + + utter_contribute_content: + - custom: + blocks: + - type: "response" + text: "I understand you want to contribute content to DIKSHA
Please visit: https://vdn.diksha.gov.in

**Press 0 to go to first menu or press 99 to go back or type your query directly
" + intent: "contribute_content" + session_config: session_expiration_time: 60 carry_over_slots_to_new_session: true From efac06918ab098cdf6bb2fc070e910f3d64a01dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyour?= Date: Thu, 30 Apr 2020 15:39:48 +0530 Subject: [PATCH 2/7] uuid generation and push the same to telemetry as sid --- router/api/telemetry/telemetry.js | 16 ++++++---- router/appRest.js | 50 +++++++++++++++++-------------- 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/router/api/telemetry/telemetry.js b/router/api/telemetry/telemetry.js index 5076ee3..662bf4a 100644 --- a/router/api/telemetry/telemetry.js +++ b/router/api/telemetry/telemetry.js @@ -10,13 +10,16 @@ module.exports = { * this function helps to generate session start event */ logSessionStart: function (sessionData) { - const uaspec = sessionData.userSpecData - var channelId = sessionData.requestData.channelId + const uaspec = sessionData.userSpecData var dims = [] + var channelId = sessionData.requestData.channelId + var splitedChannelId = data.requestData.channelId.split('.'); + const context = telemetry.getContextData({ channel: channelId, env: splitedChannelId[1] + '.' + splitedChannelId[2]}) const edata = telemetry.startEventData('botsession') edata.uaspec = uaspec - const context = telemetry.getContextData({ channel: channelId, env: 'dikshavani' }) - context.sid = sessionData.userData.customData.userId + + const context = telemetry.getContextData({ channel: channelId, env: splitedChannelId[1] + '.' + splitedChannelId[2]}) + context.sid = sessionData.id context.did = sessionData.requestData.deviceId context.rollup = telemetry.getRollUpData(dims) const actor = telemetry.getActorData(sessionData.userData.customData.userId, 'user') @@ -41,9 +44,10 @@ module.exports = { id: data.id }; var channelId = data.requestData.channelId + var splitedChannelId = data.requestData.channelId.split('.'); var dims = [] - const context = telemetry.getContextData({ channel: channelId, env: 'dikshavani'}) - context.sid = userData.customData.userId + const context = telemetry.getContextData({ channel: channelId, env: splitedChannelId[1] + '.' + splitedChannelId[2]}) + context.sid = data.sid context.did = data.requestData.deviceId context.rollup = telemetry.getRollUpData(dims) const actor = telemetry.getActorData(userId, 'user') diff --git a/router/appRest.js b/router/appRest.js index 0bcee7b..d85d0a6 100644 --- a/router/appRest.js +++ b/router/appRest.js @@ -16,6 +16,7 @@ const axios = require('axios') const parser = require('ua-parser-js') const apiToken = config.PORTAL_API_AUTH_TOKEN const appBot = express() +var UUIDV4 = require('uuid') //cors handling appBot.use(cors()); //body parsers for requests @@ -78,28 +79,28 @@ appBot.post('/bot/telegram', function (req, res) { function handler(req, res, channel) { var body = req.body.Body - var sessionID = req.body.From; - var userID = req.body.userId ? req.body.userId :req.body.From; + var deviceID = req.body.From; + var userID = req.body.userId; let uaspec = getUserSpec(req); var userData = {}; data = { message: body, customData: { userId: userID } } - LOG.info('context for: ' + sessionID) + LOG.info('context for: ' + deviceID) //persisting incoming data to EDB //dataPersist = {'message': body, 'channel' : 'rest'} - //EDB.saveToEDB(dataPersist, 'user', sessionID,(err,response)=>{}) - if (!sessionID) { - sendResponse(sessionID, res, "From attrib missing", 400); + //EDB.saveToEDB(dataPersist, 'user', deviceID,(err,response)=>{}) + if (!deviceID) { + sendResponse(deviceID, res, "From attrib missing", 400); } else { - redis_client.get(sessionID, (err, redisValue) => { + redis_client.get(deviceID, (err, redisValue) => { if (redisValue != null) { // Key is already exist and hence assiging data which is already there at the posted key userData = JSON.parse(redisValue); // all non numeric user messages go to bot if (isNaN(body)) { ///Bot interaction flow - RasaCoreController.processUserData(data, sessionID, (err, resp) => { + RasaCoreController.processUserData(data, deviceID, (err, resp) => { if (err) { - sendChannelResponse(sessionID, res, 'SORRY', channel) + sendChannelResponse(deviceID, res, 'SORRY', channel) } else { let responses = resp.res; const telemetryData = { @@ -108,6 +109,7 @@ function handler(req, res, channel) { id: '', type: '', subtype: '', + sid: userData.sessionID, requestData : { deviceId: deviceId, channelId: channelId, @@ -116,19 +118,19 @@ function handler(req, res, channel) { } var response = ''; if (responses && responses[0].text) { - telemetryData.id = 'rasa'; + telemetryData.id = responses[0].intent; telemetryData.type = responses[0].intent; telemetryData.subtype = 'intent_detected'; response = responses[0].text; }else { - telemetryData.id = 'rasa'; telemetryData.subtype = 'intent_not_detected'; responseKey = getErrorMessageForInvalidInput(responses[0].intent); telemetryData.type = responseKey; + telemetryData.id = responseKey; response = literals.message[responseKey]; } telemetryHelper.logInteraction(telemetryData) - sendResponse(sessionID, res, response) + sendResponse(deviceID, res, response) } }) } else { @@ -141,10 +143,11 @@ function handler(req, res, channel) { id:'', type:'', subtype: '', + sid: userData.sessionID, requestData : { deviceId: deviceId, channelId: channelId, - appId: appId + appId: appId, } } if (chatflowConfig[possibleFlow]) { @@ -179,21 +182,23 @@ function handler(req, res, channel) { telemetryData.type = responseKey } userData['currentFlowStep'] = currentFlowStep; - setRedisKeyValue(sessionID, userData); + setRedisKeyValue(deviceID, userData); telemetryHelper.logInteraction(telemetryData) - sendChannelResponse(sessionID, res, responseKey, channel); + sendChannelResponse(deviceID, res, responseKey, channel); } } else { // Implies new user. Adding data in redis for the key and also sending the WELCOME message - userData = { sessionId: sessionID, currentFlowStep: 'step1' }; - setRedisKeyValue(sessionID, userData); + var uuID = UUIDV4(); + userData = { sessionID: uuID, currentFlowStep: 'step1' }; + setRedisKeyValue(deviceID, userData); const telemetryData = { userData: data, userSpecData: uaspec, + sid: uuID, requestData : { deviceId: deviceId, channelId: channelId, - appId: appId + appId: appId, } } telemetryHelper.logSessionStart(telemetryData); @@ -203,14 +208,15 @@ function handler(req, res, channel) { id: 'step1', type: 'START', subtype: 'intent_detected', + sid: uuID, requestData : { deviceId: deviceId, channelId: channelId, - appId: appId + appId: appId, } } telemetryHelper.logInteraction(telemetryDataForInteraction) - sendChannelResponse(sessionID, res, 'START', channel); + sendChannelResponse(deviceID, res, 'START', channel); } }); } @@ -247,13 +253,13 @@ function delRedisKey(key) { } //send data to user -function sendResponse(sessionID, response, responseBody, responseCode) { +function sendResponse(deviceID, response, responseBody, responseCode) { response.set('Content-Type', 'text/plain') if (responseCode) response.status(responseCode) response.send(responseBody) } -function sendChannelResponse(sessionID, response, responseKey, channel, responseCode) { +function sendChannelResponse(deviceID, response, responseKey, channel, responseCode) { response.set('Content-Type', 'text/plain') var tmp = literals.message if (responseCode) response.status(responseCode) From f1d90c44c69fe67ec12d3d169e7086363c5b42c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyour?= Date: Thu, 30 Apr 2020 16:18:30 +0530 Subject: [PATCH 3/7] Use UUID as session id --- router/api/telemetry/telemetry.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/router/api/telemetry/telemetry.js b/router/api/telemetry/telemetry.js index 662bf4a..7947548 100644 --- a/router/api/telemetry/telemetry.js +++ b/router/api/telemetry/telemetry.js @@ -13,15 +13,14 @@ module.exports = { const uaspec = sessionData.userSpecData var dims = [] var channelId = sessionData.requestData.channelId - var splitedChannelId = data.requestData.channelId.split('.'); - const context = telemetry.getContextData({ channel: channelId, env: splitedChannelId[1] + '.' + splitedChannelId[2]}) + var splitedChannelId = channelId.split('.'); const edata = telemetry.startEventData('botsession') edata.uaspec = uaspec - const context = telemetry.getContextData({ channel: channelId, env: splitedChannelId[1] + '.' + splitedChannelId[2]}) - context.sid = sessionData.id + context.sid = sessionData.sid context.did = sessionData.requestData.deviceId context.rollup = telemetry.getRollUpData(dims) + console.log('Context', context); const actor = telemetry.getActorData(sessionData.userData.customData.userId, 'user') telemetry.start({ edata: edata, @@ -44,7 +43,7 @@ module.exports = { id: data.id }; var channelId = data.requestData.channelId - var splitedChannelId = data.requestData.channelId.split('.'); + var splitedChannelId = channelId.split('.'); var dims = [] const context = telemetry.getContextData({ channel: channelId, env: splitedChannelId[1] + '.' + splitedChannelId[2]}) context.sid = data.sid From 017b1538630dcd859ebe0f7901e1c873a5f162ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyour?= Date: Thu, 30 Apr 2020 16:39:06 +0530 Subject: [PATCH 4/7] Get channel,appId and userId from Body of request --- router/appRest.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/router/appRest.js b/router/appRest.js index d85d0a6..ae3bee3 100644 --- a/router/appRest.js +++ b/router/appRest.js @@ -32,9 +32,9 @@ var channelId = '' // Route that receives a POST request to /bot appBot.post('/bot', function (req, res) { - deviceId = req.body.From; // req.headers['x-device-id']; - appId = req.headers['x-app-id'] || ''; - channelId = req.headers['x-channel-id'] || ''; + deviceId = req.body.From; + appId = req.body.appId; + channelId = req.body.channel; var data = { deviceId: deviceId, channelId: channelId, @@ -47,9 +47,9 @@ appBot.post('/bot', function (req, res) { }) appBot.post('/bot/whatsapp', function (req, res) { - deviceId = req.body.From //req.headers['x-device-id']; - appId = req.headers['x-app-id'] || ''; - channelId = req.headers['x-channel-id'] || ''; + deviceId = req.body.From; + appId = req.body.appId; + channelId = req.body.channel; var data = { deviceId: deviceId, channelId: channelId, @@ -57,15 +57,14 @@ appBot.post('/bot/whatsapp', function (req, res) { pid: 'whatsapp', apiToken: apiToken } - console.log('Data', data); telemetryHelper.initializeTelemetry(data) handler(req, res, 'whatsapp') }) appBot.post('/bot/telegram', function (req, res) { - deviceId = req.body.From //req.headers['x-device-id']; - appId = req.headers['x-app-id'] || ''; - channelId = req.headers['x-channel-id'] || ''; + deviceId = req.body.From; + appId = req.body.appId; + channelId = req.body.channel; var data = { deviceId: deviceId, channelId: channelId, From cdada399f6dc2c9f96046a8d559c0de80a6b44a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyour?= Date: Thu, 30 Apr 2020 16:57:28 +0530 Subject: [PATCH 5/7] Add utm_source query param for all urls --- router/config/literals.js | 64 +++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/router/config/literals.js b/router/config/literals.js index 58bf463..40f36a8 100644 --- a/router/config/literals.js +++ b/router/config/literals.js @@ -23,7 +23,7 @@ message.CHOOSE_BOARD = ` ` message.CBSE_MESSAGE = ` Please visit: - + diksha.gov.in/CBSE/explore
Select the Medium and Class to view relevant subject textbook on the board website.
@@ -62,117 +62,117 @@ message.CHOOSE_STATE_BOARD = ` ** Press 99 to go back to select CBSE board or press 0 to go to first menu
` message.TN_BOARD = ` - Please visit diksha.gov.in/tn/explore + Please visit diksha.gov.in/tn/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.KA_BOARD = ` - Please visit diksha.gov.in/ka/explore + Please visit diksha.gov.in/ka/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.GJ_BOARD = ` - Please visit diksha.gov.in/gj/explore + Please visit diksha.gov.in/gj/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.UP_BOARD =` - Please visit diksha.gov.in/up/explore + Please visit diksha.gov.in/up/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.PB_BOARD = ` - Please visit diksha.gov.in/pb/explore + Please visit diksha.gov.in/pb/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.RJ_BOARD = ` - Please visit diksha.gov.in/rj/explore + Please visit diksha.gov.in/rj/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.MN_BOARD = ` - Please visit diksha.gov.in/mn/explore + Please visit diksha.gov.in/mn/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.CG_BOARD = ` - Please visit diksha.gov.in/cg/explore + Please visit diksha.gov.in/cg/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.MITRA_BOARD = ` - Please visit diksha.gov.in/mitra/explore + Please visit diksha.gov.in/mitra/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.BR_BOARD = ` - Please visit diksha.gov.in/br/explore + Please visit diksha.gov.in/br/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.OD_BOARD = ` - Please visit diksha.gov.in/od/explore + Please visit diksha.gov.in/od/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.AS_BOARD = ` - Please visit diksha.gov.in/as/explore + Please visit diksha.gov.in/as/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.MP_BOARD = ` - Please visit diksha.gov.in/mp/explore + Please visit diksha.gov.in/mp/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.HR_BOARD = ` - Please visit diksha.gov.in/hr/explore + Please visit diksha.gov.in/hr/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.NL_BOARD = ` - Please visit diksha.gov.in/nl/explore + Please visit diksha.gov.in/nl/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.GA_BOARD = ` - Please visit diksha.gov.in/ga/explore + Please visit diksha.gov.in/ga/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.TS_BOARD = ` - Please visit diksha.gov.in/ts/explore + Please visit diksha.gov.in/ts/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.APEKX_BOARD = ` - Please visit diksha.gov.in/apekx/explore + Please visit diksha.gov.in/apekx/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.ML_BOARD = ` - Please visit diksha.gov.in/ml/explore + Please visit diksha.gov.in/ml/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.NCERT_BOARD = ` - Please visit diksha.gov.in/ncert/explore + Please visit diksha.gov.in/ncert/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.JH_BOARD = ` - Please visit diksha.gov.in/jh/explore + Please visit diksha.gov.in/jh/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.SK_BOARD = ` - Please visit diksha.gov.in/sk/explore + Please visit diksha.gov.in/sk/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` message.CH_BOARD = ` - Please visit diksha.gov.in/ch/explore + Please visit diksha.gov.in/ch/explore
Select the Medium and Class to view relevant subject textbook on the board website.


** Press 99 to go back to choose another board or press 0 to go to first menu.
` @@ -186,7 +186,7 @@ message.ACCESS_DIKSHA = `
** Press 0 to go to first menu.
` message.CONTRIBUTE_CONTENT = ` - Please visit: vdn.diksha.gov.in
+ Please visit: vdn.diksha.gov.in
Use a desktop or laptop to start contributing content to be used by the nation


** Press 0 to go to first menu or type your query directly.
` @@ -202,7 +202,7 @@ message.CONSTITUTION_QUIZ = ` ` message.WEEKLY_CRITICAL_THINKING =` Please visit: - + diksha.gov.in/play/collection/do_31290608850520473612338?contentType=TextBook

Select the Subject to view relevant content on the page
@@ -210,14 +210,14 @@ message.WEEKLY_CRITICAL_THINKING =` ` message.CONSTITUTION_QUIZ_LANGUAGE_ENGLISH = ` Play the quiz by visting: - + diksha.gov.in/play/quiz/do_312998713531351040138


** Press 99 to go back to choose another language or press 0 to go to first menu.
` message.CONSTITUTION_QUIZ_LANGUAGE_HINDI = ` Play the quiz by visting: - + diksha.gov.in/play/quiz/do_3129987409840947201283


** Press 99 to go back to choose another language or press 0 to go to first menu. @@ -245,28 +245,28 @@ message.OTHER_OPTIONS = ` ` message.SCAN_QRCODE = ` Please visit: - + https://diksha.gov.in/help/getting-started/diksha-mobile-app/understanding-qr-code.html


** Press 99 to go back to choose another query or press 0 to go to first menu.
` message.UNABLE_LOGIN = ` Please visit: - + https://diksha.gov.in/help/getting-started/sign-in/index.html ​


** Press 99 to go back to choose another query or press 0 to go to first menu.
` message.FORGOT_PASSWORD = ` Please visit: - + https://diksha.gov.in/help/getting-started/recover-password/index.html


** Press 99 to go back to choose another query or press 0 to go to first menu.
` message.OTHERS = ` Please visit: - + https://diksha.gov.in/help/getting-started/explore-diksha/index.html


** Press 99 to go back to choose another query or press 0 to go to first menu. From 68816391b784f93994e1d365b82439fb0f746e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyour?= Date: Thu, 30 Apr 2020 19:36:49 +0530 Subject: [PATCH 6/7] Issue fixed of ignoring three intents contribute_content, query_reset_password, query_login --- bot/data/nlu.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/data/nlu.md b/bot/data/nlu.md index 3212850..3867cd6 100644 --- a/bot/data/nlu.md +++ b/bot/data/nlu.md @@ -204,7 +204,7 @@ data/mediums.txt - I want to understand how to scan QR code - I am unable to sca QR code -# intent: query_login +## intent: query_login - I am unable to login - I want to register on DIKSHA - Facing problem with login @@ -212,11 +212,11 @@ data/mediums.txt - Help me to login - Help me to register -# intent: query_reset_password +## intent: query_reset_password - I have forgotten my password - I want to reset my password -# intent: contribute_content +## intent: contribute_content - I want to contribute content as a teacher - I want to access vidyadaan - I am a teacher and want to contribute content From 513187186395674b8efc39d3ebaf0a52128645b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyour?= Date: Thu, 30 Apr 2020 19:39:08 +0530 Subject: [PATCH 7/7] Issue fixed of ignoring three intents contribute_content, query_reset_password, query_login[revertback] --- bot/data/nlu.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/data/nlu.md b/bot/data/nlu.md index 3867cd6..3212850 100644 --- a/bot/data/nlu.md +++ b/bot/data/nlu.md @@ -204,7 +204,7 @@ data/mediums.txt - I want to understand how to scan QR code - I am unable to sca QR code -## intent: query_login +# intent: query_login - I am unable to login - I want to register on DIKSHA - Facing problem with login @@ -212,11 +212,11 @@ data/mediums.txt - Help me to login - Help me to register -## intent: query_reset_password +# intent: query_reset_password - I have forgotten my password - I want to reset my password -## intent: contribute_content +# intent: contribute_content - I want to contribute content as a teacher - I want to access vidyadaan - I am a teacher and want to contribute content