{"connections":[{"sourceLocalID":4,"sourcePortID":"outlet_output","targetLocalID":5,"targetPortID":"inlet_input"},{"sourceLocalID":2,"sourcePortID":"outlet_confident","targetLocalID":1,"targetPortID":"inlet_input"},{"sourceLocalID":2,"sourcePortID":"outlet_unsure","targetLocalID":0,"targetPortID":"inlet_input"},{"sourceLocalID":5,"sourcePortID":"outlet_yes","targetLocalID":6,"targetPortID":"inlet_input"},{"sourceLocalID":6,"sourcePortID":"outlet_document","targetLocalID":2,"targetPortID":"inlet_input"}],"hideGrid":false,"name":"Sort Downloaded PDFs with Jev","nodes":[{"config":{"actionURL":"{{filePath}}","body":"Jev wasn't sure what kind of document {{fileName}} is. It is still in the folder you watch.","forceDisplay":true,"title":"Couldn't classify PDF"},"customName":"Jev Unsure","isDisabled":false,"localID":0,"typeID":"action.notification","x":1500,"y":180},{"config":{"allowFolders":false,"createDirectories":true,"destination":"~/Documents/Sorted/{{jev.choice}}/{{fileName}}","mode":"move","overwrite":false},"customName":"File into Sorted","isDisabled":false,"localID":1,"typeID":"action.move_file","x":1500,"y":340},{"config":{"options":{"contract":"A legal agreement, terms of service, lease, NDA, or other document with parties and obligations","invoice":"A bill requesting payment for goods or services, usually with an amount due and payment terms","other":"Anything that does not fit the categories above","reading":"An article, paper, report, book chapter, manual, or other material meant to be read","receipt":"Proof that a payment was already made, for example a purchase confirmation or paid summary"},"question":"What kind of document is this?","state":"File name: {{fileName}}\n\nDocument text:\n{{text}}","threshold":0.7},"customName":"Classify Document","isDisabled":false,"localID":2,"typeID":"ai.jev_choice","x":1160,"y":200},{"config":{"_height":620,"_width":460,"text":"**Sort Downloaded PDFs with Jev files each new PDF in your Downloads folder by what kind of document it is.**\n\n**What it does**\n- Invoices, receipts, contracts and reading each go to their own folder in ~/Documents/Sorted. Anything else goes to other.\n- Jev reads the file name and the PDF's text and picks the category.\n- When Jev is not sure, the file stays put and a notification tells you. Click it to open the file.\n- Nothing is overwritten. If a file with the same name is already there, a number is added.\n\n**Set it up**\n- Choose the folder to watch on **Watch Downloads**, usually your Downloads folder. The flow cannot be turned on until you do.\n- Connect a Jev account in Settings, Integrations. Or, in Account on **Classify Document**, pick an OpenRouter provider or Sparks.\n- Turn the flow on. If macOS asks, allow Watchflows to use the Downloads and Documents folders.\n\n**Make it yours**\n- Add or change categories in Options on **Classify Document**. Each key becomes a folder name.\n- Lower Minimum confidence on **Classify Document** to send fewer files to **Jev Unsure**.\n- Change Destination on **File into Sorted** to file somewhere else."},"isDisabled":false,"localID":3,"typeID":"note","x":100,"y":-520},{"config":{"eventTypes":"created","recursive":false,"waitForCloudDownload":true,"watchPath":"{{NEEDS_INPUT: choose the folder to watch, such as your Downloads folder}}"},"customName":"Watch Downloads","isDisabled":false,"localID":4,"typeID":"trigger.directory_changed","x":100,"y":200},{"config":{"caseInsensitive":true,"field":"fileExtension","logic":"and","operator":"equals","value":"pdf"},"customName":"Is it a PDF?","isDisabled":false,"localID":5,"typeID":"condition.compare","x":450,"y":260},{"config":{"filePath":"{{filePath}}","outputKey":"text","renderPageImages":false},"customName":"Extract PDF Text","isDisabled":false,"localID":6,"typeID":"transformer.extract_text_pdf","x":800,"y":140},{"config":{"text":"**Classify Document** sends Jev the file name and the PDF's text. Confident goes to **File into Sorted**. Unsure, below the Minimum confidence, goes to **Jev Unsure** and the file stays in Downloads."},"isDisabled":false,"localID":7,"typeID":"note","x":1170,"y":356}],"version":1}