+ Start a Discussion
Atif RazzaqAtif Razzaq 

Einstein Intent API: Missing File: case_routing_intent.csv

While doing trail: "Einstein Intent API Basics>Create the Dataset"

I executed following command replacing "<TOKEN>" on Mac.
curl -X POST -H "Authorization: Bearer <TOKEN>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-intent" -F "path=http://einstein.ai/text/case_routing_intent.csv" https://api.einstein.ai/v2/language/datasets/upload

I got following error: 
{"message":"Failed to download the dataset from the public URL."}

Please help and advise further.

SandhyaSandhya (Salesforce Developers) 

The .zip file URL isn't referenced using https. When creating a dataset from a .zip file in Apex, be sure that the URL is referenced using the https protocol and not http.

Refer below link which can help you.

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Best Regards
Atif RazzaqAtif Razzaq
Hi Sandhya

Thanks for the reply...I am not using APEX... I am simply running the curl command in terminal. I have tried running the command with http and https both but got the same error. Accessing 'http://einstein.ai/text/case_routing_intent.csv' in browser also throws an error.

I am referring to following trail:

Where fo I find the location of file: case_routing_intent.csv?