Chatbot: Nexusgpt: Daksha Kr. Pathak (ROLL NO-21084050004)
Chatbot: Nexusgpt: Daksha Kr. Pathak (ROLL NO-21084050004)
ANSH PATHAK
(ROLL NO- 21084050002)
ALOK VERMA
(ROLL NO- 21084050001)
UJJWALPARASHAR
(ROLLNO- 21084050010)
This is to certify that Daksha Kr. Pathak, Alok Verma, Ansh Pathak
and Ujjwal Parashar has carried out the project work presented in this
report entitled "Chatbot" for the award of Diploma from Shivalik
College of Engineering Dehradun affiliated to the Uttarakhand Board
of Technical Education, Roorkee under my supervision. The report
embodies results of original work, and studies are carried out by the
student himself and the contents of the report do not form the basis for
the award of any other degree to the candidate or to anybody else from
this or any other University/Institution.
Date:
Date:
ACKNOWLEDGEMENT
• ANSH PATHAK
• ALOK VERMA
• UJJWAL PARASHAR
PAGE INDEX
− INTRODUCTION.........................................................................................................
− TOOLS USED...............................................................................................................
− CODES...........................................................................................................................
− CHATBOT.....................................................................................................................
− CONCLUSION..............................................................................................................
INTRODUCTION:
Project Objectives:
1. Design and implement a chatbot capable of understanding and generating natural
language responses.
2. Integrate the chatbot with relevant data sources and APIs to provide accurate and up-
to-date information.
3. Develop a user-friendly interface for seamless interaction with the chatbot across
various platforms and devices.
4. Test the chatbot's performance through rigorous testing methodologies, including
functional testing, usability testing, and performance testing.
5. Evaluate the effectiveness and user satisfaction of the chatbot through user feedback
and performance metrics.
<div class="chat-container"></div>
<div class="typing-container">
<div class="typing-content">
<div class="typing-textarea">
<textarea id="chat-input" spellcheck="false" placeholder="Enter a prompt here"
required></textarea>
<span id="send-btn" class="material-symbols-rounded">send</span>
</div>
<div class="typing-controls">
<span id="theme-btn" class="material-symbols-rounded">light_mode</span>
<span id="delete-btn" class="material-symbols-rounded">delete</span>
</div>
</div>
</body>
</html>
2. CSS (Cascading Style Sheets):
@import
url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
:root {
--text-color: #FFFFFF;
--icon-color: #ACACBE;
--icon-hover-bg: #5b5e71;
--placeholder-color: #dcdcdc;
--outgoing-chat-bg: #343541;
--incoming-chat-bg: #444654;
--outgoing-chat-border: #343541;
--incoming-chat-border: #444654;
}
.light-mode {
--text-color: #343541;
--icon-color: #a9a9bc;
--icon-hover-bg: #f1f1f3;
--placeholder-color: #6c6c6c;
--outgoing-chat-bg: #FFFFFF;
--incoming-chat-bg: #F7F7F8;
--outgoing-chat-border: #FFFFFF;
--incoming-chat-border: #D9D9E3;
}
body {
background: var(--outgoing-chat-bg);
}
{
const response = await (await fetch(API_URL, requestOptions)).json();
pElement.textContent = response.choices[0].text.trim();
} catch (error) { // Add error class to the paragraph element and set error text
pElement.classList.add("error");
pElement.textContent = "Oops! Something went wrong while retrieving the response. Please try
again.";
}
incomingChatDiv.querySelector(".typing-animation").remove();
incomingChatDiv.querySelector(".chat-details").appendChild(pElement);
localStorage.setItem("all-chats", chatContainer.innerHTML);
chatContainer.scrollTo(0, chatContainer.scrollHeight);
}
chatInput.value = "";
chatInput.style.height = `${initialInputHeight}px`;
deleteButton.addEventListener("click", () => {
// Remove the chats from local storage and call loadDataFromLocalstorage function
if(confirm("Are you sure you want to delete all the chats?")) {
localStorage.removeItem("all-chats");
loadDataFromLocalstorage();
}
});
themeButton.addEventListener("click", () => {
// Toggle body's class for the theme mode and save the updated theme to the local storage
document.body.classList.toggle("light-mode");
localStorage.setItem("themeColor", themeButton.innerText);
themeButton.innerText = document.body.classList.contains("light-mode") ? "dark_mode" :
"light_mode";
});
chatInput.addEventListener("input", () => {
chatInput.style.height = `${initialInputHeight}px`;
chatInput.style.height = `${chatInput.scrollHeight}px`;
});
loadDataFromLocalstorage();
sendButton.addEventListener("click", handleOutgoingChat);
CHATBOT
NexusGPT
Key Features:
Dynamic Responses:
Personalized Interaction:
With each interaction, NexusGPT learns and evolves, tailoring its responses to individual
preferences and conversational styles, creating a personalized and engaging user experience.
Multi-Platform Accessibility:
NexusGPT seamlessly integrates with various platforms and channels, including web
browsers, messaging applications, and voice assistants, ensuring accessibility across a wide
range of devices and environments.
Continuous Learning:
Powered by the vast knowledge corpus of the ChatGPT API, NexusGPT continuously learns
from new interactions and updates, staying up to date with the latest information and trends to
deliver accurate and relevant responses.
Why NexusGPT?
NexusGPT isn't just a chatbot; it's a gateway to a world of knowledge, assistance, and
companionship. Whether you're seeking information, guidance, or simply a friendly chat,
NexusGPT is here to accompany you on your digital journey, offering insights, support, and a
touch of AI-powered magic along the way.
CONCLUSION:
In conclusion, the development and deployment of NexusGPT represent a significant milestone in the
realm of conversational AI, showcasing the potential of advanced natural language processing
technologies to transform user interactions and experiences. Throughout this project, we have
explored the capabilities of the ChatGPT API and leveraged its powerful features to create a versatile
and intelligent chatbot companion.
Key Achievements:
• Innovative Conversational Experience: NexusGPT offers users a seamless and
intuitive conversational interface, powered by the sophisticated language
understanding capabilities of the ChatGPT API. Through dynamic responses and
personalized interactions, NexusGPT enhances user engagement and satisfaction.
• Adaptive Learning: One of the standout features of NexusGPT is its ability to
continuously learn and adapt based on user interactions. By leveraging machine
learning algorithms and vast data resources, NexusGPT evolves over time, improving
its performance and relevance with each conversation.
• Multi-Platform Accessibility: NexusGPT is designed to be accessible across various
platforms and devices, ensuring that users can engage with the chatbot wherever they
are. Whether through web browsers, messaging apps, or voice assistants, NexusGPT
provides a consistent and convenient user experience.
Future Directions:
While NexusGPT has achieved significant success in its current form, there are several avenues for
future exploration and enhancement:
In conclusion, NexusGPT represents not just a chatbot, but a gateway to a new era of intelligent and
empathetic digital companionship. As we continue to push the boundaries of AI technology,
NexusGPT stands ready to evolve and adapt, shaping the future of human-computer interaction in
profound and exciting ways.