Answer: Instead of sending a single prompt string, you send a list of message objects as your input, where each message has a role and usually content. For example, 'prompt' : 'tell me a joke' becomes 'messages': [{'role':'user', 'content':'tell me a joke'}]. Status: Confirmed Entry: tool/chatgpt/features/prompt-to-messages-format Revision: 3 Digest: sha256:530d7724cd838309 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:14:53Z Last changed: 2026-11-19T11:52:50Z (example conversion: — → 'messages': [{'role':'user', 'content':'tell me a joke'}]) Last verified: 2026-11-20T11:55:08Z Next check: 2026-11-21T11:55:08Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of conversion method | you send a list of message objects as your input | [1] | 2026-11-20 message structure | Each message has a role and usually content. | [1] | 2026-11-20 example conversion | 'messages': [{'role':'user', 'content':'tell me a joke'}] | [1] | 2026-11-20 common roles | system, user, assistant, developer, and tool | [1] | 2026-11-20 Sources: [1] OpenAI. "Moving from Completions to Chat Completions in the OpenAI API". https://help.openai.com/en/articles/7042661-moving-from-completions-to-chat-completions-in-the-openai-api Role: primary. Accessed: 2026-11-20T11:55:08Z Retrieved via: DeepSeek Fetch API (Markdown conversion; the original server response was not captured) Quote: "Instead of sending a single prompt string, you send a list of message objects as your input." (Supports: conversion method) Quote: "Each message has a role and usually content." (Supports: message structure) Quote: "'prompt' : 'tell me a joke' | 'messages': [{'role':'user', 'content':'tell me a joke'}]" (Supports: example conversion) Quote: "Common roles include system, user, assistant, developer, and tool." (Supports: common roles) Snapshot SHA-256: c3a4b8656280d1f2f83028d8e965422bfe2c8167a5c6fc9c595c7a80cad5fd87 (captured 2026-11-19T11:52:52Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. [1] was retrieved through the DeepSeek Fetch API because a direct request did not return usable content. On this check the text of [1] was unchanged since 2026-11-19T11:52:50Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T11:55:08Z. No independent second source is configured for this entry Last successful check: 2026-11-20T11:55:08Z Last attempt: 2026-11-20T11:55:08Z Notes and limitations: Extracted automatically from a single official source (section "Prompts to messages"). Related: https://latestn.com/tool/chatgpt/features/publish-site-update How do I publish an update to a ChatGPT site? https://latestn.com/tool/chatgpt/features/quick-chat What is Quick chat in ChatGPT and when should I use it? https://latestn.com/tool/chatgpt/features/record-replay-requirements What are the requirements to use Record & Replay in ChatGPT or Codex? https://latestn.com/tool/chatgpt/features/plugin-prompts-writing-communication What are some example ChatGPT plugin prompts for writing and communication tasks? https://latestn.com/tool/chatgpt/features/present-or-export-deck How do I present or export my ChatGPT Slides deck? https://latestn.com/tool/chatgpt/features/projects-versions-deployments What are projects, versions, and deployments for a ChatGPT site? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T11:52:50Z | changed | example conversion: — → 'messages': [{'role':'user', 'content':'tell me a joke'}] | [1] 2026-11-19T11:52:50Z | changed | example after: 'messages': [{'role':'user', 'content':'tell me a joke'}] → — | [1] 2026-11-19T11:52:50Z | changed | example before: 'prompt' : 'tell me a joke' → — | [1] 2026-11-18T11:52:43Z | recovered | Check succeeded again | — 2026-11-18T11:52:43Z | changed | example after: — → 'messages': [{'role':'user', 'content':'tell me a joke'}] | [1] 2026-11-18T11:52:43Z | changed | example before: — → 'prompt' : 'tell me a joke' | [1] 2026-11-18T11:52:43Z | changed | example conversion: 'messages': [{'role':'user', 'content':'tell me a joke'}] → — | [1] 2026-11-17T11:55:54Z | check-failed | Could not fetch the primary source: http 403; fallback: deepseek-fetch http 404: failed to fetch URL (request_id: a0a087dd-ebb0-47ee-870a-a6c35702d273) | — 2026-11-13T03:14:53Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/chatgpt/features/prompt-to-messages-format/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/chatgpt/features/prompt-to-messages-format POST: https://latestn.com/dispute/tool/chatgpt/features/prompt-to-messages-format with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/chatgpt/features/prompt-to-messages-format?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I convert a prompt into messages for the OpenAI Chat Completions API? Revision 3, last verified 2026-11-20T11:55:08Z. https://latestn.com/tool/chatgpt/features/prompt-to-messages-format (accessed 2026-11-21T10:06:52Z). @misc{LatestN_tool_chatgpt_features_prompt_to_messages_format_r3, title = {How do I convert a prompt into messages for the OpenAI Chat Completions API?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/chatgpt/features/prompt-to-messages-format}}, note = {Revision 3; digest sha256:530d7724cd838309; last verified 2026-11-20T11:55:08Z; accessed 2026-11-21T10:06:52Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/chatgpt/features/prompt-to-messages-format