Purpose
Start a fresh ChatGPT conversation without signing in, submit caller-provided German prompts, and record each corresponding assistant answer. The caller may request any number of answers; seven is supported as the incumbent default, and shorter conversations are also valid.
When to Use
Use when the caller needs a fresh, logged-out conversation on chatgpt.com and wants a specified number of assistant responses recorded. Keep the conversation in German by using German prompts; no separate language setting is required.
Workflow
- Navigate directly to
https://chatgpt.com/without attempting to log in. - If a cookie or consent overlay blocks the composer, dismiss
button[data-testid='close-button']when present; otherwise use the visible Reject/Accept control, orbutton[aria-label='Close']when that is the available close control. Do not continue until the composer is usable. - For each caller-provided prompt, type into the first available composer among
div#prompt-textarea,textarea[name='prompt-textarea'], andtextarea#mobile-composer-prompt. Submit by pressing Enter or using the enabledbutton#composer-submit-buttonwhen present. If that control is unavailable, use the enabled send control identified by its accessible label or currentdata-testid;button[type='submit']may be used when it is the page's active composer submit button. Wait until the new assistant message finishes before sending the next prompt. - After the requested number of responses is complete, run this evaluator on the current conversation page:
(() => {
const answers = [
...document.querySelectorAll('[data-message-author-role="assistant"]'),
]
.map((node) => (node.innerText || node.textContent || "").trim())
.filter(Boolean);
return { answers, count: answers.length };
})();- Return the answers in chronological order. Because this is a fresh conversation, the extracted assistant nodes correspond to the submitted prompts. If the count is lower than requested, report the observed count rather than fabricating missing answers.
Site-Specific Gotchas
- ChatGPT may show a consent overlay even while logged out; it can intercept the composer until dismissed.
- The overlay close control has appeared as
button[data-testid='close-button']andbutton[aria-label='Close']; inspect only these known close controls rather than clicking an arbitrary button. - The composer has appeared as
textarea[name='prompt-textarea'],div#prompt-textarea, and the mobile composertextarea#mobile-composer-prompt; support all three selectors. - The current send control may be addressed directly as
button#composer-submit-button; otherwise prefer the enabled control identified by its accessible label or currentdata-testid.button[type='submit']is a fallback only when it is visibly the active composer submit control. - Assistant messages are structurally marked with
data-message-author-role="assistant"; extract only those nodes, not all rendered text, citations, or user messages.
Expected Output
An object with this shape, where the array contains one answer per submitted prompt: { "answers": ["<assistant answer 1>", "<assistant answer 2>", "..."], "count": <number of extracted answers> }.