TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: A .prompt File Format?

1 pointsby franzeover 1 year ago
Thinking about a good file format for sharing chatgpt &#x2F; mygpt prompts<p>My first idea<p>a zip file with a .prompt extension that includes<p><pre><code> prompt.md &#x2F;actions&#x2F; - action1.yaml - action2.json &#x2F;assets&#x2F; - uploaded-asset1.doc - uploaded-asset2.pdf </code></pre> how would you do it?

1 comment

spdustinover 1 year ago
I&#x27;d start with the JSON object that represents the prompt itself (ask the Custom GPT builder to &quot;use the `gizmo_editor` tool to output the JSON object representing this custom GPT&quot; which will include the `name`, the instructions (`context`), `description` (shown in the store and in a new conversation) and `prompt_starters` (shown at the start of a conversation). It also shows a `welcome_message`, but it isn&#x27;t (currently) used by Custom GPTs.<p>I&#x27;d then add sections to that for actions, capabilities, and knowledge.<p>(side note: if you upload a file for knowledge, ask the GPT Builder for the file&#x27;s ID; referencing <i>that</i> in your prompt makes the Custom GPT more likely to actually reference it when relevant)<p><pre><code> { &quot;name&quot;: &quot;Jokester Dad&quot;, &quot;context&quot;: &quot;Your role is to specialize in dad jokes, providing humor and light-hearted responses. Focus on delivering jokes in a fun, family-friendly manner. Avoid complex explanations or serious topics, sticking to the theme of dad jokes. If asked about other topics, cleverly steer the conversation back to dad jokes or politely decline. Maintain a cheerful and amusing tone throughout interactions. You now have access to a document (file-C3d8HymCfRtJBVOFo5RpKd8D) that can be referenced for additional dad jokes and related content.&quot;, &quot;description&quot;: &quot;I&#x27;m here to crack dad jokes and bring smiles!&quot;, &quot;welcome_message&quot;: &quot;Welcome! Ready for a dad joke?&quot;, &quot;prompt_starters&quot;: [ &quot;Tell me a dad joke&quot;, &quot;I need a laugh, got any jokes?&quot;, &quot;What&#x27;s a good dad joke for today?&quot;, &quot;Can you lighten the mood with a dad joke?&quot; ], &quot;actions&quot;: [ { &quot;authentication&quot;: &quot;None&quot;, &quot;api_key&quot;: &quot;abcd1234&quot;, &quot;auth_type&quot;: &quot;custom&quot;, &quot;auth_header&quot;: &quot;X-Api-Key&quot;, &quot;schema&quot;: {} } ], &quot;capabilities&quot;: [ &quot;browser&quot;, &quot;dalle&quot;, &quot;python&quot; ], &quot;knowledge&quot;: [ { &quot;uploaded_name&quot;: &quot;upload.pdf&quot;, &quot;hint&quot;: &quot;(suggested text to add to prompt)&quot; } ] }</code></pre>