File name: customAIPropertyMapping.json
Mount location and example:
./customAIPropertyMapping.json:/usr/local/tomcat/customAIPropertyMapping.json
Content:
{
"keyValueMapping":[
{
"aiTextract":[
{
"key":"Mailing Address:",
"aspect":"acme:applicantInfo",
"property":"acme:addressHome",
"keyMatch": "EXACT"
},
{
"key":"Full Name",
"aspect":"acme:applicantInfo",
"property":"acme:nameFull",
"confidence": "0.5"
},
{
"key":"telephone number:",
"aspect":"acme:applicantInfo",
"property":"acme:telephone"
},
[...]
]
}
]
}
In the above JSON snippet:
- The property mapping configuration is loaded and validated at application startup.
- If there's a mismatch between the aspect and the property, or if one or the other doesn't exist, a
WARNmessage is logged, and the pairing is ignored (i.e. that particular pair is ignored, not the entire configuration). - This example uses an
EXACTkey matching for theMailing Addressfield. Other options include regular expressions, with a fallback to the default matching ifkeyMatchisn't defined. See Form extraction (key-value pairs) for more.