Turns your notes into a free guide or checklist in a new Google Doc, using only the facts and figures you supplied.
Uses
Claude
Google Docs
Draft a free guide for your website from your notes
leadMagnetTitle to blank.Set leadMagnetTitle to blank.leadMagnetBrief to blank.Set leadMagnetBrief to blank.callToAction to blank.Set callToAction to blank.sectionPlan to:Set sectionPlan to:Who this is for
The problem, in plain terms
What to do first
The steps, one at a time
The mistakes that cost people most
A checklist to work through
Where to go from heremaxSections to 12.Set maxSections to 12.leadMagnetTitle and save it as guideTitle.Trim leadMagnetTitle and save it as guideTitle.guideTitle is emptyIf guideTitle is emptyYes
No
No steps
leadMagnetBrief and save it as brief.Trim leadMagnetBrief and save it as brief.brief is emptyIf brief is emptyYes
No
No steps
callToAction and save it as nextStep.Trim callToAction and save it as nextStep.nextStep is emptyIf nextStep is emptyYes
No
No steps
sectionLimit to maxSections multiplied by 1.Set sectionLimit to maxSections multiplied by 1.sectionLimit is less than 1 or sectionLimit is greater than 40If sectionLimit is less than 1 or sectionLimit is greater than 40Yes
No
No steps
sections to an empty list.Set sections to an empty list.planLine in sectionPlan split by a new line:For each planLine in sectionPlan split by a new line:planLine and save it as heading.Trim planLine and save it as heading.heading isn't emptyIf heading isn't emptyYes
sections is greater than or equal to sectionLimitIf the length of sections is greater than or equal to sectionLimitYes
No
No steps
heading to the end of sections and save it as sections.Add heading to the end of sections and save it as sections.No
No steps
sections is emptyIf sections is emptyYes
No
No steps
(?<=\d),(?=\d{3}(?!\d)) with in brief and save it as briefDigits.Replace the pattern (?<=\d),(?=\d{3}(?!\d)) with in brief and save it as briefDigits.briefDigits and save it as sourceFigures.Extract all matches from briefDigits and save it as sourceFigures.sections with a new line and save it as planText.Join sections with a new line and save it as planText.promptBase to You are writing one section of a guide that a business gives away to people who ask for it. It has to be genuinely useful on its own, and it has to be honest, because the business's name is on it.Set promptBase to You are writing one section of a guide that a business gives away to people who ask for it. It has to be genuinely useful on its own, and it has to be honest, because the business's name is on it.
Everything you write comes from the brief below. You know nothing else about this business, its customers, its market or its results.
Rules you must not break:
- Use only the facts, examples, names and figures the brief gives you. Add none of your own.
- Digits are reserved for figures that appear, character for character, in the brief. Write every other quantity in words: three steps, half an hour, twice a year.
- Never write a statistic, percentage, price, market size, growth rate, date, year, study, survey, ranking, award, testimonial or named source that is not in the brief. Where the writing needs one, write [figure to add] and carry on.
- Do not name a company, product, person, tool or website the brief does not name.
- Do not promise a result, a saving or an outcome the brief does not promise.
- Do not give legal, medical, financial or tax advice.
- Do not number your list items. Start each one with a dash.
- Write plain text with no Markdown: no ** or __ for bold, no # headings, no [text](link) links.
- Write the section itself and nothing else: no heading, no preamble, no sign-off, no note about what you did.
- If the brief does not tell you enough to write this section honestly, say so in two or three sentences and name what the writer still has to supply. Do not fill the gap yourself.
Working title of the guide: guideTitle
The brief, in the words of the person who commissioned the guide:
brief
The full plan for the guide. The other sections are being written separately, so cover only your own:
planText.guideTitle. Save it as created.Create the document guideTitle. Save it as created.created.document_id and save it as documentId.Trim created.document_id and save it as documentId.documentId is empty or documentId is nullIf documentId is empty or documentId is nullYes
No
No steps
guideTitle to documentId.Add the heading guideTitle to documentId.documentId.Add text to documentId.This is a draft. Every section below was written from your brief and nothing else, so it contains no figure, claim, example or name you did not supply. Read it through, add your own detail, and check it before you give it to anyone. Whatever the draft could not write is listed a...sectionsWritten to 0.Set sectionsWritten to 0.notWritten to an empty list.Set notWritten to an empty list.needsFigures to an empty list.Set needsFigures to an empty list.unusedFigures to an empty list.Set unusedFigures to an empty list.section in sections:For each section in sections:section to documentId.Add the heading section to documentId.sectionPrompt to promptBaseSet sectionPrompt to promptBase
Write this section now, and only this section: section
Length: about 250 words, in plain English, written to the reader as you. Practical over inspirational.draftText to blank.Set draftText to blank.draftErrorIf a step below fails, save the error as draftErrorTry
sectionPrompt. Save it as reply.Ask Claude: sectionPrompt. Save it as reply.
Maximum response length: 1500reply.response_text and save it as draftText.Trim reply.response_text and save it as draftText.On error
draftText to blank.Change draftText to blank.draftText is nullIf draftText is nullYes
draftText to blank.Change draftText to blank.No
No steps
(?m)\*\*|^#{1,6}[ \t]+ with in draftText and save it as draftText.Replace the pattern (?m)\*\*|^#{1,6}[ \t]+ with in draftText and save it as draftText.draftText is emptyIf draftText is emptyYes
documentId.Add text to documentId.This section was not written - nothing came back from the writing step. Run the workflow again to try this section once more.section - nothing came back from the writing step to the end of notWritten and save it as notWritten.Add section - nothing came back from the writing step to the end of notWritten and save it as notWritten.No
(?<=\d),(?=\d{3}(?!\d)) with in draftText and save it as draftDigits.Replace the pattern (?<=\d),(?=\d{3}(?!\d)) with in draftText and save it as draftDigits.draftDigits and save it as draftFigures.Extract all matches from draftDigits and save it as draftFigures.unsourced to an empty list.Set unsourced to an empty list.figure in draftFigures:For each figure in draftFigures:sourceFigures doesn't contain figure If sourceFigures doesn't contain figureYes
figure to the end of unsourced and save it as unsourced.Add figure to the end of unsourced and save it as unsourced.section - figure to the end of unusedFigures and save it as unusedFigures.Add section - figure to the end of unusedFigures and save it as unusedFigures.No
No steps
unsourced isn't emptyIf unsourced isn't emptyYes
documentId.Add text to documentId.This section was not written. The draft that came back used figures your brief does not contain, and this workflow will not put a figure you did not supply into something you hand to a prospect. The figures it tried to use are listed at the end - add the real ones to your brief ...section - the draft used figures that are not in your brief to the end of notWritten and save it as notWritten.Add section - the draft used figures that are not in your brief to the end of notWritten and save it as notWritten.No
documentId.Add text to documentId.draftTextsectionsWritten.Add 1 to sectionsWritten.draftText contains [figure to add] (ignoring case)If draftText contains [figure to add] (ignoring case)Yes
section to the end of needsFigures and save it as needsFigures.Add section to the end of needsFigures and save it as needsFigures.No
No steps
documentId.Add the heading 'What to do next' to documentId.documentId.Add text to documentId.nextStepdocumentId.Add the heading 'What this draft still needs' to documentId.checks to an empty list.Set checks to an empty list.sectionsWritten of the length of sections. to the end of checks and save it as checks.Add Sections written from your brief: sectionsWritten of the length of sections. to the end of checks and save it as checks.item in notWritten:For each item in notWritten:item to the end of checks and save it as checks.Add Not written - item to the end of checks and save it as checks.item in needsFigures:For each item in needsFigures:item to the end of checks and save it as checks.Add Add your own figure where the draft wrote [figure to add] - item to the end of checks and save it as checks.item in unusedFigures:For each item in unusedFigures:item to the end of checks and save it as checks.Add Figure left out because your brief does not contain it - item to the end of checks and save it as checks.This is a first draft written only from your brief. Read every line, add your own examples and figures, and check every claim before you give it to anyone. to the end of checks and save it as checks.Add This is a first draft written only from your brief. Read every line, add your own examples and figures, and check every claim before you give it to anyone. to the end of checks and save it as checks.documentId.Add a bulleted list to documentId.https://docs.google.com/document/d/@documentId/edit and save it as documentLink.Build the text https://docs.google.com/document/d/@documentId/edit and save it as documentLink.sections and save it as sectionCount.Count the items in sections and save it as sectionCount.sectionsWritten is 0If sectionsWritten is 0Yes
sectionCount sections could be written, so the document only holds the headings and your call to action. The reasons are listed at the end of it: documentLink - if every section says nothing came back, check the Anthropic connection and run it again.Stop and report a problem: None of the sectionCount sections could be written, so the document only holds the headings and your call to action. The reasons are listed at the end of it: documentLink - if every section says nothing came back, check the Anthropic connection and run it again.No
No steps
documentLinkFinish the run: Your draft is ready in Google Docs: documentLink
Sections written from your brief: sectionsWritten of sectionCount. Anything still missing is listed at the end of the document.