Hi,
Is it possible to call azure form recognizer endpoint from A360 bot? Have any of you tried it? I see a document available with few info. But, I would like to know more. Kindly suggest
Hi,
Is it possible to call azure form recognizer endpoint from A360 bot? Have any of you tried it? I see a document available with few info. But, I would like to know more. Kindly suggest
Hi,
Yes we can call the Azure Form recognizer by using Curl Post command to upload the document and then Rest Get command to download the results.
Create a CurlPost.bat file and log the below text to it.
curl -i -X POST "$EndPoint$$ModelName$:analyze?api-version=2022-xx-xx" -H "Content-Type: application/pdf" -H "Ocp-Apim-Subscription-Key: $SubscriptionKey$" --data-binary @"$InputFilePath$" --ssl-no-revoke | Clip
Replace the String variables with actual values.
Once the file is created, execute the file using Open program file action. A requestID would be generated in the output. This ID will be passed in the Get command next to retreive the output.
To get the extracted results, use the below GET command:
$EndPoint$$ModelName$/analyzeResults/$RequestID$?api-version=2022-xx-xx
Provide the ‘Ocp-Apim-Subscription-Key’ in header.
It will return the extracted output in JSON format.
Thats one of the solution we implemented. Give it a try.
Thanks,
Sagar
How to fetch the request ID after calling the bat file throgu open program file command
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.