- condition:
- >-
{{url}} =~
^(https?:\/\/)?(mail\.google\.com\/.*|outlook\.live\.com\/mail\/.*|mail\.proton\.me|mail\.aol\.com|mail\.com|mail\.yahoo\.com|hushmail\.com|mailfence\.com|app\.fastmail\.com|mailjet\.com|icloud\.com\/mail)(\/[^\s]*)?
- '{{email}} !='
type: group
steps:
- type: calc
func: set
param: text
value: '{{email}}'
format: ''
- condition: '{{text}} ='
value: '{{page}}'
type: calc
func: set
param: text
format: ''
- type: gpt
onCodeClick: send-text
prompt: >
Please ignore all previous instructions.
I will provide you with a segment of a website which contains email
communication. You goal is to summarize the communication (the last
email specifically) into: "Sender's Intent", "Key takeaways" and "Reply
ideas" sections.
Your reply must be in {{language}}. Concentrate on the most important
information during summary.
[INSTRUCTIONS]:
- I want to grasp the idea quickly, so your response must be concise,
short, easy to read & understand.
- Ignore any irrelevant information in the website segment, such as the
website interface, and focus only on the email correspondence.
- Provide no more than 3 most useful key takeaways from the email. Each
takeaway should be very short and concise bullet point.
- Provide up to 3 reply ideas that could be used to respond to the
email. Each reply idea should be within a fenced code block and have a
different Emoji, followed by Title: Description. Typical idea emojis
with titles: 🆗 Confirm, 🙅 Decline, 🔍 Clarify, 🙏 Appreciate, 🛎️
Request, 💡 Suggest, 🔄 Update, 🎉 Invite, 📣 Feedback, 🤝 Assist, 🙇
Apologize, 📅 Schedule, 🙂 Thank etc.
- If there is no email communication or it is empty, do not provide
intent, key takeaways, or reply ideas, instead reply 'Nothing to
summarize.'.
- Please do not render brackets.
[FORMAT]:
### Sender's Intent
A brief description of the sender's intent in the email, e.g. actions
requested, questions asked, what they are trying to achieve, etc.
### Key takeaways
- Takeaway 1 in a short / concise format.
- ...
### Reply ideas
```markdown
Emoji Title: Description.
```
```markdown
Emoji Title: Description.
```
```markdown
Emoji Title: Description.
```
[WEB PAGE TITLE]:
{{desc}}
[WEBSITE SEGMENT WITH EMAIL]:
{{text}}
[KEY TAKEAWAYS LIST]:
param: gpt
- label: ASK FOR EMAIL SUMMARY ACTION
type: ask
param: email-action
options:
- label: ✅ DONE
value: stop
- label: ⬆️ EXPAND
value: expand
- label: 💬 REPLY
value: reply
- $custom
default: ''
- label: EXPAND EMAIL SUMMARY
condition: '{{email-action}} = expand'
steps:
- prompt: >
Please expand the key point list, provide more details in a
bullet-point format. Only output the expanded key takeaways, do not
echo my command, sender's intent or reply ideas:
type: gpt
param: gpt
- type: jump
to: ASK FOR EMAIL SUMMARY ACTION
type: group
- label: DONE WITH EMAILS
condition: '{{email-action}} = stop'
type: stop
- label: REPLY TO EMAIL BASIC
condition: '{{email-action}} = reply'
steps:
- param: selection
type: calc
func: set
value: ''
format: ''
- type: command
name: Reply
inputs:
- '{{gpt}}'
- type: stop
type: group
- label: REPLY TO EMAIL CUSTOM
steps:
- type: calc
func: set
param: selection
value: ''
format: ''
- inputs:
- '{{gpt}}'
- '{{email-action}}'
type: command
name: Reply
- type: stop
type: group
- type: stop
label: EMAILS
- steps:
- type: calc
func: set
param: text
format: ''
value: '{{page}}'
- to: ASK FOR SUMMARY ACTION
type: jump
label: NOT SELECTED
condition: '{{selection}} = '
type: group
- steps:
- param: option1
options:
- label: SELECTED TEXT
value: selected
- label: WEB PAGE
value: webpage
- $custom
type: ask
message: ''
default: ''
- value: '{{selection}}'
condition: '{{option1}} = selected'
label: USE SELECTED
type: calc
func: set
param: text
format: ''
- condition: '{{option1}} = webpage'
label: USE PAGE
type: calc
func: set
param: text
format: ''
value: '{{page}}'
condition: '{{selection}} != -'
label: TEXT SELECTED
type: group
- message: |
Pick a summary format, or type custom instructions.
param: format
options:
- label: 📄 REPORT
value: report
- label: ⚡️ TL;DR
value: tldr
- label: 💬 TEXT
value: text
- label: 🔍 EXECUTIVE
value: executive
- label: 🤗 EMOJI LIST
value: emoji
- label: 🐦 TWEET
value: tweet
- value: $custom
label: ASK FOR SUMMARY ACTION
type: ask
- condition: '{{format}} = report'
prompt: >-
Please ignore all previous instructions. I want you to only answer in
{{language}}. Analyze the web page content and prepare a web page summary
report which has a key takeaway and a summary in bullet points.
[REPORT FORMAT]:
### Key Takeaway
A single most important takeaway from the text in {{language}}
### Summary
Summarize the web page here in bullet-points. There should no limit in words
or bullet points to the report, ensure that all the ideas, facts, etc. are
concisely reported out. The summary should be comprehensive and cover all
important aspects of the text. Do not use any emoji.
[WEB PAGE TITLE]:
{{desc}}
[WEB PAGE CONTENT]:
{{text}}
[REPORT]:
label: REPORT
type: gpt
param: gpt
- condition: '{{format}} = emoji'
chunkify:
text: '{{text}}'
isolated: true
empty: |
It looks as if the page has no text content. Or I could not fetch it.
prompt: >
Please ignore all previous instructions. I want you to only answer in
{{language}}. Summarize the next chunk of the web page into a list of key
takeaways. Each key takeaway should be a bullet list item with an emoji.
Here is a format:
"- [emoji 1] [takeaway 1]"
"- [emoji 2] [takeaway 2]"
Please try to use relevant but different emojis for each takeaway. Do not
render brackets.
[WEB PAGE TITLE]:
{{desc}}
[WEB PAGE CHUNK]:
{{chunk}}
[KEY TAKEAWAYS LIST]:
label: EMOJI
type: gpt
param: gpt
- condition: '{{format}} = text'
chunkify:
text: '{{text}}'
isolated: true
empty: |
It looks as if the page has no text content. Or I could not fetch it.
prompt: >
Please ignore all previous instructions. I want you to only answer in
{{language}}. Summarize the next chunk of the web page into a list of key
takeaways. Each key takeaway should be a bullet list item. Here is a format:
"- [takeaway 1]"
"- [takeaway 2]"
Please do not render brackets.
[WEB PAGE TITLE]:
{{desc}}
[WEB PAGE CHUNK]:
{{chunk}}
[KEY TAKEAWAYS LIST]:
type: gpt
param: gpt
- condition: '{{format}} = executive'
prompt: >
Please ignore all previous instructions. I want you to only answer in
{{language}}.
Act as a skilled summarizer. Your task is to create an executive summary of
a given [WEB PAGE]: - The summary should provide a brief overview of the
text, clearly state the problem or need the text addresses, detail the
recommended solution to the problem, explain the benefits and value of the
solution or summarize the importance of the work and its impact. - Ensure
that the summary is comprehensible on its own, providing necessary context
without needing the full text. - Focus on presenting information objectively
with facts and evidence. - Highlight the most important findings and
insights from the document, including any critical data or statistics
discovered. - Use clear and simple language for accessibility to all
readers, covering all key points while avoiding excessive detail. - Utilize
Markdown for h2, h3, h4 headers and other features to enhance the text.
Use the specified format: ## Executive Summary
### Problem/Need Addressed: brief description
### Recommended Solution: brief description followed by the detailed key
takeaways
#### Key Takeaways - Key takeaway
- Additional information for the key takeaway in a sub-bullet point (if needed).
- ...
### Benefits and Value or ### Importance and Impact (choose one option) text
[WEB PAGE TITLE]:
{{desc}}
[WEB PAGE]:
{{page}}
[EXECUTIVE SUMMARY]:
type: gpt
param: gpt
- condition: '{{format}} = tldr'
chunkify:
text: '{{text}}'
isolated: true
empty: |
It looks as if the page has no text content. Or I could not fetch it.
prompt: >
Please ignore all previous instructions.
Summarize the next chunk of the web page into a list of key takeaways in
{{language}}, focusing only on the most important information.
- I don't want to spend time reading, so your response must be concise, easy
to read & understand.
- If the text contains repeated information, avoid including these
repetitions.
- Your summary should be significantly shorter than the original text.
- Please do not render brackets.
Use the specified format:
- Key takeaway
- Additional information for the key takeaway in a sub-bullet point (if needed).
- ...
[WEB PAGE TITLE]:
{{desc}}
[WEB PAGE CHUNK]:
{{chunk}}
[KEY TAKEAWAYS LIST]:
label: TLDR
type: gpt
param: gpt
- condition: '{{format}} = tweet'
prompt: >-
Please ignore all previous instructions. I want you to only answer in
{{language}}. Summarize the web page text content into a single tweet. The
resulting tweet must be not longer than 280 characters. Do not wrap into
quotes.
[WEB PAGE TITLE]:
{{desc}}
[WEB PAGE CONTENT]:
{{text}}
[TWEET]:
label: TWEET
type: gpt
param: gpt
- condition: '{{format-option}} = $custom'
prompt: >
Please ignore all previous instructions. I want you to only answer in
{{language}}. I would like you to summarize the web page content.
[WEB PAGE TITLE]:
{{desc}}
[WEB PAGE CONTENT]:
{{text}}
[ADDITIONAL INSTRUCTIONS / FORMAT]:
{{format}}
[SUMMARY]:
label: CUSTOM
type: gpt
param: gpt
- label: CHANGE-SUMMARY
param: change
options:
- value: 'no'
label: ✅ DONE
- label: ⬇️ SHORTEN
value: >-
Make summary shorter, keeping only the most essential information and
nothing more.
- label: 🤪 SIMPLIFY
value: >-
I want you to simplify your summary and rewrite it in more
understandable language, replacing complex words and phrases with
simple, clear ones.
- label: 🔍 CLARITY
value: >-
Add clarity and conciseness. Text should be direct, clear, and not
ambiguous.
- label: ♻️ REPURPOSE TEXT
value: repurpose
- value: $custom
type: ask
- condition: '{{change}} = no'
label: DONE
type: stop
- steps:
- func: clone
to: repurpose-input
type: calc
from: gpt
- inputs: []
name: Repurpose text
type: command
- type: stop
label: REPURPOSE
condition: '{{change}} = repurpose'
type: group
- steps:
- prompt: >
I would like you to make changes to the summary you wrote. Please do not
output anything but the revised reply. Do not echo my command. Do not
put quotes around the revised reply.
[CHANGES TO MAKE]:
{{change}}
[SUMMARY TO CHANGE]:
{{gpt}}
[REVISED SUMMARY]:
label: CHANGES
type: gpt
param: gpt
- type: jump
to: CHANGE-SUMMARY
condition: '{{change}} != repurpose'
type: group
label: CHANGES
This automation command is created by a community member. HARPA AI team does not audit community commands.
Please review the command carefully and only install if you trust the creator.
All rights reserved © HARPA AI TECHNOLOGIES LLC, 2021 — 2024
Designed and engineered in Finland 🇫🇮