DEV Community

Cover image for HealthAI-Assistant
Sumit Raikwar
Sumit Raikwar

Posted on

8 8 8 8 8

HealthAI-Assistant

This is a submission for the KendoReact Free Components Challenge.

What I Built

An AI-powered healthcare assistant with a symptom analyzer and chat interface, built using free KendoReact components. Input symptoms and chat about health concerns to get personalized insights displayed in a responsive TileLayout, powered by OpenAI API.

Demo

Live Demo: https://health-ai-assistant-bice.vercel.app/

Code Repository: https://github.com/SumitRaikwar18/HealthAI-Assistant

Chat Interface Screenshot
Symptom Analyzer Screenshot

KendoReact Experience

This project harnesses the power of free KendoReact components to create a seamless and responsive healthcare assistant. Below are the 10 free KendoReact components used, along with their code snippets and locations in the project:

Component Code Snippet Used In
1. Button <Button themeColor="primary">Click Me</Button> src/components/KendoButton.tsx
2. Input <Input value={value} onChange={onChange} /> src/components/KendoInput.tsx
3. Label <Label editorId={htmlFor} className={className}>{text}</Label> src/components/KendoLabel.tsx
4. Chip <Chip text={text} removable={removable} /> src/components/KendoChip.tsx
5. Avatar {src ? <Avatar src={src} alt={alt} /> : <Avatar>{initials}</Avatar>} src/components/KendoAvatar.tsx
6. Loader <Loader size={size} type={type} /> src/components/KendoLoader.tsx
7. Switch <Switch checked={checked} onChange={onChange} /> src/components/KendoSwitch.tsx
8. Badge <Badge themeColor={themeColor} rounded={rounded}>{children}</Badge> src/components/KendoBadge.tsx
9. TileLayout <TileLayout columns={columns} items={items} gap={{ rows: gap, columns: gap }} /> src/components/KendoTileLayout.tsx
10. Card <Card className="shadow-md h-full">{children}</Card> src/components/FeatureCard.tsx

These components work together to provide an intuitive UI: the Form (implied via Input and Label) collects symptoms, TileLayout organizes the layout, Card displays AI responses, and Badge tags insights, all styled with a clean, health-focused aesthetic.

AIm to Impress

HealthAI Assistant integrates the OpenAI API to power its core features:

  • Symptom Analysis: Users input symptoms (e.g., "fever, cough") via Input and Chip components, and OpenAI generates instant health insights displayed in a Card. For example, "Fever and cough could suggest a cold—rest and hydrate."
  • Healthcare Chat: Users ask health questions (e.g., "What should I do about a headache?") through a chat interface, with responses shown dynamically in a TileLayout. The Loader simulates processing, enhancing the AI experience.
  • Privacy Focused: No user data is stored beyond the session, ensuring privacy with client-side API calls.
  • 24/7 Availability: Powered by OpenAI, the assistant is always accessible for health queries.

The OpenAI API key is securely stored in a .env file as REACT_APP_OPENAI_API_KEY, driving real-time, personalized responses.

Cover Image

Thank you for the opportunity to showcase HealthAI Assistant in the KendoReact Challenge!

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (15)

Collapse
 
kwnaidoo profile image
Kevin Naidoo

Nice work! Looks great. Sorry, I don't know of a direct way of contacting you, but please take this down asap. You have a security hole, look at the Bearer token you're sending, this exposes your OpenAI account.

Collapse
 
sumitraikwar profile image
Sumit Raikwar

Thanks so much, Kevin Naidoo, for spotting the security hole in our project—exposing the OpenAI Bearer token was a big oversight! We’ve successfully revoked the compromised API key and updated our security measures to prevent this moving forward. Really appreciate your sharp eye and help in keeping our project secure!

Collapse
 
kwnaidoo profile image
Kevin Naidoo

Cool no problem. Glad I could help.

Collapse
 
nikhilraikwar profile image
Nikhil Raikwar

Innovative Project

Collapse
 
sumitraikwar profile image
Sumit Raikwar

thankyou

Collapse
 
codehonors profile image
CodeHonors

KendoReact FTW, looks smooth!

Collapse
 
sumitraikwar profile image
Sumit Raikwar

KendoReact for the win! Glad you like it! 😎🚀

Collapse
 
rishabh_mdrs_2fac3547a24e profile image
Rishabh mdrs

KendoReact Components Looks Amazing in project 😍

Collapse
 
sumitraikwar profile image
Sumit Raikwar

Thanks! KendoReact really shines here! 😊👍

Collapse
 
prakhar_pratap_12ceb2add7 profile image
Prakhar Pratap

AI + health = future, nice work!

Collapse
 
sumitraikwar profile image
Sumit Raikwar

Totally agree—AI is the future! Thanks! 🤖❤️

Collapse
 
codebreakers19 profile image
codebreakers19

amazing project

Collapse
 
sumitraikwar profile image
Sumit Raikwar

thankyou

Collapse
 
priyanshu_sinha_835e5ed39 profile image
Priyanshu Sinha • Edited

Impresive Work

Collapse
 
sumitraikwar profile image
Sumit Raikwar

Appreciate it! Hard work paid off! 🙌✨

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

DEV shines when you're signed in, unlocking a customized experience with features like dark mode!

Okay