Noob struggling with API GET expressions

Describe the problem/error/question

I am trying to take user input such as “What is the reputation of IP 198.98.57.70” and do a GET request to VirusTotal API, then output the information.

The API is working if I define the IP address, but does not work if I try to feed user input into it such as https://www.virustotal.com/api/v3/ip_addresses/{ip}

The model output shows it is formatting the parameter successfully
",“parameters”:{“ip”:“198.98.57.70”}}

What is the error message (if any)?

The resource you are requesting could not be found.

HTTP request output shows
“method”: “GET”, “uri”: “https://www.virustotal.com/api/v3/ip_addresses/{ip}”,

What am I missing to get the IP in the chat trigger to replace {ip} in the API call?

Should be something like https://www.virustotal.com/api/v3/ip_addresses{{ $fromAI('IP', 'The IP Address to query', 'string') }}

2 Likes

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