Question
I have a scenario where I have 2 vendors - Vendor 1 and Vendor 2. I want Vantage to classify invoices to detect whether it is one of those vendors and apply the corresponding document skill, and for invoices which were classified as Vendor 1 and Vendor with low confidence I want general Invoice ANZ document skill to be matched. How can I achieve that?
Answer
In the Process Skill > If activity add script conditions defining the confidence threshold, i.e. :
for (var i = 0; i < Context.Transaction.Documents[0].ClassConfidences.length; i++) { Context.Transaction.Documents[0].ClassConfidences[i].Class == "Vendor 1" && Context.Transaction.Documents[0].ClassConfidences[i].Confidence > 70; }
Comments
0 comments
Please sign in to leave a comment.