+ Start a Discussion
Aarthy KumaravelAarthy 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.
Michael Machado 22Michael Machado 22
Hi Aarthy, We are working on further APEX documentation.  In the meantime, you can reference the Einstein Vision documentation for making APEX calls and update the URLs & V2 parameters for referencing language.  Link to code samples in docs are here: https://metamind.readme.io/docs/code-samples-and-learning-resources
JeanMarc SoumetJeanMarc Soumet
Aarthy we just added Apex example classes for Language:
Please give it a try and let us know if you have issues.
Aarthy KumaravelAarthy Kumaravel
Thanks a lot. I'm able to make successful calls and I'm getting the probabilities now.