Auto-generate text anywhere (OpenAI / ChatGPT) - snippet ideas

Hi everyone,
We recently launched the OpenAI command pack. It allows you to auto-generate any text anywhere.

If you'd like to use it without signing up for OpenAI, please reach out to me (dan@blaze.today)

Please use this thread to share snippets that use the command pack.
The snippet with the most likes wins bragging rights.

Copy these snippets to your dashboard to make them work

3 Likes

This snippet translates text to any language:

{note} Text to translate:
{formparagraph: name=text; cols=40; rows=10}
Translate to {formmenu: default=Spanish; Portuguese; Mandarin Chinese; French; German; Arabic; Hindi; English; Japanese; Bengali; Russian; name=language}{endnote}
{formtoggle: name=Generate response; default=no; trim=left}
{openai-text: Translate the following to {=language}:
{=text}; trim=left}{endformtoggle}{if: `generate response`=="no"}{error: Check "Generate response" to create the translation; block=yes}{endif}

2 Likes

This one simply rewrites your text to make it more clear and fixes typos and grammatical errors:

{note} Text to rewrite:
{formparagraph: name=text; cols=40; rows=10}{endnote}
{formtoggle: name=Generate response; default=no; trim=left}
{openai-text: Rewrite the following to make it more clear and fix typos and grammatical errors:
{=text}; trim=left}{endformtoggle}{if: `generate response`=="no"}{error: Check "Generate response" to create the rewritten text; block=yes}{endif}

3 Likes

Generate a summary of the content of your clipboard. Copy any text, article, transcript, etc. and use this snippet to create a summary

{openai-text: Summarize the following text in bullet points:
{clipboard}; trim=left}

2 Likes

Writing a personal connection request on LinkedIn:

{openai-text: write a connection request to {linkedin-firstname} on LinkedIn (max 300 characters). Tell them why I love their company. Here is some information about {linkedin-firstname}: {linkedin-headline}}

1 Like

Respond to a Gmail email
This snippet responds to the last email in a Gmail thread. You can tell it what content to include in the response and what tone to use:

{note}{`original email`=replace({site: text; multiple=yes; selector=[data-message-id*=\"#msg-\"] .ii:not([style=\"display:none\"]) .a3s.aiL}[1], "\n\n", "\n")}
Items to include in the response:
{formparagraph: name=raw response; default=; cols=40; rows=8}
{if: `raw response`==""}{error: Consider adding content to include in the response; block=no}{endif}
Tone to use: {formmenu: professional; default=casual; kind; funny; polite; name=tone; multiple=yes; cols=40}
Final prompt:
{prompt="Write an email to " & {gmail-firstname} &" in a "& {=join(tone, "BLAZE_AND")}&" tone, responding to the following email:\"" &{=`original email`} &"\".\n Include the following in the respose: " & {=`raw response`} & "."}{formparagraph: name=prompt; cols=40; rows=10}{endnote: trim=yes}{formtoggle: name=generate response; default=no}{openai-text: {=prompt}}{endformtoggle}{if: `generate response`=="no"}{error: Check "Generate response" to create the response; block=yes}{endif}

1 Like

Generic prompt
Use this to type any prompt manually.

{note} {formparagraph: name=prompt; cols=40; rows=10}{endnote}
{formtoggle: name=Generate text; default=no; trim=left}
{openai-text: {=prompt}; trim=left}{endformtoggle}{if: `generate text`=="no"}{error: Check "Generate text" to create the text; block=yes}{endif}

1 Like

Gmail Thread Summarizer

If every morning you have to read long email threads to catch up on what happened, then this snippet is for you:

{note}
Toggle configuration/generation: {formmenu: default=Configure; Generate; name=current_state}{endnote}{note: preview=yes; insert=no}
{endnote}{if: current_state=="Configure"}{note}
{contexts={site: text; multiple=yes; selector=[data-message-id*="#msg-"] .ii:not([style="display:none"]) .a3s.aiL}}
Choose previous contexts: {formmenu: multiple=yes; values={=contexts}; name=chosen_contexts}
{previous_emails_str=join(map(chosen_contexts, (x, i) -> "\nEmail " & i & ": \"" & x & "\""), "\n"); trim=yes}
{`mail string`=previous_emails_str; trim=yes}
{`mode string`="Please only write a short summary for the email thread given in following lines. Do not complete the email thread."; trim=left}

Final prompt:
{prompt=`mode string` & "\n" & `mail string`}{formparagraph: name=prompt; cols=70; rows=15}
{error: Use the dropdown above to "Generate" text; block=yes}
{endnote: trim=yes}{else}{openai-text: {=prompt}; trim=yes}{endif}

This is how it looks when used:

I just used it in a Gmai thread with 11 back and forth emails. The summary I received is:

Summary: [user] asked Andrew, Head of Customer Success at Text Blaze, if it was possible to add an existing folder in a drop down form menu field. After discussing the issue over Zoom, Andrew provided a solution and [user] implemented it successfully. Andrew then provided further assistance when [user] attempted to apply the same solution to a different issue.

...which, of course, is a very accurate summary. You can tune the prompt to request for "short summary", "detailed summary", etc.

You can also modify the snippet to summarize other conversations, like Slack message threads, Outlook email threads, Salesforce comments, etc. If you need help doing that, feel free to message me.

3 Likes

Dan this is impressive and extremely useful.

Keystroke shortcut would really add functionality

George

I used one for the fun of it the other day and wound up making a snippet of the text that was returned :joy:

{openai-text: write an empathy statement for not having solved an issue in a timely manner.; format=text; name=empathy}

This returned: I understand how frustrating it must be to have waited for a resolution to this issue for so long. I apologize for not being able to provide a solution in a more timely manner.

3 Likes

This stuff is both existing and scary at the same time. Awesome that you've integrated it so well.

This works really well!

I also was able to have it generate a summary of a webpage by adding the link into the snippet, but I wasn't able to get it by putting the link in formtext field. Do you know a good way to do that? I suppose that this snippet might actually work if you copy the link, but I haven't tried that yet.

The currently available Open AI API appears to be GPT-3 and not Chat GPT. The amount of training and the model is different, so Chat GPT is smarter, so the responses coming from the current API are a bit stupid.