Custom functions extend the agent beyond built-in actions. Define a function (name, description, parameters, your URL), and Claude can call it during the conversation — to look up customer records, check inventory, book appointments, anything.Documentation Index
Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Define the function on the agent
Tell Nixflex the function’s name, what it does, and what parameters it takes.
Claude sees it as a tool
During calls, Claude is aware of available functions and decides when to call them.
Engine calls your URL
When Claude triggers a function, the engine makes an HTTP POST to your webhook with the parameters.
Defining a function
When you create or update an agent, include afunctions array:
What your endpoint receives
When Claude calls the function, your URL gets a POST request:“Yes, Tuesday the 8th at 2pm is free — would you like me to book that for you?”
Common use cases
Calendar lookups
Check availability before promising a slot.
CRM record fetches
Pull customer history when they call.
Booking creation
Create the booking in your system once confirmed.
Inventory / stock checks
Verify a product is available before quoting.
Order status
“Where’s my order?” — look it up and reply naturally.
Payment links
Generate a Stripe checkout URL and text it via
[SEND_SMS:].Timing constraints
Your endpoint must respond within 3 seconds. Anything slower and the caller experiences awkward silence. If your endpoint times out or errors:- The engine tells Claude “function failed”
- Claude handles it gracefully (“I’m having trouble reaching the booking system, let me transfer you”)
- The error is logged on the call record
Authentication
Your endpoint should verify requests come from Nixflex. Each request includes a signature header:Mentioning functions in the prompt
Tell Claude when to use each function:Limitations
- Functions run on each turn as needed; there’s no streaming partial results back to Claude
- The engine doesn’t retry failed functions — your endpoint should be idempotent
- The total context window is finite; large function responses are truncated