Advanced Redaction
Learn how to add advanced functionality to a BrainEngine project.
Update Configuration
For this example, we will update the project configuration to include the following redaction strategies:
Behavior
- Click here to learn more.
{
"sid": "NER000",
"name": "ner",
"active": true,
"agent_location": "left",
"inbound": true,
"behavior": "moderate"
"scrubaudio": true,
"scrubtext": true,
"rules": [
{
"name": "Person",
"active": true,
"mask_type": "Placeholder",
"setting": "[NAME]",
"real_time": true
},
{
"name": "Address",
"active": true,
"mask_type": "Placeholder",
"setting": "[ADDRESS]",
"real_time": true
},
{
"name": "USSocialSecurityNumber",
"active": true,
"mask_type": "Placeholder",
"setting": "[SSN]",
"real_time": true
}
]
}
test
Publish Updated Project Configuration
Publish the configuration.
POST
/system/cache/v2/publish
Sets the system cache
Request Body
Name
Type
Description
data*
String
Project configuration
If a project with the given name already exists its configuration will be overwritten by the updated project.
The example below use cURL
, a command line utility that sends HTTP client requests. The cURL
application is freely available for Linux, Windows, and macOS operating systems.
curl -s -X POST \
-f 'project.json' \
'brainengine_name/system/cache/v2/publish'
Expected Response
{
"success": true,
"message": "",
"detail": ""
}
Resubmit Sample Call
The example below submits a transcription request to BrainEngine for redaction.
curl -s -X POST \
-T 'sample_2.wav' \
'brainengine_name/transcribe?sid=NER000@scrubtext=true&output=text'
Expected Response
AGENT: [NAME] [NAME] department how can I be of help.
CLIENT: [NAME] little bit confused about something that I saw on my account.
AGENT: [NAME] need to ask you a few security questions for verification.
CLIENT: Okay.
AGENT: Okay. What is your full name please?
CLIENT: [NAME].
AGENT: to the to ours
CLIENT: One or.
AGENT: one our okay and your social security number.
CLIENT: [SSN].
AGENT: And current address please.
CLIENT: [ADDRESS].
Last updated