diff --git a/README.md b/README.md index f945858..5c0ea10 100644 --- a/README.md +++ b/README.md @@ -46,3 +46,8 @@ BFF aims to simplify the development process by providing a robust and extensibl ### Deployment - [Deployment steps](https://github.com/AgrI-Mitra/docs/blob/main/deployment.md) + +along with all existing params only 1 additional param: scheme_name +Possiible scheme names: ['PM Kisan', 'Kisan Credit Card', 'PM Fasal Bima Yojana'] ==> scheme names that are displayed on the top right corner of the chatbot. + +Once the Backend team starts sending scheme_name to WAI API, send only the original user query. Don't append it by the scheme name that we were doing till now. \ No newline at end of file diff --git a/src/app.controller.ts b/src/app.controller.ts index 73ae69a..e75138a 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -221,7 +221,10 @@ export class AppController { lastAadhaarDigits: "", state: "onGoing", isOTPVerified: false, - schemeName: promptDto.schemeName, + schemeName: + promptDto.schemeName && promptDto.schemeName.trim() !== "" + ? promptDto.schemeName + : "PM Kisan", }; let conversation = await this.conversationService.getConversationState(