"Couldn't get assistant" error when adding transferCall tool to assistant-request webhook response

Question:

I'm implementing call transfer functionality for inbound calls using the assistant-request webhook. When I include a transferCall tool in my assistant configuration response, the call fails with "Couldn't get assistant" error. Without the tool, the assistant works perfectly.

My Setup:
  • Using assistant-request webhook to dynamically create assistants for inbound calls
  • Assistant configuration works fine WITHOUT tools
  • Adding transferCall tool causes immediate failureCurrent Implementation (FAILING):{assistant: { name: "assistant", firstMessage: "Hello...", model: { provider: "openai", model: "gpt-4o", temperature: 0.5, messages: [ { role: "system", content: "You are an assistant. If the caller asks to speak to a human, use the transferCall function to transfer them." } ], tools: [ { type: "transferCall", destinations: [ { type: "number", number: "+1xxxxxxxxxx" } ] } ] }, voice: { ... }, transcriber: { ... }, endCallFunctionEnabled: true, clientMessages: ["transcript", "hang", "function-call", "speech-update","metadata", "transfer-update", "conversation-update"], serverMessages: ["end-of-call-report", "status-update", "hang"], phoneCallProviderBypassEnabled: false}}What I've tried:
  • Adding function, parameters, and messages fields to the tool → Still
    fails
  • Setting phoneCallProviderBypassEnabled: false → Still fails
  • Removing "function-call" from serverMessages → Still fails
  • Various tool structure combinations based on docs → All fail
  • Minimal structure (just type and destinations) → Still fails
Was this page helpful?