Skip to main content
Use functions to check stock, pull an order from your CRM, look up a customer, or update another system while the caller is on the line. Functions are available on flow agents.

1. Define the function

Open the agent’s settings and go to the Functions section. Add a function and fill in: Click Test to send a real request with sample values before any node uses the function.
Editing a function changes every node that uses it.

2. Call it from a Function Call node

1

Add the node

Add a Function Call node to the flow and choose the function.
2

Fill in the inputs

For each parameter, enter a fixed value or a [variable] collected earlier in the call.
3

Save response fields

Under Store Return Values, map response fields to variables for later nodes. Leave a field unset to skip it. See Variables.
4

Connect both branches

Route Success and Error to the right next steps.
You can use the same function in as many nodes as you like.

Success and error

Success means a 2xx response. The node takes Error on a 3xx, 4xx or 5xx response, a timeout, a network failure, a 2xx response that isn’t valid JSON, or a response field that doesn’t match its declared type. Always connect the Error branch to something the caller hears, such as an apology or a transfer.

In the transcript

Each call to a function adds two system rows. The request row shows the method, URL and body. The result row shows the status, response, extracted variables and duration, plus an error code if it failed. Expand them to debug an integration without reading server logs.

Security

  • Common secret headers (such as Authorization and X-Api-Key) and secret-looking query parameters are shown as [REDACTED] in transcripts and the API. The real values are still sent to your endpoint.
  • Header values are stored as plain text in the agent’s configuration, not encrypted. Use a dedicated key with the smallest permissions your endpoint allows, and rotate it if needed.
  • Requests to private or internal network addresses are blocked. Responses are capped at 1 MB.