From e230e7481600317c037ce7d789d07591a390bb75 Mon Sep 17 00:00:00 2001 From: Kavisha4 Date: Mon, 25 Mar 2024 17:12:43 +0530 Subject: [PATCH 1/2] Your commit message here Signed-off-by: Kavisha4 custom bot is integrated --- docs/custom-bot-integration | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/custom-bot-integration diff --git a/docs/custom-bot-integration b/docs/custom-bot-integration new file mode 100644 index 0000000..c193cfd --- /dev/null +++ b/docs/custom-bot-integration @@ -0,0 +1,38 @@ +# ADR: Integration of a Custom Chatbot + +## Status + +Accepted + +## Context + +Our project requires a conversational AI assistant to enhance user interactions and provide helpful responses. + +## Decision + +We have decided to integrate Concerto models through chatbots into our project. AI bots like ChatGPT,OpenAI, Bard, Anthropic etc are powerful language models that can generate human-like text based on the input it receives. This integration will allow us to provide more engaging and intelligent interactions for our users. + +## Consequences + +- **Pros:** + - Enhanced user experience with intelligent responses. + - Ability to handle a wide range of user queries and inputs. + - Potential for improved user engagement and satisfaction. +- **Cons:** + - Requires integration effort and API usage. + - May require additional processing for complex interactions. + - Privacy and security considerations for handling user data. + - Requires extensive custom requests and responses/intents to be added to the bot + + +## Implementation Details + +- **Location:** Create a new module or service file (e.g., `chatGPTService.js`) to handle interactions with the bot API. In this case: Dialogflow +- **API Key:** Store the API key securely and avoid hardcoding it in the source code. +- **Integration:** Use the OpenAI SDK or direct API calls to interact with Dialogflow. +- **Testing:** Implement tests to ensure the integration works as expected and handles various scenarios. + +## References + +- [OpenAI API Documentation](https://beta.openai.com/docs/) +- [DialogFlow Documentatio](https://cloud.google.com/dialogflow?hl=en/) From 78fe904a1ecd1c98f399a7fc006c7876f44d7a64 Mon Sep 17 00:00:00 2001 From: Kavisha4 Date: Mon, 25 Mar 2024 18:06:33 +0530 Subject: [PATCH 2/2] Added an ADR for custom bot Signed-off-by: Kavisha4 --- docs/custom-bot-integration | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/custom-bot-integration b/docs/custom-bot-integration index c193cfd..4ab15ef 100644 --- a/docs/custom-bot-integration +++ b/docs/custom-bot-integration @@ -33,6 +33,5 @@ We have decided to integrate Concerto models through chatbots into our project. - **Testing:** Implement tests to ensure the integration works as expected and handles various scenarios. ## References - - [OpenAI API Documentation](https://beta.openai.com/docs/) - [DialogFlow Documentatio](https://cloud.google.com/dialogflow?hl=en/)