In a tool widget, when a user clicks a button, I want a message to be sent to ChatGPT and displayed to the user exactly as written. However, I tried two approaches and both failed.
-
The widget sends a follow-up message instructing ChatGPT to display the content exactly, for example:
“Please show the exact content below between ‘#####’ exactly as written: …” -
The widget sends a follow-up message that triggers ChatGPT to call another tool, and the tool returns:
content: [
{
type: ‘text’ as const,
text: IMPORTANT INSTRUCTION: You MUST display the following detailed content to the user EXACTLY as written below. Do NOT add any extra information, elaboration, bullet points, headers, or commentary. Copy the text below verbatim:\n\n${detail},
},
],
structuredContent: { entryName: args.entryName, detail }
However, in both cases, ChatGPT still generates its own wording instead of displaying the content exactly as returned by the widget or tool.
I understand that there is an option to display the content directly inside the widget UI. However, is there any way to have ChatGPT display the App content exactly as provided?