# Speeding up agentic workflows with WebSockets in the Responses API

DevFeed: [Speeding up agentic workflows with WebSockets in the Responses API](<https://devfeed.tech/articles/speeding-up-agentic-workflows-with-websockets-in-the-responses-api-6657.md>)

Original publisher: [Read original article](<https://openai.com/index/speeding-up-agentic-workflows-with-websockets>)

Published: 2026-04-22T10:00:00Z

Content type: article

Language: en

Sources: [OpenAI News](<https://devfeed.tech/sources/openai-news.md>)

Topics: [WebSocket](<https://devfeed.tech/topics/websocket.md>), [API](<https://devfeed.tech/topics/api.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Caching](<https://devfeed.tech/topics/caching.md>), [codex](<https://devfeed.tech/topics/codex.md>), [Inference](<https://devfeed.tech/topics/inference.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [api](<https://devfeed.tech/tags/api.md>), [caching](<https://devfeed.tech/tags/caching.md>), [codex](<https://devfeed.tech/tags/codex.md>), [deep-dive](<https://devfeed.tech/tags/deep-dive.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [inference](<https://devfeed.tech/tags/inference.md>), [latency](<https://devfeed.tech/tags/latency.md>), [llm](<https://devfeed.tech/tags/llm.md>), [performance](<https://devfeed.tech/tags/performance.md>), [responses](<https://devfeed.tech/tags/responses.md>)

## AI overview

This deep dive explains how OpenAI reduced end-to-end latency in Codex agentic workflows using the Responses API. WebSockets provide persistent connections, while connection-scoped caching, fewer network hops, and faster safety classification reduce API overhead and help users benefit from much faster model inference.

## Source excerpt

A deep dive into the Codex agent loop, showing how WebSockets and connection-scoped caching reduced API overhead and improved model latency.