Need help in making bot , which can call CLaude.ai

How to connect Bot to Claude.ai

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.




@goel.saloni

http request activity is what you need to use

for the api details you can check claud.ai site…

also first try the request in postman then you can directly import in UiPath activity that would be easy for debugging

cheers

@Anil_G I have started with approach- using Anthropic Claude connector, but not able to setup properly to read resume document

  1. My connection with Anthropic Claude connector is setup.
    2.I am looping through a folder to read resumes pdf/doc one by one
  2. 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

@goel.saloni

Prompt is for only text…file attachments cannot be done in prompt…

Based on what you gave the file location is passed but not file data

Cheers

Hi!

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.

See this use case from Anthropic:
Legal summarization - Anthropic

PDF seems to be in beta:
PDF support (beta) - Anthropic

@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

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.