Project

General

Profile

Actions

Improvement #30075

open

Improvement #29635: Code Review, Upgrade and changes in Prompt of Email Boat

Step 2 (Part A) - AI Data Extraction

Added by Sachin Suresh 5 days ago. Updated 5 days ago.

Status:
On hold
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/18/2025
Due date:
% Done:

80%

Estimated time:
24:00 h
Spent time:
remarks:
DB Changes:
Keys & Permissions:
Areas Affected:
Files Changed:

Description

Task 3.1: Install Google Gemini SDK (npm install @google/genai).

Task 3.2: Create config/aiSchema.js to define the JSON structure.

Task 3.3: Create config/systemInstruction.txt with the optimized, minimal-output prompt.

Task 3.4: Create services/aiProcessor.js.

Task 3.5: Implement loadSystemInstruction (using fs/promises) to read the prompt file.

Task 3.6: Implement getFlightParams to call the Gemini API using responseJsonSchema and the loaded prompt.

Task 3.7: Implement retry logic in getFlightParams to handle 503/429 errors.

Actions

Also available in: Atom PDF