ChatGPT · Arazzo Workflow
ChatGPT Create and Poll a Response
Version 1.0.0
Create a stored response and poll it until generation completes.
View Spec
View on GitHub
AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtimeArazzoWorkflows
Provider
Workflows
create-and-poll-response
Create a Responses API response and poll until it reaches a terminal status.
Creates a stored response from a text prompt, then retrieves it by id and loops while the status is in_progress. Once the response settles it routes to a completed, failed, or incomplete terminal step.
1
createResponse
createResponse
Submit the prompt to the Responses API as a stored response so it can be retrieved by id while it generates.
2
pollResponse
getResponse
Retrieve the stored response by id. Repeats while the status is still in_progress and then branches on the terminal status.
3
returnCompleted
getResponse
Retrieve the settled response once more to capture the final generated text and token usage for a completed run.
4
returnIncomplete
getResponse
Retrieve the settled response to capture the failure error object or the reason the response is incomplete.