Auto download of all mails having 26AS in attachment
Problem
At present mails having specific attachments such as Form 26AS can be downloaded manually by opening every mail when it is received. But with the use of Zapier AI, all mails having 26AS as attachment can be downloaded automatically. This AI tool keep watch on every mail received in the mail ID linked with this tool and auto downloads Form 26AS received as attachment in the mail. This downloaded attachment can be saved in google drive. There is no need to run this prompt manually every time. This is one time set up only. It runs automatically every time when new mail is received. Even if the computer is turned off, it can download the attachment and save it in drive.
Prompt Input
Click on Zap in Zapier AI. Click on “Trigger” and select “gmail”. Trigger event- “New attachment”. Label or mailbox- Inbox. Search keyword- “26AS”. Test the trigger. Click on filter by Zapier. In Only contains if-Select Attachment file name contains Choose condition-Select Text contains Enter text-mention 26ASAdd or rule group- Repeat it. Click on “AI by Zapier”. Build mode- Analze-Analyze text. Input filed- My document Field value- Click on + and select “attachment”. In prompt, write this prompt "Prompt- Write this prompt. Role: You are a Chartered Accountant. Task: Analyze the attached document, which is an Indian Income Tax Form 26AS. Instructions: 1. Identify the Permanent Account Number (PAN) of the taxpayer. 2. Identify the Assessment Year (AY) the form relates to. 3. Identify the Total Tax Deducted/Collected (Total TDS). 4. Identify the Name of the Taxpayer. Data Formatting Rules: • Return the data in a clear, labeled list. • If a value is missing, write "Not Found". • For the Assessment Year, format it as "AY 20XX-XX". • Strict Rule: Do not include any conversational filler like "Here is the data" or "I have analyzed the document." Return only the extracted values." In Input document-mention My document. Generate preview and finish. Select Google drive. Action event- Select Upload file File-Select Attachment (Exist but not shown). Test step Publish.
Prompt Output
It will automatically search the mails with 26AS as attachment and downloads it and saves in google drive. There is no need to open zap and run this prompt every time. This is one time set up only. It runs automatically when the new mail is received in gamil or outlook account linked with zap.

