BrainEngine AI
  • Welcome
  • Quick Start
    • Introduction
    • Platform Configuration
    • Validate Connectivity
    • Configure Redaction
    • Update Configuration
    • Advanced Redaction
  • Concepts
    • What is Conversational Redaction?
    • Redaction Strategy
    • Understanding Redaction
    • Navigating Utterances
      • Walk through
    • Redaction Techniques
      • Behavior
      • Confidence
      • Mask Types
        • Basic
        • Placeholder
        • Random
        • Truncate
        • Anonymization
      • Redaction Options
    • Insights
      • Insights
      • Query Syntax
      • Advance Processing
      • Simulated Pause & Resume
      • Real-Time Alerts
      • Agent Ignore
      • Offsets
      • Redaction Options
  • Features
    • Overview
    • Entities
      • PII
        • Name
        • Occupation
        • Phone Number
        • Organization
        • Address
        • Email
        • Location
        • Url
        • IP Address
        • Date
        • Age
        • Social Security Number
        • Drivers License
        • Passport
        • Id
        • Money
        • Time
        • User Name
        • Password
      • PHI
        • Medical Condition
        • Medication
        • Family Relation
        • Treatment
        • Examination
        • Anatomy
        • Medical Other
        • Demographic
        • Medical Event
      • PCI
        • Credit Card
        • Credit Card CVV
        • Credit Card Expiry
        • Routing Number
        • Bank Account
      • Custom
        • Dictionary
        • Identifier
        • Custom NER
    • Summarization
    • Sentiment Analysis
    • Topic Extraction
    • Profanity Filtering
  • Configuration
    • Project Configuration
    • Redaction Configuration
    • Samples
      • Configurations
      • Calls
  • Integration
    • V-Blaze
    • V-Spark
    • Analytics
      • Embedded
      • Callback
  • API Guide
    • Overview
      • Errors
      • Getting Help
    • Endpoints
      • ASR
        • Transcribe
        • Maxstreamscheck
        • Languages
        • Models
        • Params
        • Stats
        • Status
        • Sysinfo
        • Statusfull
      • Live
        • Callback
        • Listen
      • Redaction
        • Types
        • Validate
      • System
        • Initialize
        • Set parameter
        • Get parameter
        • Cache
          • List
          • Real time
          • Post call
          • Version 2
            • Publish
            • List
        • Get Settings
      • Status
        • Health
        • Webhooks
  • Deployment
    • Overview
    • Virtual Appliance
      • BrainEngine AMIs
        • Finding AMIs
        • Launching AMIs
        • Connecting to an Instance
        • SSL Configuration
        • Networking (optional)
    • Containers
      • Details
      • Deployment
    • Environment Parameters
    • Logging
  • Support
    • Release Notes
Powered by GitBook
On this page
  1. Quick Start

Configure Redaction

Learn how to define and publish a BrainEngine project.

PreviousValidate ConnectivityNextUpdate Configuration

Last updated 1 year ago

Create Project

To protect sensitive data, a project needs to be configured in order to redact the defined for a given audio file.

For this example, we will redact the following entities:

  • Person

{
    "sid": "NER000",
    "name": "ner",
    "active": true,
    "agent_location": "left",
    "inbound": true,
    "scrubaudio": true,
    "scrubtext": true,
    "rules": [
        {
            "name": "Person",
            "active": true,
            "mask_type": "Placeholder",
            "setting": "[NAME]",
            "real_time": true
        }
    ]
}

Publish Redaction Project

Publish the configuration.

POST /system/cache/v2/publish

Sets the system cache

Request Body

Name
Type
Description

data*

String

Project configuration

The example below use cURL, a command line utility that sends HTTP client requests. The cURLapplication 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": ""
}

Confirm Project Configuration

Open your browser and make a call to the following endpoint using the project sid below to retrieve the published configuration.

sid = NER000
curl -s -X POST \
-f 'project.json' \
'brainengine_name/system/cache/v2/publish'

Expected Response

{
    "sid": "NER000",
    "name": "ner",
    "active": true,
    "agent_location": "left",
    "inbound": true,
    "scrubaudio": true,
    "scrubtext": true,
    "rules": [
        {
            "name": "Person",
            "active": true,
            "mask_type": "Placeholder",
            "setting": "[NAME]",
            "real_time": true
        }
    ]
}

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: Hello. This is [NAME] welcome to that until this is [NAME] from the customer service department how can I be of help.
CLIENT: Hi, [NAME], my name is [NAME] and I am a little bit confused about something that I saw on my account.
AGENT: Who [NAME] just hold on I 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: 657080021.
AGENT: And current address please.
CLIENT: 11 north Pennsylvania avenue Morris Seville Tennessee.
....
entities

Retrieves the requested project from the cache

get
Query parameters
sidstringOptional

The character string that uniquely identifies the project.

typestringOptional

The type of project. Options: 'realtime' or 'batch'

Default: realtime
Responses
200
Returns the project cache information
404
Unable to return cache for the selected project
500
Internal server error
get
GET /system/cache HTTP/1.1
Host: 
Accept: */*

No content

  • Create Project
  • Publish Redaction Project
  • Confirm Project Configuration
  • GETRetrieves the requested project from the cache