This webhook is triggered when an agent makes a function call.

Payload

NameTypeDescription
dial_idstringThe ID of the dial this function call is associated with.
paramsobjectObject containing the function call parameters.
params.argsobjectArguments passed to the function call.
dialDialThe dial that triggered the function call.

Example Message

{
    "dial_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "dial": {
        ...
    },
    "params": {
        "args": {
            "name": "John Doe"
        }
    }
}