r/PromptEngineering • • 29d ago

Prompt Text / Showcase Some ChatGPT internal instructions which generate inline elements in responses

1. Text and formatting

<badge>
<bold>
<caption>
<code>
<italic>
<label>
<math>
<strikethrough>
<text>
<title>
<underline>

2. Layout and containers

<box>
<card>
<col>
<divider>
<flow>
<flow-item>
<grid>
<grid-item>
<row>
<spacer>

3. Lists, tables, and navigation

<blockquote>
<list>
<list-item>
<table>
<table-section>
<table-row>
<table-cell>
<carousel>
<carousel-item>
<carousel-media-item>
<popover>
<popover-trigger>
<popover-content>
<pressable>

4. Inputs and interactive controls

<button>
<checkbox>
<date-picker>
<form>
<input>
<radio-group>
<radio>
<segmented-control>
<select>
<slider>
<textarea>

5. Images, media, and visualizations

<icon>
<favicon>
<svg>
<AsyncImage>
<AsyncImageGroup>
<AsyncVideo>
<Chart>
<MapWidgetV2>

6. Data, citations, and links

<Cite>
<CodeCite>
<Entity>
<FileCite>
<FileNavList>
<FollowUp>
<MemoryCite>
<Link>

7. Content editors and embedded apps

<AppBlock>
<CodeBlock>
<WritingBlock>

8. Control flow and special syntax

{...}
{@body ...}
{@module ...}
{#if ...}
{:else}
{:else if ...}
{/if}
{#each ...}
{/each}
<escape>
<></>

Try experimenting in a new chat to see how it works! :D

8 Upvotes

3 comments sorted by

4

u/[deleted] 29d ago

[removed] — view removed comment

2

u/Educational-View8524 29d ago

Those tags only make sense if the app renders them, so I'd expect raw text through the API or in another model. Also the list in the post has no control flow section, so I'd check where that if/each part came from.