[{"data":1,"prerenderedAt":1935,"buildId":1936},["ShallowReactive",2],{"\u002Fguides\u002Fextract-receipts":3,"\u002Fguides\u002Fextract-receipts-surround":1660,"navigation":1671},{"id":4,"title":5,"body":6,"description":1652,"extension":933,"meta":1653,"navigation":1654,"path":1656,"seo":1657,"stem":1658,"__hash__":1659},"docs\u002F7.guides\u002F5.extract-receipts.md","Extract and organize receipts",{"type":7,"value":8,"toc":1624},"minimark",[9,38,42,48,53,147,158,162,278,311,315,1105,1109,1155,1160,1164,1177,1181,1187,1261,1271,1279,1283,1412,1416,1420,1435,1439,1449,1453,1478,1482,1502,1506,1514,1562,1589,1593,1620],[10,11,12,13,17,18,22,23,27,28,33,34,37],"p",{},"Receipts pile up as photos with names like ",[14,15,16],"code",{},"IMG_4471.jpg",", and when you need one for a refund, a warranty claim or your taxes, you have to open them one by one. This guide builds a ",[19,20,21],"strong",{},"library workflow"," for a ",[24,25,26],"em",{},"Receipts"," folder: upload a photo there, and an AI model reads the merchant, date, total and currency into ",[29,30,32],"a",{"href":31},"\u002Flibrary\u002Ffields","fields",", picks an expense category, renames the file after what it is, and files it under the year and month of the purchase. Receipts it can't read properly go to a ",[24,35,36],{},"Needs review"," folder. The photo itself is never changed, so you can always check a value against it.",[39,40],"workflow-diagram",{":steps":41},"[{\"name\":\"File uploaded\",\"summary\":\"Folder Receipts\",\"trigger\":true},{\"name\":\"Load content\",\"icon\":\"i-lucide-file-input\"},{\"name\":\"Read the receipt\",\"summary\":\"AI extract · Merchant, Purchase date, Total, Currency\",\"icon\":\"i-lucide-sparkles\",\"branches\":[{\"label\":\"Next\",\"steps\":[{\"name\":\"Expense category\",\"summary\":\"AI classify\",\"icon\":\"i-lucide-sparkles\"},{\"name\":\"Name parts\",\"summary\":\"Set values\",\"icon\":\"i-lucide-variable\"},{\"name\":\"Set field × 5\",\"summary\":\"Merchant, Purchase date, Total, Currency, Expense category\",\"icon\":\"i-lucide-text-cursor-input\"},{\"name\":\"Keep the details\",\"summary\":\"Add attachment\",\"icon\":\"i-lucide-paperclip\"},{\"name\":\"Has a date?\",\"icon\":\"i-lucide-split\",\"branches\":[{\"label\":\"True\",\"steps\":[{\"name\":\"Rename\",\"summary\":\"Date, merchant, amount\",\"icon\":\"i-lucide-pencil\"},{\"name\":\"File by month\",\"summary\":\"Receipts\u002F‹yyyy›\u002F‹MM›\",\"icon\":\"i-lucide-folder-input\"}]},{\"label\":\"False\",\"steps\":[{\"name\":\"Needs review\",\"summary\":\"Receipts\u002FNeeds review\",\"icon\":\"i-lucide-folder-input\"}]}]}]},{\"label\":\"Error\",\"steps\":[{\"name\":\"Needs review\",\"summary\":\"The same step as on False\",\"icon\":\"i-lucide-folder-input\"}]}]}]",[10,43,44,45,47],{},"The two ",[24,46,36],{}," boxes are one step with two connections into it: the run reaches it when the receipt has no date, or when a required value couldn't be read.",[49,50,52],"h2",{"id":51},"what-youll-build","What you'll build",[54,55,56,71],"table",{},[57,58,59],"thead",{},[60,61,62,65,68],"tr",{},[63,64],"th",{},[63,66,67],{},"Before",[63,69,70],{},"After",[72,73,74,90,104,134],"tbody",{},[60,75,76,80,85],{},[77,78,79],"td",{},"Name",[77,81,82],{},[14,83,84],{},"receipt-corner-bakery.jpg",[77,86,87],{},[14,88,89],{},"2026-11-14 Corner Bakery 15.98 USD.jpg",[60,91,92,95,99],{},[77,93,94],{},"Folder",[77,96,97],{},[24,98,26],{},[77,100,101],{},[24,102,103],{},"Receipts\u002F2026\u002F11",[60,105,106,109,112],{},[77,107,108],{},"Fields",[77,110,111],{},"None",[77,113,114,115,118,119,122,123,126,127,130,131],{},"Merchant ",[24,116,117],{},"Corner Bakery",", Purchase date ",[24,120,121],{},"2026-11-14",", Total ",[24,124,125],{},"15.98",", Currency ",[24,128,129],{},"USD",", Expense category ",[24,132,133],{},"Dining",[60,135,136,139,141],{},[77,137,138],{},"Attachments",[77,140,111],{},[77,142,143,146],{},[24,144,145],{},"Receipt details",", a short Markdown summary that search can find",[10,148,149,150,153,154,157],{},"The steps, names, folders and fields are ",[19,151,152],{},"verified"," from runs of this workflow. The values the AI read are ",[19,155,156],{},"illustrative",": they're what the sample receipt shows, and a good model reads them the same way, but check your own results.",[49,159,161],{"id":160},"before-you-start","Before you start",[54,163,164,172],{},[57,165,166],{},[60,167,168,170],{},[63,169],{},[63,171],{},[72,173,174,182,190,198,211,236,253,260,267],{},[60,175,176,179],{},[77,177,178],{},"Difficulty",[77,180,181],{},"Intermediate",[60,183,184,187],{},[77,185,186],{},"Time",[77,188,189],{},"About 30 minutes",[60,191,192,195],{},[77,193,194],{},"Workflow kind",[77,196,197],{},"Library workflow",[60,199,200,203],{},[77,201,202],{},"Connections",[77,204,205,206,210],{},"An ",[29,207,209],{"href":208},"\u002Fconnections\u002Fai-providers","AI connection"," whose model takes images",[60,212,213,216],{},[77,214,215],{},"Models",[77,217,218,219,222,223,226,227,230,231,235],{},"An image model that reads text well, such as ",[14,220,221],{},"qwen2.5vl"," or ",[14,224,225],{},"gemma3:12b"," on Ollama, or a hosted model such as ",[14,228,229],{},"gpt-4.1-mini",". An ",[29,232,234],{"href":233},"\u002Fai#extraction-models-and-language-models","extraction model",", on Cloudflare Workers AI or OpenRouter, gives a confidence for each value.",[60,237,238,241],{},[77,239,240],{},"Folders",[77,242,243,245,246,249,250,252],{},[24,244,26],{},". Create it in ",[19,247,248],{},"Files",". ",[24,251,36],{}," and the year and month folders are created as needed.",[60,254,255,257],{},[77,256,108],{},[77,258,259],{},"Created in the first step below",[60,261,262,265],{},[77,263,264],{},"Tags",[77,266,111],{},[60,268,269,272],{},[77,270,271],{},"Sample file",[77,273,274,277],{},[29,275,84],{"href":276},"\u002Fsamples\u002Freceipt-corner-bakery.jpg",": a made-up bakery receipt",[279,280,281],"tip",{},[10,282,283,284,287,288,292,293,296,297,300,301,304,305,307,308,310],{},"The built-in ",[19,285,286],{},"Extract receipt details"," ",[29,289,291],{"href":290},"\u002Fautomations\u002Ftemplates#built-in-templates","template"," is a smaller version: it asks AI detect whether each new image is a receipt, sets ",[24,294,295],{},"Merchant",", ",[24,298,299],{},"Receipt date"," and ",[24,302,303],{},"Total",", and moves receipts into ",[24,306,26],{},". It doesn't rename, sort by month, or send unreadable receipts to ",[24,309,36],{},". Start from it if you upload receipts mixed with other images, and add the steps below that you want.",[49,312,314],{"id":313},"build-the-workflow","Build the workflow",[316,317,319,324,340,404,408,446,452,456,463,467,479,515,529,593,618,632,636,646,676,729,742,746,755,791,813,817,830,889,895,899,907,987,1002,1006,1021,1028,1067,1085,1092,1096],"steps",{"level":318},"3",[320,321,323],"h3",{"id":322},"create-the-fields","Create the fields",[10,325,326,327,330,331,334,335,339],{},"In ",[19,328,329],{},"Settings › Fields",", click ",[19,332,333],{},"New field"," for each of these. See ",[29,336,338],{"href":337},"\u002Flibrary\u002Ffields#creating-a-field","Creating a field",".",[54,341,342,354],{},[57,343,344],{},[60,345,346,348,351],{},[63,347,79],{},[63,349,350],{},"Type",[63,352,353],{},"Choices",[72,355,356,365,375,384,393],{},[60,357,358,360,363],{},[77,359,295],{},[77,361,362],{},"Text",[77,364],{},[60,366,367,370,373],{},[77,368,369],{},"Purchase date",[77,371,372],{},"Date",[77,374],{},[60,376,377,379,382],{},[77,378,303],{},[77,380,381],{},"Number",[77,383],{},[60,385,386,389,391],{},[77,387,388],{},"Currency",[77,390,362],{},[77,392],{},[60,394,395,398,401],{},[77,396,397],{},"Expense category",[77,399,400],{},"Choice",[77,402,403],{},"Groceries, Dining, Travel, Office, Household, Other",[320,405,407],{"id":406},"create-the-workflow","Create the workflow",[10,409,410,411,330,414,417,418,421,422,424,425,428,429,431,432,300,434,431,437,296,440,300,443,339],{},"Open ",[19,412,413],{},"Automations › Workflows",[19,415,416],{},"New workflow",", name it ",[24,419,420],{},"Read receipts",", keep ",[19,423,197],{},", and choose ",[19,426,427],{},"File uploaded",". Set its ",[19,430,94],{}," to ",[24,433,26],{},[19,435,436],{},"File types",[14,438,439],{},"image\u002Fpng",[14,441,442],{},"image\u002Fjpeg",[14,444,445],{},"image\u002Fwebp",[10,447,448,449,451],{},"Only uploads into ",[24,450,26],{}," itself start a run, so moving a receipt into a month folder later doesn't start it again.",[320,453,455],{"id":454},"load-the-photo","Load the photo",[10,457,458,459,462],{},"Add ",[19,460,461],{},"Load content"," after the trigger.",[320,464,466],{"id":465},"read-the-receipt","Read the receipt",[10,468,458,469,472,473,475,476,339],{},[19,470,471],{},"AI extract",", rename it ",[24,474,466],{},", and click ",[19,477,478],{},"Configure step",[480,481,482,489,503],"ul",{},[483,484,485,488],"li",{},[19,486,487],{},"Connection",": your AI connection.",[483,490,491,494,495,498,499,502],{},[19,492,493],{},"Method",": ",[19,496,497],{},"Extraction model"," if the editor doesn't flag the connection; otherwise ",[19,500,501],{},"Language model",", which works with every connection, including Ollama.",[483,504,505,508,509,494,512,339],{},[19,506,507],{},"Add image input",", then ",[19,510,511],{},"Image",[24,513,514],{},"Load content › Content",[10,516,517,518,521,522,524,525,528],{},"Click ",[19,519,520],{},"Use existing fields",". It adds a value for each of your fields with a matching type. Remove ",[24,523,397],{},", which the next step decides, and any other fields you don't want filled. Then fill in the descriptions and ",[19,526,527],{},"Required",":",[54,530,531,545],{},[57,532,533],{},[60,534,535,538,540,542],{},[63,536,537],{},"Value",[63,539,350],{},[63,541,527],{},[63,543,544],{},"Description",[72,546,547,559,571,582],{},[60,548,549,551,553,556],{},[77,550,295],{},[77,552,362],{},[77,554,555],{},"Yes",[77,557,558],{},"The shop, restaurant or company the purchase was made from, as printed at the top of the receipt.",[60,560,561,563,565,568],{},[77,562,369],{},[77,564,372],{},[77,566,567],{},"No",[77,569,570],{},"The date of the purchase. Ignore due dates and return-by dates.",[60,572,573,575,577,579],{},[77,574,303],{},[77,576,381],{},[77,578,555],{},[77,580,581],{},"The final amount paid, including tax and tip, without the currency symbol.",[60,583,584,586,588,590],{},[77,585,388],{},[77,587,362],{},[77,589,567],{},[77,591,592],{},"The three-letter ISO 4217 code of the total, such as USD, EUR or GBP. Only when the receipt shows it or its symbol makes it unambiguous.",[10,594,595,596,599,600,494,603,606,607,431,610,613,614,617],{},"On the ",[19,597,598],{},"Advanced"," tab, add ",[19,601,602],{},"Additional instructions",[24,604,605],{},"Read printed text only. If several totals appear, use the one labelled Total or Amount paid."," Then set ",[19,608,609],{},"If this step fails",[19,611,612],{},"Take the error path",". The step gets an ",[19,615,616],{},"Error"," output, which you'll connect later.",[10,619,620,621,624,625,627,628,631],{},"A value the model can't find stays empty and is listed in the step's ",[19,622,623],{},"Missing values","; Tessra never guesses one. A ",[19,626,527],{}," value that's missing fails the step with ",[14,629,630],{},"ai_required_missing",", and the run takes the error path.",[320,633,635],{"id":634},"pick-an-expense-category","Pick an expense category",[10,637,458,638,641,642,475,644,339],{},[19,639,640],{},"AI classify"," after Read the receipt, rename it ",[24,643,397],{},[19,645,478],{},[480,647,648,661,670],{},[483,649,650,296,652,300,654,656,657,339],{},[19,651,487],{},[19,653,493],{},[19,655,511],{}," as for AI classify in ",[29,658,660],{"href":659},"\u002Fguides\u002Fcategorize-screenshots#decide-the-topic","the screenshot guide",[483,662,663,666,667,339],{},[19,664,665],{},"Add text input",", then a template: ",[14,668,669],{},"Merchant: {{ steps.extract.merchant }}",[483,671,672,675],{},[19,673,674],{},"Allow no match when none of the categories fit",": on.",[54,677,678,688],{},[57,679,680],{},[60,681,682,685],{},[63,683,684],{},"Category",[63,686,687],{},"What belongs in this category?",[72,689,690,698,705,713,721],{},[60,691,692,695],{},[77,693,694],{},"Groceries",[77,696,697],{},"Supermarkets and food shops for home.",[60,699,700,702],{},[77,701,133],{},[77,703,704],{},"Restaurants, cafes, bakeries, bars and takeaway.",[60,706,707,710],{},[77,708,709],{},"Travel",[77,711,712],{},"Transport, fuel, parking, hotels and tickets.",[60,714,715,718],{},[77,716,717],{},"Office",[77,719,720],{},"Office supplies, software, electronics and work equipment.",[60,722,723,726],{},[77,724,725],{},"Household",[77,727,728],{},"Home goods, hardware, utilities and repairs.",[10,730,731,732,735,736,431,738,741],{},"Leave out ",[24,733,734],{},"Other",": receipts that fit nothing get it below. Set ",[19,737,609],{},[19,739,740],{},"Continue",", so a failed category doesn't lose the values already read.",[320,743,745],{"id":744},"prepare-the-name","Prepare the name",[10,747,458,748,472,751,754],{},[19,749,750],{},"Set values",[24,752,753],{},"Name parts",", and add two values, each as a template:",[54,756,757,765],{},[57,758,759],{},[60,760,761,763],{},[63,762,79],{},[63,764,537],{},[72,766,767,779],{},[60,768,769,774],{},[77,770,771],{},[14,772,773],{},"merchant",[77,775,776],{},[14,777,778],{},"{{ steps.extract.merchant | replace: '\u002F', '-' | truncate: 60 }}",[60,780,781,786],{},[77,782,783],{},[14,784,785],{},"amount",[77,787,788],{},[14,789,790],{},"{{ steps.extract.total }} {{ steps.extract.currency | default: '' }}",[10,792,793,794,797,798,801,802,249,805,808,809,812],{},"File names can't contain ",[14,795,796],{},"\u002F",": Tessra keeps only what comes after the last one, so ",[24,799,800],{},"Harbor Hardware \u002F Garden"," would become ",[24,803,804],{},"Garden",[14,806,807],{},"replace"," turns it into a dash instead, and ",[14,810,811],{},"truncate"," stops a long merchant name from crowding out the rest.",[320,814,816],{"id":815},"store-the-values-in-fields","Store the values in fields",[10,818,819,820,823,824,827,828,528],{},"Add five ",[19,821,822],{},"Set field"," steps one after another. Pick the ",[19,825,826],{},"Field",", then set ",[19,829,537],{},[54,831,832,840],{},[57,833,834],{},[60,835,836,838],{},[63,837,826],{},[63,839,537],{},[72,841,842,852,861,870,879],{},[60,843,844,846],{},[77,845,295],{},[77,847,848,849],{},"From a step: ",[24,850,851],{},"Read the receipt › Merchant",[60,853,854,856],{},[77,855,369],{},[77,857,848,858],{},[24,859,860],{},"Read the receipt › Purchase date",[60,862,863,865],{},[77,864,303],{},[77,866,848,867],{},[24,868,869],{},"Read the receipt › Total",[60,871,872,874],{},[77,873,388],{},[77,875,848,876],{},[24,877,878],{},"Read the receipt › Currency",[60,880,881,883],{},[77,882,397],{},[77,884,885,886],{},"Template: ",[14,887,888],{},"{{ steps.classify.label | default: 'Other' }}",[10,890,891,892,894],{},"A value that wasn't found leaves the field as it was. The category's name matches the field's choices, ignoring case; ",[24,893,734],{}," covers receipts nothing fits.",[320,896,898],{"id":897},"keep-a-readable-summary","Keep a readable summary",[10,900,458,901,472,904,528],{},[19,902,903],{},"Add attachment",[24,905,906],{},"Keep the details",[480,908,909,915,923],{},[483,910,911,494,913],{},[19,912,79],{},[14,914,145],{},[483,916,917,494,920],{},[19,918,919],{},"Kind",[24,921,922],{},"Markdown",[483,924,925,927,928],{},[19,926,362],{},": a template:",[929,930,935],"pre",{"className":931,"code":932,"language":933,"meta":934,"style":934},"language-md shiki shiki-themes material-theme-lighter github-light github-dark","## Receipt details\n\n- **Merchant:** {{ steps.extract.merchant }}\n- **Date:** {{ steps.extract.purchaseDate | default: 'not found' }}\n- **Total:** {{ steps.extract.total }} {{ steps.extract.currency | optional }}\n- **Category:** {{ steps.classify.label | default: 'Other' }}\n\nRead by the *Read receipts* workflow. Check the original image before relying on these values.\n","md","",[14,936,937,945,952,958,964,970,976,981],{"__ignoreMap":934},[938,939,942],"span",{"class":940,"line":941},"line",1,[938,943,944],{},"## Receipt details\n",[938,946,948],{"class":940,"line":947},2,[938,949,951],{"emptyLinePlaceholder":950},true,"\n",[938,953,955],{"class":940,"line":954},3,[938,956,957],{},"- **Merchant:** {{ steps.extract.merchant }}\n",[938,959,961],{"class":940,"line":960},4,[938,962,963],{},"- **Date:** {{ steps.extract.purchaseDate | default: 'not found' }}\n",[938,965,967],{"class":940,"line":966},5,[938,968,969],{},"- **Total:** {{ steps.extract.total }} {{ steps.extract.currency | optional }}\n",[938,971,973],{"class":940,"line":972},6,[938,974,975],{},"- **Category:** {{ steps.classify.label | default: 'Other' }}\n",[938,977,979],{"class":940,"line":978},7,[938,980,951],{"emptyLinePlaceholder":950},[938,982,984],{"class":940,"line":983},8,[938,985,986],{},"Read by the *Read receipts* workflow. Check the original image before relying on these values.\n",[10,988,989,990,994,995,997,998,1001],{},"Markdown attachments are ",[29,991,993],{"href":992},"\u002Flibrary\u002Fsearch","searchable",", so searching ",[19,996,248],{}," for ",[24,999,1000],{},"bakery"," finds this receipt even after you rename it.",[320,1003,1005],{"id":1004},"file-it-by-date","File it by date",[10,1007,1008,1009,472,1012,1015,1016,287,1018,339],{},"Add a ",[19,1010,1011],{},"Condition",[24,1013,1014],{},"Has a date?",", with one rule: ",[24,1017,860],{},[19,1019,1020],{},"isn't null",[10,1022,1023,1024,1027],{},"From ",[19,1025,1026],{},"True",", add:",[1029,1030,1031,1048],"ol",{},[483,1032,1033,1036,1037,287,1040,1043,1044,1047],{},[19,1034,1035],{},"Rename",", with ",[19,1038,1039],{},"New name",[14,1041,1042],{},"{{ steps.extract.purchaseDate }} {{ steps.set-values.merchant }} {{ steps.set-values.amount }}",". Keep ",[19,1045,1046],{},"Keep the extension"," on.",[483,1049,1050,1053,1054,494,1057,287,1059,296,1061,287,1064,339],{},[19,1051,1052],{},"Move to folder",", renamed ",[24,1055,1056],{},"File by month",[19,1058,94],{},[24,1060,26],{},[19,1062,1063],{},"Subfolders",[14,1065,1066],{},"{{ steps.extract.purchaseDate | date: 'yyyy\u002FMM' }}",[10,1068,1023,1069,1072,1073,1053,1075,494,1077,287,1079,296,1081,287,1083,339],{},[19,1070,1071],{},"False",", add ",[19,1074,1052],{},[24,1076,36],{},[19,1078,94],{},[24,1080,26],{},[19,1082,1063],{},[14,1084,36],{},[10,1086,1087,1088,1091],{},"The date is checked first because ",[14,1089,1090],{},"date"," can't format a missing value, and filing an undated receipt under today's month would hide it.",[320,1093,1095],{"id":1094},"send-failures-to-review","Send failures to review",[10,1097,1098,1099,1101,1102,1104],{},"Drag from Read the receipt's ",[19,1100,616],{}," output to the ",[24,1103,36],{}," step. It now has two connections into it, and runs when either is taken.",[49,1106,1108],{"id":1107},"test-it","Test it",[1029,1110,1111,1121,1133,1146],{},[483,1112,1113,1114,1117,1118,1120],{},"Upload the ",[29,1115,1116],{"href":276},"sample receipt"," into ",[24,1119,26],{}," with the workflow inactive.",[483,1122,517,1123,1126,1127,475,1130,339],{},[19,1124,1125],{},"Test",", choose it, turn on ",[19,1128,1129],{},"Allow sending content to outside services",[19,1131,1132],{},"Start test",[483,1134,1135,1136,1138,1139,1141,1142,1145],{},"Select ",[19,1137,466],{},". Its outputs show each value, and ",[19,1140,623],{}," lists any it couldn't find. With an extraction model, ",[19,1143,1144],{},"Confidence"," shows how sure it was of each one.",[483,1147,1148,1149,1151,1152,1154],{},"Select the Set field steps, ",[24,1150,906],{},", Rename and ",[24,1153,1056],{}," to see what they would write. Nothing is written to the real file during a test.",[10,1156,1157,1158,339],{},"Try a photo of a real receipt too, and a picture that isn't a receipt at all: it should end at ",[24,1159,36],{},[49,1161,1163],{"id":1162},"turn-it-on","Turn it on",[10,1165,517,1166,1169,1170,1173,1174,1176],{},[19,1167,1168],{},"Publish",", then turn on ",[19,1171,1172],{},"Active",". Upload receipts into ",[24,1175,26],{}," from the browser, from your phone's browser, or with a ShareX token whose uploads you file there.",[49,1178,1180],{"id":1179},"what-to-expect","What to expect",[10,1182,1183,1186],{},[19,1184,1185],{},"Verified"," runs, with the values the stand-in model returned:",[54,1188,1189,1202],{},[57,1190,1191],{},[60,1192,1193,1196,1199],{},[63,1194,1195],{},"Case",[63,1197,1198],{},"Path",[63,1200,1201],{},"Result",[72,1203,1204,1224,1241],{},[60,1205,1206,1209,1216],{},[77,1207,1208],{},"Every value found",[77,1210,1211,1212,287,1214],{},"Next → ",[24,1213,1014],{},[19,1215,1026],{},[77,1217,1218,1219,1221,1222],{},"Fields set, renamed ",[14,1220,89],{},", moved to ",[24,1223,103],{},[60,1225,1226,1229,1235],{},[77,1227,1228],{},"No date or currency on the receipt",[77,1230,1211,1231,287,1233],{},[24,1232,1014],{},[19,1234,1071],{},[77,1236,1237,1238],{},"Merchant, Total and Expense category set; Purchase date and Currency left as they were; name unchanged; moved to ",[24,1239,1240],{},"Receipts\u002FNeeds review",[60,1242,1243,1246,1252],{},[77,1244,1245],{},"Total not readable",[77,1247,1248,494,1250],{},[19,1249,616],{},[14,1251,630],{},[77,1253,1254,1255,1257,1258],{},"Nothing set; moved to ",[24,1256,1240],{},"; run ",[24,1259,1260],{},"Completed with errors",[10,1262,1263,1264,1266,1267,1270],{},"A merchant read as ",[24,1265,800],{}," became ",[14,1268,1269],{},"Harbor Hardware - Garden"," in the name.",[1272,1273],"screenshot",{"alt":1274,"caption":1275,"height":1276,"name":1277,"width":1278},"Files in Receipts\u002F2026\u002F11 with the Corner Bakery receipt selected; its details list Merchant, Total, Purchase date, Currency USD and Expense category Dining","A filed receipt with its fields set",900,"guide-receipt-fields",1216,[49,1280,1282],{"id":1281},"troubleshooting","Troubleshooting",[54,1284,1285,1295],{},[57,1286,1287],{},[60,1288,1289,1292],{},[63,1290,1291],{},"Problem",[63,1293,1294],{},"Cause and fix",[72,1296,1297,1309,1319,1333,1351,1371,1393,1401],{},[60,1298,1299,1304],{},[77,1300,1301,1302],{},"Most receipts end in ",[24,1303,36],{},[77,1305,1306,1307,339],{},"The model can't read the photo. Use a model that reads text better, photograph receipts flat and well lit, and check the run's ",[19,1308,623],{},[60,1310,1311,1316],{},[77,1312,1313],{},[14,1314,1315],{},"ai_model_missing_feature",[77,1317,1318],{},"The model doesn't take images. Choose a vision model.",[60,1320,1321,1326],{},[77,1322,1323,1324],{},"Expense category is always ",[24,1325,734],{},[77,1327,1328,1329,1332],{},"AI classify found no category or failed. Open the run: a failure shows its error, and ",[24,1330,1331],{},"No category fits"," means the descriptions need work.",[60,1334,1335,1341],{},[77,1336,1337,1338],{},"Currency is a symbol, such as ",[14,1339,1340],{},"$",[77,1342,1343,1344,1347,1348,1350],{},"The model didn't follow the description. Add ",[24,1345,1346],{},"Answer with a three-letter code"," to it, or make ",[19,1349,602],{}," say so.",[60,1352,1353,1356],{},[77,1354,1355],{},"A field you corrected is overwritten on the next run",[77,1357,1358,1359,1362,1363,1366,1367,1370],{},"Only if ",[19,1360,1361],{},"Fields a person set"," in the workflow's ",[19,1364,1365],{},"Settings"," is ",[24,1368,1369],{},"Replace them",". By default workflows keep values a person set.",[60,1372,1373,1381],{},[77,1374,1375,1378,1379],{},[14,1376,1377],{},"input_missing"," on Rename or ",[24,1380,906],{},[77,1382,1383,1384,222,1387,1390,1391,339],{},"A template uses a value that wasn't found, without ",[14,1385,1386],{},"default",[14,1388,1389],{},"optional",". Add one, or make the value ",[19,1392,527],{},[60,1394,1395,1398],{},[77,1396,1397],{},"A receipt was filed in the wrong month",[77,1399,1400],{},"The model read another date, such as a return-by date. Sharpen the Purchase date description, then move the file and correct the field in its details.",[60,1402,1403,1406],{},[77,1404,1405],{},"Receipts weren't processed at all",[77,1407,1408,1409,1411],{},"They were uploaded into a subfolder, or into another folder. The trigger only watches ",[24,1410,26],{}," itself.",[49,1413,1415],{"id":1414},"make-it-your-own","Make it your own",[320,1417,1419],{"id":1418},"more-details","More details",[10,1421,1422,1423,1426,1427,1430,1431,1434],{},"Add values to Read the receipt, such as ",[24,1424,1425],{},"Tax"," (Number), ",[24,1428,1429],{},"Payment method"," (Text) or ",[24,1432,1433],{},"Items"," (List of text), create matching fields, and add a Set field for each.",[320,1436,1438],{"id":1437},"find-receipts-by-field","Find receipts by field",[10,1440,1441,1442,1444,1445,339],{},"Each receipt's details show its fields, marked as set by the workflow, and you can correct them there. Scripts can list receipts by field through the API, such as every ",[24,1443,133],{}," receipt; see ",[29,1446,1448],{"href":1447},"\u002Flibrary\u002Ffields#filtering-by-a-field","Filtering by a field",[320,1450,1452],{"id":1451},"notify-on-large-purchases","Notify on large purchases",[10,1454,1008,1455,1457,1458,287,1460,287,1463,1466,1467,1470,1471,1473,1474,339],{},[19,1456,1011],{}," after the Set field steps with ",[24,1459,869],{},[19,1461,1462],{},"is greater than",[14,1464,1465],{},"200",", and a ",[19,1468,1469],{},"Send notification"," on ",[19,1472,1026],{},". See ",[29,1475,1477],{"href":1476},"\u002Fguides\u002Fdiscord-notifications","Send rich Discord notifications",[320,1479,1481],{"id":1480},"catch-receipts-anywhere","Catch receipts anywhere",[10,1483,1484,1485,1487,1488,1491,1492,1495,1496,1473,1498,1501],{},"Instead of a ",[24,1486,26],{}," folder, start with an ",[19,1489,1490],{},"AI detect"," step asking ",[24,1493,1494],{},"Is this a receipt, invoice or order confirmation?"," on every image, and continue on ",[19,1497,555],{},[29,1499,1490],{"href":1500},"\u002Fai\u002Fdetect-and-tag#ai-detect",". Every image is then sent to the model.",[320,1503,1505],{"id":1504},"read-receipts-with-ocr-first","Read receipts with OCR first",[10,1507,1508,1509,1513],{},"With ",[29,1510,1512],{"href":1511},"\u002Focr","Tessra OCR"," running, a text-only model can read receipts, and the photo never goes to the AI service: only its text does.",[1029,1515,1516,1535,1551],{},[483,1517,1518,1519,300,1521,1072,1523,1526,1527,1530,1531,1534],{},"Between ",[19,1520,461],{},[19,1522,466],{},[19,1524,1525],{},"Extract text"," with ",[19,1528,1529],{},"Preset"," set to ",[19,1532,1533],{},"Document",", which keeps each amount on the line with its label.",[483,1536,326,1537,1539,1540,1542,1543,431,1545,1548,1549,339],{},[19,1538,466],{},", remove the image input, click ",[19,1541,665],{},", and set ",[19,1544,362],{},[24,1546,1547],{},"Extract text › Text",". Do the same in ",[19,1550,397],{},[483,1552,1553,1554,1557,1558,1561],{},"Give the values clear ",[19,1555,1556],{},"Descriptions",", such as ",[24,1559,1560],{},"The final total, on the line that says TOTAL",", because OCR text loses the receipt's columns.",[10,1563,1564,1565,1567,1568,1571,1572,1574,1575,1578,1579,1581,1582,1585,1586,1588],{},"On the sample, ",[19,1566,1533],{}," read every line with its amount, such as ",[14,1569,1570],{},"TOTAL USD 15.98"," (",[19,1573,152],{},"). ",[19,1576,1577],{},"Automatic"," dropped the right-hand column of amounts, so don't use it for receipts. Photos taken at an angle or in poor light read less reliably than scans; check ",[19,1580,1144],{}," on Extract text in a test run. Connect Extract text's ",[19,1583,1584],{},"No text found"," path to ",[24,1587,36],{}," as well.",[49,1590,1592],{"id":1591},"privacy-cost-and-reliability","Privacy, cost and reliability",[480,1594,1595,1603,1610,1613],{},[483,1596,1597,1598,1602],{},"Receipts show what you bought, where and when, and sometimes part of a card number. Each photo is sent twice, to AI extract and AI classify, at the address of your AI connection. Use a ",[29,1599,1601],{"href":1600},"\u002Fguides\u002Flocal-ai-ollama","local model"," to keep them on your network.",[483,1604,1605,1606,1609],{},"With a hosted service, each receipt costs two requests with an image. Set ",[19,1607,1608],{},"Tokens a day"," on the connection to cap spending.",[483,1611,1612],{},"AI reads numbers wrongly sometimes. The original photo is never changed, the summary says the values were read by a workflow, and each field shows that a workflow set it, so check before you rely on a value for anything that matters.",[483,1614,205,1615,1619],{},[29,1616,1618],{"href":1617},"\u002Fguides\u002Fcompress-uploads","intake workflow"," that also handles these uploads changes the photo before it's saved. Resizing to 2560 pixels keeps receipts readable; heavy compression may not.",[1621,1622,1623],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":934,"searchDepth":947,"depth":954,"links":1625},[1626,1627,1628,1640,1641,1642,1643,1644,1651],{"id":51,"depth":947,"text":52},{"id":160,"depth":947,"text":161},{"id":313,"depth":947,"text":314,"children":1629},[1630,1631,1632,1633,1634,1635,1636,1637,1638,1639],{"id":322,"depth":954,"text":323},{"id":406,"depth":954,"text":407},{"id":454,"depth":954,"text":455},{"id":465,"depth":954,"text":466},{"id":634,"depth":954,"text":635},{"id":744,"depth":954,"text":745},{"id":815,"depth":954,"text":816},{"id":897,"depth":954,"text":898},{"id":1004,"depth":954,"text":1005},{"id":1094,"depth":954,"text":1095},{"id":1107,"depth":947,"text":1108},{"id":1162,"depth":947,"text":1163},{"id":1179,"depth":947,"text":1180},{"id":1281,"depth":947,"text":1282},{"id":1414,"depth":947,"text":1415,"children":1645},[1646,1647,1648,1649,1650],{"id":1418,"depth":954,"text":1419},{"id":1437,"depth":954,"text":1438},{"id":1451,"depth":954,"text":1452},{"id":1480,"depth":954,"text":1481},{"id":1504,"depth":954,"text":1505},{"id":1591,"depth":947,"text":1592},"Read the merchant, date, total and currency from receipt photos into fields, sort them into expense categories, and file them by year and month.",{},{"title":1655},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts",{"title":5,"description":1652},"7.guides\u002F5.extract-receipts","LHeYokWZVBMj6SFlCen5KOv5_CbMrF2kfOVJZrVyZMk",[1661,1666],{"title":1662,"path":1663,"stem":1664,"description":1665,"children":-1},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots","Let an AI model sort new screenshots into folders by topic, give them descriptive names and tag them, and park anything it can't place.",{"title":1667,"path":1668,"stem":1669,"description":1670,"children":-1},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names","Replace random ShareX file names with short descriptive ones, safely, and keep the original name when the AI has no answer.",[1672,1692,1726,1770,1779,1798,1808,1850,1873,1887,1903],{"title":1673,"path":1674,"stem":1675,"children":1676,"icon":1691},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[1677,1679,1683,1687],{"title":1678,"path":1674,"stem":1675},"Introduction",{"title":1680,"path":1681,"stem":1682},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":1684,"path":1685,"stem":1686},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":1688,"path":1689,"stem":1690},"Updating Tessra","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":1693,"icon":1694,"path":1695,"stem":1696,"children":1697,"page":1725},"Library","i-lucide-folder","\u002Flibrary","2.library",[1698,1702,1706,1710,1713,1715,1718,1721],{"title":1699,"path":1700,"stem":1701},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":1703,"path":1704,"stem":1705},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":1707,"path":1708,"stem":1709},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":264,"path":1711,"stem":1712},"\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":108,"path":31,"stem":1714},"2.library\u002F5.fields",{"title":138,"path":1716,"stem":1717},"\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":1719,"path":992,"stem":1720},"Search","2.library\u002F7.search",{"title":1722,"path":1723,"stem":1724},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":1727,"path":1728,"stem":1729,"children":1730,"icon":1769},"Automations","\u002Fautomations","3.automations\u002F01.index",[1731,1733,1737,1741,1745,1749,1753,1757,1761,1765],{"title":1732,"path":1728,"stem":1729},"Overview",{"title":1734,"path":1735,"stem":1736},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":1738,"path":1739,"stem":1740},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":1742,"path":1743,"stem":1744},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":1746,"path":1747,"stem":1748},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":1750,"path":1751,"stem":1752},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":1754,"path":1755,"stem":1756},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":1758,"path":1759,"stem":1760},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":1762,"path":1763,"stem":1764},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":1766,"path":1767,"stem":1768},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":202,"path":1771,"stem":1772,"children":1773,"icon":1778},"\u002Fconnections","4.connections\u002F1.index",[1774,1775],{"title":1732,"path":1771,"stem":1772},{"title":1776,"path":208,"stem":1777},"AI providers","4.connections\u002F2.ai-providers","i-lucide-plug",{"title":1780,"path":1781,"stem":1782,"children":1783,"icon":1797},"AI","\u002Fai","5.ai\u002F1.index",[1784,1785,1789,1793],{"title":1732,"path":1781,"stem":1782},{"title":1786,"path":1787,"stem":1788},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":1790,"path":1791,"stem":1792},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":1794,"path":1795,"stem":1796},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":1799,"path":1511,"stem":1800,"children":1801,"icon":1807},"OCR","5.ocr\u002F1.index",[1802,1803],{"title":1732,"path":1511,"stem":1800},{"title":1804,"path":1805,"stem":1806},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":1809,"path":1810,"stem":1811,"children":1812,"icon":1849},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[1813,1814,1817,1821,1825,1829,1833,1837,1841,1845],{"title":1732,"path":1810,"stem":1811},{"title":1282,"path":1815,"stem":1816},"\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":1818,"path":1819,"stem":1820},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":1822,"path":1823,"stem":1824},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":1826,"path":1827,"stem":1828},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":1830,"path":1831,"stem":1832},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":1834,"path":1835,"stem":1836},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":1838,"path":1839,"stem":1840},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":1842,"path":1843,"stem":1844},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":1846,"path":1847,"stem":1848},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":1851,"path":1852,"stem":1853,"children":1854,"icon":1872},"Guides","\u002Fguides","7.guides\u002F1.index",[1855,1856,1859,1862,1863,1864,1865,1868],{"title":1732,"path":1852,"stem":1853},{"title":1857,"path":1617,"stem":1858},"Optimize ShareX uploads","7.guides\u002F2.compress-uploads",{"title":1860,"path":1476,"stem":1861},"Send Discord notifications","7.guides\u002F3.discord-notifications",{"title":1662,"path":1663,"stem":1664},{"title":1655,"path":1656,"stem":1658},{"title":1667,"path":1668,"stem":1669},{"title":1866,"path":1600,"stem":1867},"Run AI locally with Ollama","7.guides\u002F7.local-ai-ollama",{"title":1869,"path":1870,"stem":1871},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots","i-lucide-book-open",{"title":1874,"icon":1875,"path":1876,"stem":1877,"children":1878,"page":1725},"Reference","i-lucide-library","\u002Freference","8.reference",[1879,1883],{"title":1880,"path":1881,"stem":1882},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":1884,"path":1885,"stem":1886},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":1888,"path":1889,"stem":1890,"children":1891,"icon":1902},"Development","\u002Fdevelopment","9.development\u002F1.index",[1892,1894,1898],{"title":1893,"path":1889,"stem":1890},"Local development",{"title":1895,"path":1896,"stem":1897},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":1899,"path":1900,"stem":1901},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":1904,"path":1905,"stem":1906,"children":1907,"icon":1934},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[1908,1910,1914,1918,1922,1926,1930],{"title":1909,"path":1905,"stem":1906},"Comparing Tessra",{"title":1911,"path":1912,"stem":1913},"Tessra and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":1915,"path":1916,"stem":1917},"Tessra and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":1919,"path":1920,"stem":1921},"Tessra and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":1923,"path":1924,"stem":1925},"Tessra and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":1927,"path":1928,"stem":1929},"Tessra and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":1931,"path":1932,"stem":1933},"Tessra and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796303403826,"2eb8bd5e-681b-4964-b4c2-2a23ddfda32e"]