hey, im trying to make a api request
# office-hours
d
hey, im trying to make a api request tool to get a pdf from the page in the picture, im not sure on how to doi it but in my head i would make the agent ask the name of the medicine and the amount (example 1000 mg) so i can search it in this search box on the page and retrive a pdf that the agent could read for the client. If anybody can help with this i would appreciate it very much. https://cdn.discordapp.com/attachments/1228667357849849856/1458880788929052885/image.png?ex=6979a3dc&is=6978525c&hm=1b810f8de0ae83e9ac5d31daf518c1482ade20255158eb43e98df26c893ad6c3&
c
depending on how the site is built, that presumably is just a web form. You could observe the underlying request that happens in your network tab, and then make the same request programatically via a tool call it may have CSRF protection which makes it a bit more nuanced, but at the end of the day, it is an HTTP request to some server that you can mirror
d
how do i observe that, can i do it manually and look at the netwrk tab above or?
i get this when i try that
so i dont see the querry
d
understandable, im trying exactly that right now but will see if i get anywhere
turns out i cant do it directly, so ill just have to make my own backend (server-to-server)
a
Maybe, i can help you
d
I would be greatful