
I have been employing Antigravity since November. She was responsible for the redesign of this website. Much as that work was impressive, she recently completely automated the posting of the Daily Dharma.
How a Daily Dharma Draft Post Is Created Automatically
I. Nightly Wake-Up (Runs in the Cloud)
- Every morning between 2:00 and 3:00 AM (Pacific Time), an automated schedule wakes up on Google’s servers—even while the home office computer is turned off.
- It checks the inbox for that morning’s 1:00 AM Daily Dharma email from the Lexington Nichiren Buddhist Community.
- If today’s email has not arrived yet, it stops cleanly without doing anything.
II. Checking What Has Already Been Done
- The process checks the archive folder in Google Drive to see if today’s illustration and written notes already exist.
- If they are already there, it skips creating duplicates and moves straight to preparing the website draft.
III. Creating and Reviewing the Illustration
- Painting the artwork: The passage from the email is sent to Google Gemini with artistic instructions to create a square illustration in the style of an antique Japanese Buddhist silk scroll, including a subtle Kanji signature (双子座) and red seal (ジェミニ).
- Quality and accuracy check: A second Gemini review inspects the finished painting to verify that it followed the doctrinal guidelines (specifically avoiding imagery of Amida or Dainichi Buddha). If an unwanted symbol appears, it automatically paints a fresh version once.
- Writing the “Thinking” notes: Based on what actually appears in the finished painting, Gemini writes:
- A short Conceptual Summary explaining how the artwork interprets the passage.
- A bulleted list of Deities/Figures Featured in the scene.
- A bulleted list of Text Translations for the signature, red seal, and any visible calligraphy.
- Archiving: Both the finished image and the written notes are saved in Google Drive under today’s date.
IV. Preparing the Draft on 500yojanas.org
- Duplicate check: The process checks the website to make sure a post titled Daily Dharma for [Today’s Date] does not already exist.
- Creating the expandable “Show Gemini’s thinking” box: It securely sends today’s written notes to a small helper installed on 500yojanas.org, which copies the previous day’s collapsible box (keeping the exact same look and styling), swaps in today’s notes, and returns the box’s ID.
- Uploading the painting: It sends the artwork directly from Google Drive to the website’s Media Library.
- Assembling the draft post: It creates a new post saved as a Draft with every element placed in order:
- Title: Daily Dharma for [Month Day, Year]
- Centered illustration at the top, followed by the “Illustration by Google Gemini” credit
- The collapsible “Show Gemini’s thinking” box
- The opening quote from the email in italics, followed by the commentary paragraph
- The standard Daily Dharma attribution notice at the bottom
- Categories automatically assigned: AI Contribution and Daily Dharma
V. Automatic Safety Nets
- If Gemini is temporarily busy: The process waits briefly and retries; if still busy, it schedules itself to try again 20 minutes later (up to 3 times).
- If 500yojanas.org is temporarily unreachable: The process automatically schedules a retry every 5 minutes (up to 4 times, covering a 20-minute outage) without repeating the artwork step or creating duplicates.
- Failure alerts: If a problem still cannot be resolved after retries, an email alert is sent automatically.
VI. Final Human Review & Publishing
- Nothing is ever published automatically.
- Later in the morning, the editor opens the saved draft on 500yojanas.org, reviews the artwork, collapsible notes, and text, makes any desired adjustments, and publishes it to the site.
What was a task that took five or six minutes every morning is now accomplished in less than a minute, not counting the time it takes to fire up the home office computer and log into 500yojanas.org. (Read the evolution of Illustrating the Daily Dharma.)
The reason I don’t have Antigravity publish the Daily Dharma is the illustration selection. In the 12 months I have been doing these illustrations I have had occasion to reject Gemini’s first try and ask for a second illustration focusing a specific portion of the day’s lesson. I want that option left available.
I’m looking forward to working with My Gal Friday, Antigravity
