conversation.connected.success and after you send the realtime.input_config message. After receiving this event, you should send conversation history (if any) using conversation.item.create messages.
Event Properties
Event type. Always
"realtime.session.created" for this event.Event data object. May be empty or contain session metadata.
Sending Conversation History
After receivingrealtime.session.created, send conversation history (if any) using conversation.item.create messages. Only send user messages from history:
Session configuration (voice, prompt, tools) is sent via
realtime.input_config message immediately after the WebSocket connection opens. The sendSessionUpdate() function is only used to send conversation history after receiving realtime.session.created.The tools parameter is optional and only applicable when using OpenAI models (gpt-realtime, gpt-realtime-mini). Function calling is not supported by other AI models.