DTMF Tool is not passing the Variable

I’m facing a weird issue where the dynamic variable isn’t passing and isn’t being read by the DTMF tool. It works if I pass it as a number, but it’s hit or miss. I’m using a string type to instruct the prompt to add the pound (#) symbol required for Google Meet dial-in, but it still won’t work. It worked once, but I can’t figure out what caused it to work that time. I’ve submitted the working log, screenshots of the config, and the logs of the successful call that now doesn’t work.
const callConfig = {
        "workflowId": "e7de2cd0-5ff8-4a32-8247-8e9e469a3802",
        "phoneNumberId": "983a06ff-4d81-41cb-9f3b-219af4322427",
        "customer": {
            "number": phoneNumber
        },
        "assistantOverrides": {
            "variableValues": {
                "PIN": pinWithHash
            }
        }
    };

Making VAPI Call with DTMF as First Node
============================================
Calling: +14434025957
PIN: 304722564# 
Flow: Call connects → DTMF tool fires immediately → Dials 304722564#
Call ID: 35d7fa3a-c7cc-4c83-a77e-5bd8eb833858

dtmf_tool: f92b5cd0-2832-46bb-99fc-178b9318062c

{
  "id": "f92b5cd0-2832-46bb-99fc-178b9318062c",
  "orgId": "b45b6bc1-9635-4529-9995-88e9c8133c8f",
  "function": {
    "name": "dtmf_tool",
    "description": "Please pass the PIN that is provided to you ",
    "parameters": {
      "properties": {
        "PIN": {
          "type": "string",
          "description": "CRITICAL: Use the exact PIN value from workflow variables. This PIN must be dialed immediately. Expected format: digits followed by #. Do not leave empty."
        }
      },
      "required": [
        "PIN"
      ],
      "type": "object"
    }
  },
  "type": "dtmf"
}

Working state:
{
  "role": "tool_calls",
  "toolCalls": [
    {
      "id": "dcee1d97",
      "type": "function",
      "function": {
        "name": "dtmf_tool",
        "arguments": "{\"PIN\": \"623444858#\"}"
      }
    }
  ],
}
Screenshot_2025-07-24_at_1.04.19_AM.jpg
Screenshot_2025-07-24_at_1.09.46_AM.jpg
Screenshot_2025-07-24_at_1.10.35_AM.jpg
Was this page helpful?