Workflow
Migrate Assistants and Chat Completions to Responses
Move stored Assistants state, adapt a Chat Completions parser and fix Python or n8n integration entry points.
Sources checked:
What you can do
Test a replacement Responses flow before switching production traffic.
Keep app behavior and identifier mapping explicit, then check the structured output, state and tool loops at your own entry point.
Build your execution checklist
Inputs are processed in this browser only and cleared when you close or refresh the page.
Your integration still expects an Assistant, Thread or Run.
Read the full steps
Migrate an Assistants workflow after retirement
Your integration still expects an Assistant, Thread or Run.
- Recover the behavior, tools and ordered history from your own records or migration artifacts. Record assistant and thread IDs used by callers.
- Store versioned behavior in code and map each legacy thread to a new Conversation or app-managed history. Pass tool results as function_call_output with the corresponding call_id.
- Run parity cases on a clean workspace: text, tools, failed tool, file access and continuation. Route verified calls to Responses and retain an old-to-new ID ledger.
Map a Chat Completions request to Responses
You are migrating one existing endpoint or client.
- Record model, message roles, tool definitions, structured output format and streaming consumers from the working request.
- Convert messages to input, tool definitions to Responses shape and structured outputs to text.format. Update text access and keep typed output items where meaningful.
- Run the old and new parser against text, function-call, refusal and incomplete fixtures. Verify state and policy behavior before changing traffic.
Fix Python APIRemovedInV1
An installed OpenAI Python SDK rejects openai.ChatCompletion.
- Read the version from the same Python interpreter that runs the app. Find the exact frame still calling openai.ChatCompletion.
- Instantiate OpenAI and use client.chat.completions.create for the equivalent chat call, or migrate the request/response shapes deliberately using Responses.
- Check a normal reply, empty or tool result, and exception handling. Verify the application lock file and runtime interpreter resolve the same SDK.
Migrate an n8n OpenAI node to Responses
Your flow uses an old Message a Model or Assistants node.
- Duplicate the workflow for testing and pin a sample input. Verify that the installed n8n version exposes OpenAI node V2.
- Select Generate a Model Response. If adding state, choose a Conversation ID or Previous Response ID, and adjust downstream paths for the actual node output.
- Run text, tool or error fixtures through downstream mapping. Switch the live workflow after these fields are confirmed.
Scope & limits
- Model availability and endpoint support depend on the actual provider. The checklist addresses OpenAI's documented API.
Verified sources
- Assistants migration guide
- Deprecations
- Migrate to the Responses API
- APIRemovedInV1: You tried to access openai.ChatCompletion, but this is no longer supported · Issue #987 · openai/openai-python · GitHub
- OpenAI Python API library
- OpenAI Text operations
Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.