Type: NLP Worker
A Einstein worker takes user input and sends it to Einstein bot for natural language processing. A Einstein worker can be created through the CLI, or through portal.
Once you have this information, you can derive the details which will be required for creating a Einstein worker:
Save this json to a file and create a worker using the cli command sb-cli worker create file.json
{
"Data": {
"NluConfiguration": {
"AccountId": "email@accountdomain.com",
"PrivateKey": "srn:vault::ORGANIZATION:secret:einsteinprivatekey",
"Url": "https://api.einstein.ai",
"ModelId": "UTE887DhD88DF8DFDALOUD",
"NluConfidenceThresholdOverride": 0.8
},
"NluType": "Einstein"
},
"Organization": "ORGANIZATION",
"Config": {
"Avatar": "default-bot"
},
"Enabled": true,
"Updated": 1608652074324,
"Description": "Einstein worker",
"Id": "4685b16c-a305-4b0c-b33d-8ae12b81ff9a",
"Type": "nlp-worker",
"Name": "EinsteinWorker",
"Created": 1608652074324,
"Status": "published",
"Srn": "srn:botnet:REGION:ORGANIZATION:worker:4685b16c-a305-4b0c-b33d-8ae12b81ff9a"
}
Once you have created the worker using the CLI, it will return an ID for you. You need to then update/create a bot and place the worker at the top with the id and the type of nlp-worker
You can create a Einstein worker using portal by navigating to your bot, and clicking on the resources
tab.
Add Resource
Einstein Worker
and then click Next
.