Need help in making a bot, that will connect to Anthropic claude.ai and answer some questions. BAsically I need to feed some documents to claude.ai and get data from the documents.
Tried using Document understanding, but ,y documents are pdf/or doc resumes which are unstructured, each resume’s headers, placements are all different.
I have worked on UiPath bots with file systems, excel, but ne experience doing API calls.
Need help in making a bot, that will connect to Anthropic claude.ai and answer some questions. BAsically I need to feed some documents to claude.ai and get data from the documents.
Tried using Document understanding, but ,y documents are pdf/or doc resumes which are unstructured, each resume’s headers, placements are all different.
I have worked on UiPath bots with file systems, excel, but ne experience doing API calls.
@Anil_G I have started with approach- using Anthropic Claude connector, but not able to setup properly to read resume document
My connection with Anthropic Claude connector is setup.
2.I am looping through a folder to read resumes pdf/doc one by one
Calling Anthropic Generate Text activity to give prompt to Claude model.
But I am not able to figure out how to send my resume file in the prompt correctly .
As my output say ;not ale to find resume file.
attaching my code screenshot for reference
You can’t send a file using that activity. Activities - Generate Text Completion
Generate text completion will just take a string input (your prompt) and then generate something as an output.
What you’re doing now is just sending the file name in the prompt.
“Extract first name, last name, gender, and email from the resume: MyResume.pdf”
To use that activity you would have to extract the text from the document and then feed it into the prompt.
@sven.wullum1@Anil_G .thanks, I too figured I need to send only text in prompt. For that, now i am using - Extract PDF text activity first, convert my pdf to text and then sending this text in my prompt.
Worked that way.
Thanks for the help