AI integration service
OpenAI Responses API integration, from first build to full migration
The Responses API is now the main way to build on OpenAI, and teams on the Assistants API need a plan to move. My OpenAI Responses API integration work covers new applications and migrations of existing ones: streaming, function calls, built-in tools, MCP connectors and conversation state. I wrote a detailed, practical migration guide with Next.js and Node examples, and I bring the same patterns to your codebase.
Discuss your integrationWhat changed, in plain terms
With the Assistants API you created threads, added messages, started runs and polled until they finished. The Responses API replaces that with a simpler model: you send input items and receive output items, usually as a stream of events. Tools are first-class, and state can be managed with the Conversations API or by chaining calls with previous_response_id.
In practice the mapping looks like this:
- Threads and messages become Conversations plus
responses.create()with input items. - Runs and polling become streaming responses with streamed tool calls.
- Function calling becomes function tools, with the same JSON Schema and a better streaming experience.
- File and image attachments become input items such as
input_text,input_fileandinput_image. - Vector store file search becomes the File Search tool.
- Third-party APIs can be reached through connectors, which use MCP.
I cover every step with code in my Assistants API to Responses API migration guide. If you are still deciding whether to move, the comparison page on Assistants API vs Responses API is a quicker read.
What I build on the Responses API
Streaming that feels instant
Users should see text as soon as the model produces it. I build server routes that stream Responses events to the browser and a client hook that handles them: text deltas go straight to the UI, while tool calls are buffered and routed. In Next.js this usually means a route handler on the server and a small React hook on the client, with no secrets in the browser.
Function calls, including parallel ones
When the model decides to call your functions, the arguments arrive in chunks. My pattern accumulates them per call_id, runs your handlers when the arguments are complete, executes independent calls in parallel, and then resumes the same turn with the results so the model can finish its answer. Tool schemas are kept strict, and outputs are validated and capped in size so a large payload cannot break the stream or the UI.
Built-in tools
The Responses API includes hosted tools you can switch on per request:
- Web search for current information.
- File search for retrieval over files you have uploaded.
- Image generation with
gpt-image-1. - Code interpreter for sandboxed Python and data work.
I help you decide which ones are worth enabling, since some, like web search, have their own per-call costs.
MCP connectors
Connectors let the model use third-party services through the Model Context Protocol. I add them only when a user has opted in and a valid token exists, set the approval policy to match how sensitive the data is, and make sure tokens and personal data never end up in logs.
Conversation state
For durable threads and analytics I use the Conversations API and store the conversation IDs. For lighter use I chain turns with previous_response_id. On a migration, I map old thread IDs to new conversation IDs so existing users keep their history.
Audio
Where your product needs it, I add transcription with Whisper or the newer GPT-4o transcribe models, either from uploaded files or in real time.
Migrating from the Assistants API
A migration should not break your product for a week. My approach:
- Inventory every place the app touches assistants, threads, runs, files and vector stores.
- Replace runs and polling with a streaming Responses route, behind a flag where possible.
- Rebuild the streaming hook around Responses events and parallel tool execution.
- Migrate threads to Conversations and save the ID mapping.
- Convert attachments into input items, generated on the server from stored file IDs.
- Register tools and connectors, with approval rules and safe defaults.
- Harden with retries, timeouts, stream cleanup and fallbacks, then switch traffic over.
One practical detail that catches teams out: the OpenAI Cookbook notes that GPT-5 in the API does not format final answers in Markdown by default, so if your UI expects Markdown you need to ask for it in your instructions.
Why work with me
OpenAI Responses API integration is one of the core services I offer: building complete AI applications on it, not just wiring up a single call. Since 2023 I have focused on AI engineering, building RAG pipelines, chatbots and enterprise AI applications with OpenAI, Gemini and Claude, and I am a Google Certified Generative AI Leader (2026). I also have 14+ years of software engineering behind me, so the integration fits cleanly into your existing architecture. Understanding the model helps too: my article Inside the Black Box explains tokenization and inference, which directly affect cost and latency.
If your goal is a chatbot that answers from your own documents, see RAG chatbot development. If you need the integration inside a larger web app, see Next.js development.
How to start
A good OpenAI Responses API integration starts with knowing what you already have. Share what you have today (Assistants API, Chat Completions or nothing yet) and what you want the product to do. I will reply with a short plan and an estimate. Contact me here.
Frequently asked questions
Is the Assistants API going away?
OpenAI's migration guidance points developers toward the Responses API, which now covers what Assistants did with a simpler model. If you have a production app on Assistants, planning the migration early is safer than rushing it later. Check OpenAI's current documentation for exact timelines.
Do I need the Conversations API or is previous_response_id enough?
Use Conversations when you want durable threads and analytics. Use previous_response_id for lightweight chaining of turns, keeping in mind it only carries forward what you keep chaining.
How do hosted tools differ from my own function tools?
Hosted tools such as web search, file search, image generation and code interpreter run on OpenAI's infrastructure and are switched on in the tools list. Function tools are your own JSON Schema functions that run in your environment, and your code returns their results to the model.
Can you migrate our app without downtime?
That is the goal of how I plan migrations: a new streaming route built alongside the old one, conversation IDs mapped, and traffic switched over once it is tested. The exact plan depends on your architecture, which I review first.
Let's talk about your project
Software Architect, AI Native. Google Certified Generative AI Leader with 14+ years of experience.
Discuss your integration