0% found this document useful (0 votes)
13 views8 pages

Attendance and AI Payslip Module Overview

The document outlines the Attendance Module, which is designed to effectively track and manage employee attendance records. It details the key components including routes.py for API endpoints, api.py for business logic, model.py for database interactions, and tasks.py for asynchronous functions. Additionally, it describes an AI Payslip Query feature that enhances user experience by allowing users to ask questions about their payslips through an API interaction.

Uploaded by

prakash.mishra
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views8 pages

Attendance and AI Payslip Module Overview

The document outlines the Attendance Module, which is designed to effectively track and manage employee attendance records. It details the key components including routes.py for API endpoints, api.py for business logic, model.py for database interactions, and tasks.py for asynchronous functions. Additionally, it describes an AI Payslip Query feature that enhances user experience by allowing users to ask questions about their payslips through an API interaction.

Uploaded by

prakash.mishra
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Module Presentation

• Attendance Module
• Presented by: Prakash
Module Overview
• Attendance Module - Purpose:
• Track and manage employee attendance
records effectively.
Key Components
[Link]
- Defines API endpoints
- The handler functions for the routes that contain the business logic is
written in the [Link] file which gets imported into the [Link].
[Link]
- Core business logic
[Link]
- Database interaction logic (SQLAlchemy)
- Contains schema definitions
[Link]
- Asynchronous task functions
- Executed by Celery.
Data Flow Summary
• Frontend sends request to API ([Link])
• [Link] calls handlers in [Link]
• [Link] processes logic, calls [Link] functions
• Calls [Link] functions via Celery if needed
• Response returned to frontend
AI Payslip Query - Overview
• When a user generates a payslip, they can ask
AI questions about it.
• This enhances user experience by offering
instant, intelligent support.
API Flow: /payslip/aai/query
• Frontend triggers API: /payslip/ai/query
• Payload includes:
- user_message
- emp_payrun_id
• Middleware enriches request with company
context
Backend Processing
• Backend receives request
• Prompt is constructed for the AI model using
context
• Reads payroll_calculation data if needed
• Invokes AI model and gets response
• Sends response back to frontend
Frontend Interaction
• - Displays AI response to the user in UI
• - Allows follow-up questions

You might also like