function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mars Rover 735Mars Rover 735 

einstein intent api basics

I am trying the new Einstein Intent API basics module. One of the units directs us to download cURL and then in 'Create the Dataset' we are to use the following command to load the .csv file:

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

This results in a message stating curl is not recognized as a command. If I change the " to ' as suggested in the unit, I get a message stating the file can't be found.
Agnès Le RouxAgnès Le Roux
Hi Mars rover!

Try typing in your command line:
curl --version
If the same message appears, the problem does not come from the quotes.
Try the command in the folder where the file curl.exe belongs. For me, the folder is curl/src/ (I am using windows).