Summarises an episode's transcript or show notes, adds background on who and what it mentions, and emails you the digest.

UsesGmailOpenAIWikipedia

Turn a podcast episode into an emailed digest

ValuesSet episodeTitle to blank.Set episodeTitle to blank.
ValuesSet episodeNotes to blank.Set episodeNotes to blank.
ValuesSet recipientEmail to blank.Set recipientEmail to blank.
ValuesSet maxTranscriptCharacters to 16000.Set maxTranscriptCharacters to 16000.
ValuesSet maxBackgroundLookups to 8.Set maxBackgroundLookups to 8.
TextShorten episodeNotes to maxTranscriptCharacters characters and save it as episodeText.Shorten episodeNotes to maxTranscriptCharacters characters and save it as episodeText.
ValuesSet summaryPrompt to You are writing the summary section of a digest about one podcast episode, for someone who has not listened to it.Set summaryPrompt to You are writing the summary section of a digest about one podcast episode, for someone who has not listened to it. Cover what the episode actually argued, the evidence or examples it rested on, and anything a listener would want to act on afterwards. Use short paragraphs and plain sentences, and no more than 250 words. Use only what the text below says - do not add background, figures or conclusions that are not in it. Reply with the summary and nothing else. Episode: episodeTitle Transcript or show notes: episodeText.
OpenAIOpenAIAsk OpenAI: summaryPrompt. Save it as summaryReply.Ask OpenAI: summaryPrompt. Save it as summaryReply.
TextTrim summaryReply.response_text and save it as summary.Trim summaryReply.response_text and save it as summary.
Decisions & LoopsIf summary is emptyIf summary is empty
Yes
Decisions & LoopsStop and report a problem: The model came back with an empty summary, so there is nothing worth sending. Check that the 'episodeNotes' step really holds the episode's transcript or show notes and not just a title or a link.Stop and report a problem: The model came back with an empty summary, so there is nothing worth sending. Check that the 'episodeNotes' step really holds the episode's transcript or show notes and not just a title or a link.
No
No steps
ValuesSet topicPrompt to List the people, organisations, places and named topics that the podcast episode below refers to and that a reader might not already know.Set topicPrompt to List the people, organisations, places and named topics that the podcast episode below refers to and that a reader might not already know. Give the exact name each one is best known by, because every name is looked up in an encyclopaedia exactly as written. One name per line, with no bullets, no numbering, no explanation and nothing else. Leave out the host, the show itself, and anything too general to have an encyclopaedia entry. If there is nothing worth looking up, reply with the single word none. Episode: episodeTitle Transcript or show notes: episodeText.
ValuesSet topicText to blank.Set topicText to blank.
Decisions & LoopsIf a step below fails, save the error as topicErrorIf a step below fails, save the error as topicError
Try
OpenAIOpenAIAsk OpenAI: topicPrompt. Save it as topicReply.Ask OpenAI: topicPrompt. Save it as topicReply.
TextTrim topicReply.response_text and save it as topicText.Trim topicReply.response_text and save it as topicText.
On error
ValuesShow in the output: Could not work out what the episode mentioned, so the digest goes out without background: topicError as text.Show in the output: Could not work out what the episode mentioned, so the digest goes out without background: topicError as text.
ListsTake the first maxBackgroundLookups items of topicText split by a new line and save it as topics.Take the first maxBackgroundLookups items of topicText split by a new line and save it as topics.
ValuesSet background to an empty list.Set background to an empty list.
Decisions & LoopsFor each line in topics:For each line in topics:
TextTrim line and save it as topic.Trim line and save it as topic.
Decisions & LoopsIf topic is emptyIf topic is empty
Yes
Decisions & LoopsSkip to the next item.Skip to the next item.
No
No steps
Decisions & LoopsIf topic in lowercase is noneIf topic in lowercase is none
Yes
Decisions & LoopsSkip to the next item.Skip to the next item.
No
No steps
ValuesSet referenceLink to blank.Set referenceLink to blank.
ValuesSet referenceText to blank.Set referenceText to blank.
Decisions & LoopsIf a step below fails, save the error as lookupErrorIf a step below fails, save the error as lookupError
Try
WikipediaWikipediaGet the summary of topic. Save it as reference.Get the summary of topic. Save it as reference.
TextTrim reference.url and save it as referenceLink.Trim reference.url and save it as referenceLink.
TextTrim reference.extract and save it as referenceText.Trim reference.extract and save it as referenceText.
On error
ValuesShow in the output: No reference entry for topic, leaving it out of the digest: lookupError as text.Show in the output: No reference entry for topic, leaving it out of the digest: lookupError as text.
Decisions & LoopsIf referenceText isn't emptyIf referenceText isn't empty
Yes
ValuesSet entry to topicSet entry to topic referenceText.
Decisions & LoopsIf referenceLink isn't emptyIf referenceLink isn't empty
Yes
ValuesChange entry to entryChange entry to entry More: referenceLink.
No
No steps
ListsAdd entry to the end of background and save it as background.Add entry to the end of background and save it as background.
No
No steps
ValuesSet digest to episodeTitleSet digest to episodeTitle WHAT THE EPISODE COVERED summary.
Decisions & LoopsIf background isn't emptyIf background isn't empty
Yes
ValuesChange digest to digestChange digest to digest BACKGROUND ON WHAT IT MENTIONED background joined by a blank line.
No
No steps
ValuesChange digest to digestChange digest to digest --- Summarised from the transcript or show notes you supplied. Background comes from Wikipedia.
GmailGmailSend an email to recipientEmail.Send an email to recipientEmail. Subject: Podcast digest: episodeTitledigest
ValuesShow in the output: Digest for episodeTitle sent to recipientEmail.Show in the output: Digest for episodeTitle sent to recipientEmail.