# Send a Prompt for a structured response — OpenAI ChatGPT Botize method — `chatgpt.completion_as_data` (action). Send a Prompt to GPT along with descriptions of each desired data field to get a structured response. This is an action: it runs as a step of a task. Several can be chained. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `mb_switch` *(boolean)* — Rules - `system_content` *(string)* — System message - `developer_message` *(string)* — Developer message - `user_content` *(string)* — Prompt or User message - `model` *(string)* — Model - `web_search_preview` *(boolean)* — Allow model to search the web for the latest information before generating a response - `uid_session` *(string)* — Unique identifier for the user - `reasoning_effort` *(string, one of: "" = Medium: Default; "minimal" = Minimal: Produces very little reasoning (only in GPT-5 Nano, GPT-5 Mini, GPT-5); "low" = Low: Favored speed and fewer tokens; "medium" = Medium: Default balance; "high" = High: Favored more thorough reasoning; "xhigh" = Extra high: Reasons more than High (only in GPT-6 Astra); "max" = Maximum: The most thorough reasoning available (only in GPT-6 Astra))* — Reasoning effort - `temperature` *(string, one of: "1" = 1: Default; "0.9" = 0.9: Creative applications; "0.8" = 0.8; "0.7" = 0.7; "0.6" = 0.6; "0.5" = 0.5; "0.4" = 0.4; "0.3" = 0.3; "0.2" = 0.2; "0.1" = 0.1; "0" = 0: well-defined answer)* — Temperature - `max_tokens` *(string)* — Max Tokens to use - `json_text_format` *(string)* — JSON Text Format It also accepts repeatable field groups, with these prefixes: `mb_filters_*`, `tagname_counter_*`, `tagname_*`, `tagtitle_*`, `tagtype_*`, `tagenum_*`, `tagdesc_*`, `tagrequired_*`. These are composite components (buttons, filters, keyboards); the trailing number is set by the user as they are added. ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{raw_response}}` *(text)* — Raw Response. Unprocessed or raw response generated by the GPT language model. e.g. "1":"red"} - `{{finish_reason}}` *(text)* — Finish reason. reason why the resulting text has terminated. e.g. lenght - `{{prompt_tokens}}` *(int)* — Prompt tokens. Number of tokens in the Prompt. 1 token ~= 4 chars in English - `{{completion_tokens}}` *(int)* — Completion tokens. Number of tokens in the Completion. 1 token ~= 4 chars in English - `{{total_tokens}}` *(int)* — Total tokens. Prompt tokens + Completion tokens ## Account Needs a connected OpenAI ChatGPT account in Botize: https://botize.com/en/app/chatgpt/authenticate ## This app Every trigger and action for OpenAI ChatGPT: https://botize.com/en/app/chatgpt.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/chatgpt/completion_as_data