Using AI to Build My Own Midterm Elections Newsletter
Description and use
The author built a personalized midterm elections newsletter using Claude to fetch polling data, Email Chart Builder to render HTML bar charts, and MailJet to send the email, resulting in a lightweight, fast‑loading newsletter with race summaries.
Problem
The author needed a personalized midterm elections newsletter with up‑to‑date polling data and minimal commentary, but existing newsletters did not meet these preferences.
Outcome
The author received a fully generated, personalized midterm elections newsletter with up‑to‑date polling data presented as lightweight HTML bar charts, delivered automatically via MailJet.
Workflow
- 1. Created a boilerplate HTML email template with placeholders for election content.
- 2. Built a SKILL.md file with guidelines for the AI agent to use the Email Chart Builder tool.
- 3. Taught the AI agent to fetch polling data using Claude Opus 5.5 and render it as HTML bar charts.
- 4. Instructed the AI to insert two‑sentence race summaries between charts and add brief source notes.
- 5. Ran the build task via the AI agent, producing a complete HTML newsletter.
- 6. Sent the final newsletter to the author’s email using MailJet’s Send API.
Evidence
I will leverage Claude to fetch the polling data for these races, use my Email Chart Builder data viz tool to render everything into HTML bar charts, package everything together in a boilerplate HTML template, and finally send me the newsletter via the MailJet API.
Finally, I created a SKILL.md file with the specific guidelines, instructions, and rules for the AI agent to build and send me this polling election newsletter.
After the build task was finished, Claude sends the final HTML newsletter to my email address through MailJet's Send API.
- Record date: 2026-10-22T03:26:08.444Z