Skip to content

Developing an AI-Powered Training and Assessment Platform for Opticians

An AI-powered learning platform that lets opticians practice patient conversations through guided role-play sessions, receive structured feedback on each consultation stage, and helps managers track learner progress across teams.

optical ai
AI Learning Platform · Healthcare / EdTech
Type
AI Learning Platform
Platform
Web
Industry
Healthcare / EdTech
Service
Data & AI
Timeline
6 Months

Opticians need proper training to communicate with patients, understand their needs, and recommend suitable eyewear. Developing these skills requires practical training and regular performance assessments. Managers also need a reliable way to evaluate employee skills and monitor their progress.

An optical company wanted a training platform where opticians could take courses, complete assessments, and practice conversations with virtual patients. It also wanted to help managers evaluate employee performance.

Our developers built a web-based training platform using Next.js, NestJS, PostgreSQL, and OpenAI. The platform allows opticians to practice patient consultations and receive feedback on their performance. Managers can also assess employees, track their progress, and manage training activities.

Project Overview

Client: Confidential Optical Industry Company
Industry: Optical Retail and Professional Training
Project Type: Custom Web Application Development and AI Integration
Solution: Digital Learning and AI-Powered Training Platform
Frontend: Next.js, Radix UI, shadcn/ui, Apollo Client, TanStack React Table
Backend: NestJS, GraphQL, PostgreSQL, Prisma, Redis
AI Technologies: OpenAI, GPT-4o, Text-to-Speech, Speech-to-Text, ElevenLabs
Cloud Infrastructure: AWS S3, AWS SES, AWS Lambda, Azure Blob Storage
Authentication: Clerk
Testing Tools: Playwright, Storybook, Chromatic
Core Features: Online Courses, Practical Assessments, AI Patient Roleplay, Personalized Feedback, Voice Conversations, Live Coaching, Performance Tracking, Multi-Tenant Management

The Challenge: Improving Practical Training and Performance Assessment for Opticians

Opticians need to understand patient needs, review prescriptions, discuss budgets, and recommend suitable eyewear. They also need good communication skills to handle patient consultations.

The client wanted to build a platform that would allow opticians to practice these skills through realistic patient conversations. The platform also needed to offer training courses, assess employee skills, and track their progress.

However, the development team faced several technical challenges to build a system that could understand natural conversations and evaluate employee performance.

1. Identifying Consultation Phases During Natural Conversations

An optical consultation includes several stages. The optician greets the patient, asks questions, understands their needs, recommends products, and completes the consultation.

The client wanted the platform to identify these stages automatically during roleplay sessions. However, patient conversations do not always follow the same order. An optician might discuss the budget early or return to a previous topic later.

The challenge was to identify the correct consultation stage automatically as the conversation progressed.

2. Providing Accurate and Personalized Feedback

The platform needed to evaluate opticians' performance during patient conversations. Each assessment had to follow a checklist and provide feedback on specific skills.

However, learners could ask different questions or handle the same situation in different ways. The challenge was to assess each conversation accurately and provide feedback according to the checklist.

3. Supporting Natural Voice Conversations

The client wanted opticians to practice speaking with virtual patients during roleplay sessions. The platform had to process spoken questions and generate voice responses to support natural conversations.

4. Preventing Duplicate Messages During Roleplay Sessions

Network issues and repeated requests could send the same message to the server multiple times. These duplicate messages could disrupt conversation history and affect performance assessments.

The development team needed to prevent duplicate messages and maintain the correct order of conversations.

5. Creating Realistic Patient Scenarios

The client wanted opticians to practice real patient situations through roleplay sessions. Each virtual patient needed details such as prescription information, budget, and the reason for the visit.

The development team had to include these details in each session so the virtual patient could give relevant responses and help learners practice different situations.

6. Tracking Performance Throughout the Consultation

Tracking learner progress during patient conversations was another challenge. Each consultation phase included a checklist of actions for learners to complete. The system had to identify these actions and update the checklist in real time without interrupting the conversation.

Our Solution: Developing an AI-Powered Training and Assessment Platform

Our team combined AI models with voice technology and automated assessments to create a training platform for opticians. We connected these features to support patient conversations and evaluate practical skills. The platform also records training results and helps managers monitor employee progress. The following sections explain how we implemented each feature and addressed the technical challenges.

1. Developing an AI-Powered Patient Roleplay Coach

We developed a roleplay coach to help opticians practice patient conversations. The virtual patient answers questions and responds naturally during each session.

The system uses patient information to create realistic conversations. Opticians can practice asking questions and reviewing prescriptions. They can also discuss budgets and recommend suitable eyewear.

Our team also developed a coaching panel to support learners during consultations. The panel helps them track their progress and improve their performance.

2. Automatically Detecting Consultation Phases

Our developers built a system that automatically detects the current consultation phase. It analyzes the conversation and tracks the learner's progress through each stage.

The training process follows seven stages:

  1. Greet: Welcome the patient and begin the conversation.
  2. Discover: Ask questions to understand the patient's needs.
  3. Determine: Identify the patient's requirements and preferences.
  4. Recommend: Suggest suitable eyewear or optical products.
  5. Close: Help the patient make a decision.
  6. Dispense/Retain: Complete the dispensing process and support patient retention.
  7. Troubleshoot: Address patient concerns and resolve problems.

The system uses a separate OpenAI request to review the conversation history and detect the current phase. It also tracks changes in the conversation as the consultation progresses.

This allows learners to have natural conversations without following a fixed script. The platform tracks their progress and performance throughout the session.

3. Building a Checklist-Based Feedback System

Our team implemented a checklist-based feedback system to assess learner performance during patient conversations. Each consultation phase includes a checklist of specific skills and actions.

We integrated GPT-4o to analyze conversations and score each checklist item separately. The system identifies completed actions and evaluates learner performance against the assessment criteria.

Learners receive personalized feedback on their performance and areas for improvement. Managers can review assessment results to identify skills that need further training.

4. Integrating Two-Way Voice Conversations

Our developers integrated OpenAI speech-to-text and text-to-speech services to support voice conversations between opticians and virtual patients. This allows learners to speak with virtual patients during roleplay sessions.

The system converts the learner's speech into text and processes the message. It then generates a response and converts it into speech for the virtual patient.

We also integrated ElevenLabs for audio functionality. These integrations allow opticians to practice patient consultations through voice conversations instead of text messages.

5. Preventing Duplicate Conversation Messages

Our developers added message checks to prevent duplicate messages during roleplay sessions. The server assigns a number to each conversation turn and checks it before saving the message.

The server rejects any new message with an existing number. This prevents duplicate entries and keeps the conversation history in the correct order. Accurate conversation records also support consultation tracking and learner assessments.

6. Adding Patient Information to Roleplay Sessions

We included patient details in each roleplay session to create realistic conversations. These details cover prescriptions, budgets, and reasons for visiting the optical store.

The virtual patient uses this information to answer questions and discuss specific needs. This helps opticians practice handling different patient situations.

We also added multiple patient scenarios to the platform. Learners can practice different types of consultations and improve their communication skills.

7. Tracking Consultation Checklists in Real Time

Our developers created a checklist to track learner progress during roleplay sessions. Each consultation phase includes specific actions that learners must complete.

The platform reviews the conversation and marks completed actions on the checklist. It also updates the checklist as the consultation progresses.

The checklist helps learners track their progress during each session. Managers use the completed items to assess employee skills.

8. Selecting Suitable AI Models for Different Features

The platform uses AI for patient conversations, consultation tracking, performance assessments, and voice processing. Each feature has different requirements.

Our developers tested and compared several OpenAI models to find the best option for each feature. We selected them according to their performance and technical requirements.

This helped us control processing costs and maintain response quality. It also reduced unnecessary technical complexity.

Key Features of the Training Platform

The platform offers several features to support optician training and performance assessments. It helps learners develop practical skills and gives managers tools to evaluate their progress.

1-Structured Courses and Assessments

The platform offers training courses and assessments for opticians. Learners complete these courses to improve their knowledge and practical skills. Businesses use these features to manage employee training and track learner progress.

2-Interactive Patient Roleplay

Opticians practice consultations with virtual patients through interactive roleplay sessions. The platform offers different patient scenarios to help learners improve their communication skills and practice recommending suitable eyewear.

3-Personalized Performance Feedback

The automated feedback system reviews learner conversations using specific assessment criteria. It evaluates individual skills and highlights areas for improvement. Learners receive feedback according to their performance during each session.

4-Live Practical Assessments

Managers conduct practical assessments using evaluation checklists. They review employee performance during consultations and identify skills that require further training.

5-Coaching Panel

The coaching panel guides opticians during patient conversations. It helps them track their performance and improve their consultation skills.

6-Consultation Phase Tracking

The platform tracks all seven consultation stages and updates the checklist as learners complete each activity. It also records their progress during each phase to support performance assessments.

7-Multiple Training Scenarios

The platform offers different patient scenarios with specific prescriptions, budgets, and needs. Opticians practice handling these situations to improve their consultation skills.

8-Multi-Tenant Business Management

We developed the platform to support multiple businesses. Each business can manage its learner groups and training activities through a separate account. This helps organizations manage employee training for different teams.

Technology Stack and Development Approach

Our development team used modern web technologies to build the training platform and support its features. We developed the frontend and backend, integrated AI services for patient conversations and performance assessments, and used cloud services for storage and application operations. Our team also added testing tools to check functionality and maintain code quality.

Frontend Development

We used Next.js to develop the web application and Radix UI with shadcn/ui to build reusable interface components. Apollo Client 4 connects the frontend with the GraphQL API. TanStack React Table helps display and manage data within the platform.

We integrated Clerk to manage user authentication and account access. Our developers used Storybook 9 and Chromatic for component development and visual testing. We also used Playwright to test the application's main features and workflows.

Backend Development

Our developers used NestJS to build the backend and GraphQL with Apollo Server to connect it with the frontend. We used PostgreSQL to store application data and Prisma to manage database operations.

We also integrated Redis for caching and communication between services. These technologies help the platform manage training activities, conversation records, and learner assessments.

AI and Voice Integration

We integrated OpenAI for patient roleplay, consultation phase tracking, and performance assessments. GPT-4o reviews learner conversations and evaluates their performance using checklists.

Our team also used OpenAI speech-to-text and text-to-speech services to support voice conversations between opticians and virtual patients. ElevenLabs provides additional audio functionality. Our developers tested different OpenAI models and selected suitable options for each feature.

Cloud Infrastructure

We used AWS services to manage cloud operations. Amazon S3 stores files, Amazon SES handles emails, and AWS Lambda runs backend tasks.

Our team also integrated Azure Blob Storage for additional file storage. These services support the platform's storage and backend operations.

How the Platform Supports Optician Training

The platform allows opticians to complete training courses and practice patient consultations through roleplay sessions. Learners interact with virtual patients to understand their needs and recommend suitable eyewear.

The platform tracks consultation stages and updates the checklist throughout each session. Virtual patients use prescription details and budget information to respond to questions.

Learners receive feedback on their performance after each session. Managers review the results and conduct practical assessments to evaluate employee skills.

Businesses also use the platform to manage training activities for different learner groups. They can track employee progress and monitor performance.

Project Results: A Complete Training and Assessment Solution

The project delivered a web-based platform for optician training and assessments. It offers training courses and patient roleplay sessions with personalized feedback.

Opticians can practice consultations with virtual patients and receive feedback on their performance. The platform automatically tracks consultation stages and evaluates completed actions using checklists.

Voice integration allows learners to practice spoken patient conversations. The platform also prevents duplicate messages and maintains accurate conversation records.

Managers use assessment tools to evaluate employee skills and track their progress. The platform also supports multiple businesses and allows each organization to manage its learner groups and training activities.

The solution helps businesses manage employee training and assess practical consultation skills through one platform.

Looking to Build a Custom AI-Powered Training Platform?

We develop custom learning platforms that help businesses train employees, assess their skills, and track performance. Our team combines AI integration, web development, and automation to build solutions that meet your business needs.

Our developers create interactive learning experiences with practical assessments and personalized feedback. We also integrate AI-powered features to help businesses improve employee training and monitor learning progress.

Contact us to discuss your project.

Technologies & tools
  • NextJS
  • NestJS
  • GraphQL
  • PostgreSQL
  • Prisma
  • Redis
  • OpenAI
  • Clerk
  • AWS
  • Microsoft Azure

Let's Build the Next One.

Have a project like this? Tell us what you're building. A real person reads every message and replies within one business day.

Response
Within 24 hours
Location
San Francisco, CA Lahore, Pakistan
Consult
30-min free call