Skip to content

Commit

Permalink
Merge pull request #31 from Sunbird-AIAssistant/release-2.0.0
Browse files Browse the repository at this point in the history
Release 2.0.0
  • Loading branch information
sajeshkayyath authored Apr 23, 2024
2 parents 63b8af0 + d8064c0 commit 8534edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gupshup/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const BOT_API_TOKEN = process.env.BOT_API_TOKEN;
const WA_PROVIDER_NUMBER = process.env.WA_PROVIDER_NUMBER;
const WA_PROVIDER_APPNAME = process.env.WA_PROVIDER_APPNAME;

const audienceMap = {
const contextMap = {
'bot_1': null,
'bot_2': 'parent',
'bot_3': 'teacher'
Expand Down Expand Up @@ -266,7 +266,7 @@ const fetchQueryRespone = async (req, msg, userLang, userBot) => {
let botUrl;
if(userBot != 'bot_1') {
botUrl = ACTIVITY_SAKHI_URL ;
data.input.audienceType = audienceMap[userBot];
data.input.context = contextMap[userBot];
data.output = {"format": "text"};
} else {
botUrl = STORY_SAKHI_URL;
Expand Down

0 comments on commit 8534edb

Please sign in to comment.