DAFTAR AI is a comprehensive document management system designed to streamline office workflow with powerful
features including OCR processing, letter generation, and efficient document organization. This guide will help
you understand and utilize all the features of DAFTAR AI effectively.
2. Interface Overview
The DAFTAR AI interface is designed to be intuitive and user-friendly. Here's a breakdown of the main components:
Main Dashboard
The main dashboard provides quick access to all major functions:
New Dairy - Add a new entry to the dairy register
View Dairy - View and manage existing dairy entries
New Dispatch - Add a new entry to the dispatch register
View Dispatch - View and manage existing dispatch entries
Letter Generation - Create new letters with AI assistance
Settings - Configure application settings
User Guide - Access this user guide
3. Dairy Register Management
Adding New Dairy Entries
To add a new dairy entry:
Click the New Dairy button on the main dashboard
Fill in the required fields:
Dairy Number - Automatically generated based on your settings
Date - Date of receipt (defaults to current date)
From - Sender's name/organization
Subject - Brief description of the document
Category - Select from predefined categories or add a new one
File - Attach the document file (PDF, image, etc.)
If you attach a file, you can use the OCR button to extract text
The extracted text can be used to automatically fill in fields or for reference
Add any additional notes in the Remarks field
Click Save to add the entry to the dairy register
Viewing and Managing Dairy Entries
To view and manage dairy entries:
Click the View Dairy button on the main dashboard
The dairy register will be displayed in a grid format
Use the search box to find specific entries
Click on column headers to sort the data
Right-click on an entry to access additional options:
Open File - Open the attached document
Edit - Modify the entry details
Delete - Remove the entry (requires confirmation)
Reply - Generate a reply letter
Dispatch - Create a related dispatch entry
Summary - View a summary of the document
Use the Export button to export the register to Excel or PDF
4. Dispatch Register Management
Adding New Dispatch Entries
To add a new dispatch entry:
Click the New Dispatch button on the main dashboard
Fill in the required fields:
Dispatch Number - Automatically generated based on your settings
Date - Date of dispatch (defaults to current date)
To - Recipient's name/organization
Subject - Brief description of the document
Category - Select from predefined categories or add a new one
File - Attach the document file (PDF, letter generated, etc.)
Reply To - Link to a dairy entry if this is a reply (optional)
Add any additional notes in the Remarks field
Click Save to add the entry to the dispatch register
Viewing and Managing Dispatch Entries
To view and manage dispatch entries:
Click the View Dispatch button on the main dashboard
The dispatch register will be displayed in a grid format
Use the search box to find specific entries
Click on column headers to sort the data
Right-click on an entry to access additional options:
Open File - Open the attached document
Edit - Modify the entry details
Delete - Remove the entry (requires confirmation)
Use the Export button to export the register to Excel or PDF
5. OCR Functionality
DAFTAR AI includes powerful OCR (Optical Character Recognition) capabilities to extract text from documents and
images.
English OCR
To use English OCR:
When adding a new dairy entry, attach a document file
Click the OCR button
Ensure English is selected in the OCR language dropdown
Click Process to extract text
The extracted text will appear in the OCR Results panel
You can copy this text or use it to automatically fill in fields
Tip: For best results, use clear, high-resolution scans or images. Proper lighting and
contrast significantly improve OCR accuracy.
Hindi OCR
To use Hindi OCR:
When adding a new dairy entry, attach a document file
Click the OCR button
Select Hindi in the OCR language dropdown
Click Process to extract text
The extracted Hindi text will appear in the OCR Results panel
You can copy this text or use it for reference
Note: Hindi OCR requires the Hindi language data files to be installed with Tesseract
OCR. If you didn't select Hindi during Tesseract installation, you may need to reinstall it with Hindi
support.
6. Letter Generation
DAFTAR AI's letter generation feature uses AI to help you create professional correspondence quickly and
efficiently.
To generate a letter:
You can access letter generation in several ways:
Click the Letter Generation button on the main dashboard
Click the Reply option when viewing a dairy entry
In the letter generation form:
If replying to a dairy entry, relevant information will be pre-filled
Fill in the To, From, and Subject fields
Select a Letter Type from the dropdown (e.g., Official, Reminder, Request)
Enter key points in the Content Points field
Adjust the Tone slider (Formal to Casual)
Click Generate Letter to create the letter
Review the generated letter in the preview panel
Make any necessary edits directly in the editor
Click Save as Draft to save for later, or Finalize to complete
You can then:
Print the letter
Export as PDF for digital sharing
Add to Dispatch to create a dispatch entry
7. System Prompt Optimization
The system prompt is a powerful feature that allows you to customize how the AI generates letters and processes
information. By optimizing your system prompts, you can significantly improve the quality and relevance of
AI-generated content.
Accessing System Prompt Settings
Go to Settings from the main dashboard
Select the AI Settings tab
Locate the System Prompt section
Understanding System Prompts
The system prompt acts as instructions for the AI model. It defines:
The tone and style of generated content
Specific formatting requirements
Domain-specific knowledge to apply
Constraints and guidelines to follow
Default System Prompt
You are an expert assistant for government and official correspondence. Your task is to draft professional
letters based on the provided information. Follow these guidelines:
1. Use formal language appropriate for official communication
2. Structure the letter with proper salutation, body, and closing
3. Be concise and clear in conveying the message
4. Include all key points provided by the user
5. Maintain a respectful and professional tone
6. Format the letter according to standard official letter formats
7. Do not include any fictional information
8. If writing in Hindi, use proper formal Hindi
Customizing System Prompts
To customize the system prompt for better results:
Specify the exact format you want for letters
Include any standard phrases or terminology specific to your organization
Define the level of formality required
Specify any legal or compliance requirements
Include examples of preferred phrasing
Tip: Be specific about what you want. The more detailed your system prompt, the better
the AI can tailor its output to your needs.
Example of an Enhanced System Prompt
You are an expert assistant for government correspondence in the Indian administrative context. Draft official
letters following these specific guidelines:
1. Begin with proper reference numbers in the format: F.No.XX-XX/YYYY-DEPT
2. Use formal salutations: "Respected Sir/Madam" or appropriate designation
3. First paragraph should reference any previous correspondence
4. Body should be organized in numbered paragraphs for clarity
5. Use standard Indian government terminology and phrasing
6. Closing should include "Yours faithfully," followed by sender designation
7. Include standard footer with office address and contact information
8. For Hindi letters, use शासकीय Hindi with proper honorifics
9. Maintain brevity while ensuring all points are addressed
10. For legal matters, include relevant sections of applicable laws/rules
Example phrases to include when appropriate:
- "With reference to your letter dated..."
- "In this regard, it is informed that..."
- "The matter has been examined and..."
- "You are requested to kindly..."
8. Settings and Configuration
DAFTAR AI offers various settings to customize the application according to your needs.
General Settings
To access general settings:
Click the Settings button on the main dashboard
In the General tab, you can configure:
Data Storage Location - Where your registers and files are stored
Default OCR Language - English, Hindi, or both
Auto-save Interval - How often data is automatically saved
Check for Updates - Enable/disable automatic update checks
Click Save to apply changes
Numbering Settings
To configure custom numbering for dairy and dispatch entries:
In the Settings window, select the Numbering tab
For Dairy Register:
Set the Starting Number for dairy entries
Configure Prefix (e.g., "D/", "Dairy/")
Set Year Format (e.g., "/YYYY", "-YY")
Manage Categories with custom suffix codes
For Dispatch Register:
Set the Starting Number for dispatch entries
Configure Prefix (e.g., "Disp/", "Out/")
Set Year Format (e.g., "/YYYY", "-YY")
Manage Categories with custom suffix codes
Click Save to apply changes
Note: Changes to numbering settings will only affect new entries, not existing ones.
AI Settings
To configure AI-related settings:
In the Settings window, select the AI Settings tab
Enter your Gemini API Key
Select the Gemini Model to use (default: gemini-2.0-flash)
Customize the System Prompt for letter generation
Adjust Temperature and other AI parameters if needed
Click Save to apply changes
9. Tips and Best Practices
OCR Best Practices
Use high-resolution scans (300 DPI or higher) for best OCR results
Ensure documents are well-lit and have good contrast
For multi-page documents, consider processing pages individually for better accuracy
For Hindi documents, make sure the text is clear and uses standard fonts
Letter Generation Tips
Provide clear, concise content points for better AI-generated letters
Use the system prompt to customize the AI's output style
Always review and edit AI-generated content before finalizing
Save frequently used letter templates for faster future use
For complex letters, generate sections separately and combine them
Organization Tips
Use consistent naming conventions for categories
Regularly export and backup your registers
Use the search function effectively by including key terms
Link related dairy and dispatch entries for better tracking
Use the remarks field to add context that might be useful later