Webhooks & events
Local development
Test custom function endpoints running on your own machine.
Expose your local server
Katexs can only call public HTTPS URLs, so use a tunnel during development:
# Start your server on port 3000, then in another terminal:
npx cloudflared tunnel --url http://localhost:3000
# or
ngrok http 3000Copy the HTTPS URL the tunnel prints into the function's server URL, adding your secret path, then save the agent.
Test without calling
Use Test tool in the agent's Functions tab. It sends the same envelope as a live call with sample arguments, and shows your response, status and latency.
Then test live
Call the agent and trigger the function in conversation. Check your server logs and the call's transcript to confirm the agent spoke your result.
Warning
Remove tunnel URLs before going live. A tunnel that stops running makes every call that uses the function fail.
Last updated November 2026 · Found a problem? Email support@katexs.com
