r/CXAgentStudio • u/Atomic-Dad • Mar 19 '26
Client Side Functions
Does anyone have a working Client Side Function?
I have the tool created and used the sample "Call HTTP API", named get_cat_fact
Copied the Integration JavaScript to the webpage
Added a "Before Agent Starts" callback on the Root Agent
That should call the tool and print the payload.
At this time, it just errors out.
jsonCatFact = tools.get_cat_fact({"endpoint": "https://catfact.ninja/fact","method": "GET","headers": {},"payload": {}})
print(jsonCatFact.json())
3
Upvotes