You need to sign in to do that
Don't have an account?
Aarthy Kumaravel
Need help with Einstein Language Intent
Hi, I tried the CURL commands for Einstein Language Intent following the examples in https://metamind.readme.io/ for uploading datasets, training them and predicting and they worked just fine in bash Terminal. However, I'm unable to find the method in HttpRequest class in Apex to replace -F in curl commands like in the example
curl -X POST -H "Authorization: Bearer <TOKEN>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "path=http://einstein.ai/text/case_routing_intent.csv" -F "type=text-intent" https://api.einstein.ai/v2/language/datasets/upload
Please help me implement Language Intent.
curl -X POST -H "Authorization: Bearer <TOKEN>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "path=http://einstein.ai/text/case_routing_intent.csv" -F "type=text-intent" https://api.einstein.ai/v2/language/datasets/upload
Please help me implement Language Intent.
https://github.com/MetaMind/apex-utils
Please give it a try and let us know if you have issues.