Document AI Konfuzio
Actions
Delete a document
Delete a document.
Give feedback to the extraction results of a document
You can give feedback by sending the adapted extraction result dictionary.
Example python code:
import requests
import json
from requests.auth import HTTPBasicAuth
url = f"https://app.konfuzio.com/api/v2/docs/{DOC_ID}/"
auth = HTTPBasicAuth(KONFUZIO_USER, KONFUZIO_PASSWORD)
data = requests.get(url=url, auth=auth).json()
# Mark Extraction as correct.
data['labels']['Bruttozahlweise']['extractions'][0]['correct'] = True
# Add new Extraction which has not been in result list.
data['labels']['Bruttozahlweise']['extractions'].append({'value': '123,45'})
r = requests.patch(url = url, data=json.dumps(data), auth=auth, headers={'Content-Type': 'application/json'},)
Power Automate
Power Automate