The Runchat API node has four basic inputs to form an http request: url, method, header and body. If you want to work with query strings, these can be passed in the request url but it is more convenient to build a wrapper to allow us to set them parametrically.
https://www.runchat.app/editor?id=b3a29dde-6503-45b1-9342-544600813130
The Runchat above demonstrates how we can use the Code
node to format a base url and set of key value pairs as a query string. This code was generated automatically with Runchat - you can see the prompt that was used if you scroll down in the Code
node:
Convert the url and params object to a url query string.
We can then pass the output string directly to our url
input of the API
node, and flag ⚡
all of the input and output parameters that we want exposed in our tool. We can now add this Runchat to a library and use it just like a regular API
node, albeit with slightly different parameters: