Skip to main content
Triggered when the AI determines that a function call is needed during the conversation. Handle this event to execute external API calls, query knowledge bases, or integrate with external systems.

Event Properties

string
Event type. Always "realtime.response.function_call_arguments.done" for this event.
object
Event data object containing function call information.
string
JSON string containing function call parameters.Example: "{\"userInput\": \"What's the weather in Beijing?\"}"
string
Unique identifier for this function call.Example: "call-123456"

Usage Example

Send realtime.function_call_output when you want the AI to continue the conversation using the function result. Set data.reply to "1" to trigger the follow-up response. If the function call only triggers external business logic and no follow-up AI response is needed, you can skip this return step.