#How to add "fire and forget" tool calls to eleven labs
1 messages · Page 1 of 1 (latest)
AI-generated Answer for kishore_vb
Short answer: Use a Client Tool and leave “Wait for response” unchecked. That makes the call non‑blocking (“fire and forget”)—the agent triggers your client-side function and immediately continues the conversation without waiting for a result.
How to do it (documented):
- Create a Client Tool in your Agent’s Tools section, define its parameters, and register it in your app via the SDK. Do not enable the “Wait for response” option. When that option is enabled, the agent pauses until your tool returns data; when it’s not, the call is non‑blocking.
- At runtime the platform emits a client_tool_call event with the tool name and parameters; your app executes the function. Because you didn’t enable “Wait for response,” the agent won’t block on a client_tool_result.
Notes and limits:
- The documentation explicitly describes the “Wait for response” behavior for Client Tools. There is no documented “fire‑and‑forget” toggle for Server (webhook) Tools; those are described for making authenticated API calls and (optionally) assigning responses to variables. If you need truly non‑blocking side effects, prefer Client Tools for this pattern.
I specifically want a fire and forget for webhook tools]