Instructions
1. Understand the Request
- •The user will ask you to submit application materials based on email instructions.
- •The request typically references an email from a specific sender (e.g., "kaiming") containing submission guidelines.
- •The subject line for the outgoing email is often specified (e.g.,
PhD Application Materials Submission (Student ID: {studentid})). - •The user's personal information is stored in memory.
2. Retrieve Essential Information
- •Search for the instruction email: Use
emails-search_emailswith a query (e.g., sender name or relevant keywords) to find the email containing submission guidelines. - •Read the instruction email: Use
emails-read_emailto get the full content. Extract:- •Recipient email address for submission (e.g.,
myersj@mcp.com). - •Required folder structure and naming conventions.
- •Any specific file processing instructions (e.g., "merge award certificates into a single PDF sorted by date").
- •Recipient email address for submission (e.g.,
- •Read user's personal information from memory: Use
memory-read_graphto get:- •Full name.
- •Student ID (or equivalent identifier).
- •Other relevant details (email, phone) for the email body.
3. Locate and Inspect Source Materials
- •List the workspace directory: Use
filesystem-list_directoryto see available files. - •Examine key files if needed:
- •For recommendation letters: Use
pdf-tools-read_pdf_pagesto extract professor names from the first page for correct renaming. - •For award certificates: Use
pdf-tools-read_pdf_pagesto confirm dates for sorting.
- •For recommendation letters: Use
4. Create the Required Folder Structure
- •Construct the root folder name using the user's name and ID without spaces (e.g.,
Application_Materials_MaryCastillo_2201210606). - •Create the full directory hierarchy as specified in the instructions using
terminal-run_commandwithmkdir -p. - •Typical structure includes:
- •
01_Personal_Information/(ID_Card.pdf, Photo.jpg, Resume.pdf) - •
02_Academic_Materials/withAwards_Certificates/subfolder - •
03_Recommendation_Letters/ - •
04_Supplementary_Materials/
- •
5. Organize and Process Files
- •Copy files to their target locations using
terminal-run_commandwithcp. - •Rename files according to conventions (e.g.,
Recommendation_Letter_[ProfessorName]-1.pdf). Professor names should have no spaces. - •Merge PDFs when required: Use
pdf-tools-merge_pdfsto combine multiple award certificates intoAll_Awards_Certificates.pdf. Sort by date (ascending). - •Ensure all files use English names without special characters or spaces.
6. Verify and Compress
- •Verify the structure: Use
filesystem-directory_treeto confirm the folder hierarchy and file placement. - •Create a ZIP archive: Use the provided Python script (
scripts/create_zip.py) ifzipcommand is unavailable. The ZIP file should be named after the root folder (e.g.,Application_Materials_MaryCastillo_2201210606.zip).
7. Send the Submission Email
- •Use
emails-send_emailwith:- •To: The recipient email from the instructions.
- •Subject: Exactly as specified, inserting the student ID (e.g.,
PhD Application Materials Submission (Student ID: 2201210606)). - •Body: A professional email including the user's name, ID, contact information, and a brief description of the attached materials.
- •Attachments: The path to the created ZIP file.
8. Finalize
- •Provide a summary to the user confirming the email was sent, the structure created, and any special processing performed.
- •Use
local-claim_doneto indicate task completion.