-
Douglas_JerumAsked on March 4, 2025 at 12:03 PM
I am trying to set up an API tool with an agent I'm building and having no success reaching the api endpoint with the api tool. The curl request and response are both empty. Any guidance would be appreciated. The URL for the endpoint and the Authorization header are valid as I've tested the successfully using a python script in a terminal.
-
Keenly JotForm SupportReplied on March 4, 2025 at 2:04 PM
Hi Douglas_Jerum,
Thanks for reaching out to Jotform Support. I'll need a bit of time to look into this. I'll get back to you as soon as I can.
In the meantime, let us know if you have any other questions.
-
Douglas_JerumReplied on March 8, 2025 at 8:54 PM
Hi, any update on this? Does the api tool work generally?
-
Keenly JotForm SupportReplied on March 8, 2025 at 9:44 PM
Hi Douglas_Jerum,
Could you share the complete API endpoint URL and the Authorization header value you used for this API request? I will use the details to do some testing on our end.
As soon as we hear back from you, we can move forward with a solution.
-
Douglas_JerumReplied on March 8, 2025 at 10:04 PM
Hi, I've now been able to connect to the endpoint but my api tools keep getting corrupted.
https://api.mysportsfeeds.com/v2.1/pull/nba/players.json
Authorication: Basic NmJiYjEzOGEtNWNhZi00MmU0LWE2NzAtNTAzZGJmOk1ZU1BPUlRTRkVFRFM=
you can find optional keys here:
https://www.mysportsfeeds.com/data-feeds/api-docs/
The other issue i seem to have is the ai value prompt doesnt seem to work.Thx!
-
Keenly JotForm SupportReplied on March 8, 2025 at 10:56 PM
Hi Douglas_Jerum,
Upon testing to send an API request using the details you provided, I was also able to connect to the endpoint and get responses. Could I ask for more details about your API tools getting corrupted? Did this cause you any difficulties in sending API requests or interacting with external APIs?
After we hear back from you, we’ll have a better idea of what’s going on and how to help.
-
Douglas_JerumReplied on March 8, 2025 at 11:13 PM
Yes, the agent makes the api call but says she can’t answer my question. Then if I go to the api tool page for the agent I get ‘oops something is wrong’. If I refresh the page I can see the tool and it says undefined:undefined.
if I put a predefined response in the api tool that will work. The issue seems to be either info is taking too long to be returned from api to the agent before it times out or the information is coming back in a way the agent can’t process?
-
Keenly JotForm SupportReplied on March 8, 2025 at 11:20 PM
Hi Douglas_Jerum,
To avoid confusion, I've gone ahead and created a separate thread on the issue about the value prompt that seemed not to be working. Check my responses here.
Let us know if you have any other questions.
-
Keenly JotForm SupportReplied on March 9, 2025 at 12:22 AM
Hi Douglas_Jerum,
Could you share a screen capture of the updated API endpoint, HTTP Headers, and Request Data query parameters when creating this API request, and a screencast showing the interaction with the agent and the error encountered when checking the API tools? You may use any of your available cloud storage services. Make sure to set permission so we can access the files. We need these to look further into it and move forward to a solution.
Thanks for your patience and understanding, we appreciate it.
-
Douglas_JerumReplied on March 9, 2025 at 11:07 AM
here are the settings for an ai generate value prompt and a screen recording of the result and the settings for a static value config and the result.
https://drive.google.com/file/d/1YEfoPRSUiA5rdemF7DszgKe8f4Lhf--K/view?usp=sharing
https://drive.google.com/file/d/1oDYGmyH64RYPR6PNMND4QwajmhSVXY5Z/view?usp=sharing
-
Keenly JotForm SupportReplied on March 9, 2025 at 3:54 PM
Hi Douglas_Jerum,
It seems that the screen captures and screencast shared in this thread may be intended for your other thread on value prompts. You may want to check the thread's recent update here. Do you still encounter the issue on your API request that keeps on getting corrupted? Could you share the screencast showing the issue?
Thanks for your patience and understanding, we appreciate it.
-
Douglas_JerumReplied on March 9, 2025 at 4:13 PM
Hi, I think i may have mixed some up, but I guess you have a full picture of my situation lol. I have not had another agent get corrupted again, but i think that is because i have the agent set up at the moment only using static values, so it only gets called if i ask for the name of the one player i have in the static values.
as a workaround for the api issues i've provided the agent with spreadsheets of some of the data i am hoping to pull from the api while you all work on the issue. Thx!