# Send Illustrated Fact Newsletters

Source: https://openflow.run/ja/templates/send-illustrated-fact-newsletters/
Content language: en
Template revision: d291811835b4d4defcd934c79186ed436e74219f

マーケティング

Send a fresh illustrated fact to eligible Airtable subscribers and record confirmed Gmail deliveries.

[Open Flow で使用](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2Fd291811835b4d4defcd934c79186ed436e74219f%2Fworkflows%2Fsend-illustrated-fact-newsletters%2Ftemplates%2Fsend-illustrated-fact-newsletters.openflow.json)

*   [Open Flow JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/send-illustrated-fact-newsletters/templates/send-illustrated-fact-newsletters.openflow.json)
*   [n8n JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/send-illustrated-fact-newsletters/templates/send-illustrated-fact-newsletters.n8n.json)

![Open Flow の Send Illustrated Fact Newsletters ワークフロー](https://openflow.run/template-previews/send-illustrated-fact-newsletters/light.webp)

Send a fresh illustrated fact to eligible Airtable subscribers and record confirmed Gmail deliveries.

## Setup

1.  In **Set the newsletter accounts**, enter the Airtable base and subscribers table IDs, the Gmail sending address or verified alias, and the HTTPS URL of your unsubscribe confirmation page. The page must read the `ID` query field and display a confirmation on GET. After the visitor confirms, it can POST JSON with that same `ID` field to [Newsletter Unsubscribe](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/newsletter-unsubscribe/). Use the same subscriber table in both workflows.
2.  Connect Airtable for **Read active subscribers**, **Recheck the subscriber record**, and **Write the subscriber’s Last Sent**. The table uses the `Email`, `Topic`, `Status`, `Interval`, and `Last Sent` fields. Use a date field that includes time for `Last Sent`. Connect OpenAI for **Generate one new fact** and **Generate the illustration**, and Gmail for **Send the illustrated Gmail message**.
3.  Enable persistent State and keep one scheduled dispatcher for the subscriber table. The default schedule is 09:00 UTC. Publish and enable the workflow.

## Behavior

Only active subscriptions are eligible. Daily subscribers can receive one message per UTC date. Weekly subscribers are due seven UTC calendar days after their last send, or on their first eligible run if they have no **Last Sent**. Each eligible surprise subscription has a one-in-ten chance per run. The workflow checks the subscriber again before sending.

The model uses up to five recent facts for that subscriber and English Wikipedia context when available. Topics are sent to Wikipedia and OpenAI. The message uses one recipient, a generated JPEG resized to at most 172,800 pixels with its aspect ratio preserved, and an unsubscribe link containing that recipient’s Airtable record ID. The HTML embeds the resized JPEG by content ID. An input image above the workflow’s 750 KB byte limit skips that subscriber.

The workflow processes subscribers one at a time. A failed subscriber is skipped for the rest of the run, and later eligible subscribers still proceed. An incomplete subscriber list stops the run before sending.

Gmail acceptance supplies the time for the same record’s **Last Sent** update. A pending or unconfirmed delivery is held in State. Inspect Gmail Sent and Airtable before clearing that hold. A confirmed send followed by an Airtable or State error can still have been delivered. An unsubscribe can race a send that is already in progress.

In n8n

Set the same newsletter inputs in **Set the newsletter accounts** and use the production form URL from [Newsletter Unsubscribe](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/newsletter-unsubscribe/templates/newsletter-unsubscribe.n8n.json) as the confirmation page. Select an Airtable Personal Access Token credential on **Read active subscribers**, **Recheck the subscriber record**, and **Write the subscriber’s Last Sent**, an OpenAI API credential for **Generate one new fact** and **Generate the illustration**, and Gmail OAuth2 on **Send the illustrated Gmail message**. The generated 960×720 illustration is resized to 480×360 by **Resize the illustration** using GraphicsMagick.

Create a Data Table with text columns `subscriber_key` and `facts`, and a Boolean column `pending`. Select the same table in **Read subscriber fact history**, **Reserve Gmail delivery**, and **Confirm delivery and save the fact**. Keep one active dispatcher and avoid overlapping runs. The workflow starts at 09:00 UTC, and a pending Data Table row holds that subscriber until you reconcile it.

Inspiration & credits

## Changes to the source

*   Remove the additional hardcoded recipient. Link to a confirmation page with the same subscriber ID, and write the actual confirmed send time to Airtable.
*   Keep recent facts per subscription and hold uncertain sends. Embed illustration bytes in the Gmail message and include a Wikipedia citation when the model selects a retrieved article.

Adapted from the scheduled fact newsletter branch in [Email Subscription Service with n8n Forms, Airtable and AI](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/Forms_and_Surveys/Email%20Subscription%20Service%20with%20n8n%20Forms%2C%20Airtable%20and%20AI.json) from [enescingoz/awesome-n8n-templates](https://github.com/enescingoz/awesome-n8n-templates).

Source collection notice: © 2024–2026 Enes Cingoz, [CC BY 4.0](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/LICENSE). This adaptation includes the changes above. See [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/README.md#licensing).

The image resize embeds the codec from [jpeg-js 0.4.4](https://github.com/jpeg-js/jpeg-js/tree/v0.4.4). The workflow JSON carries the upstream BSD notices and the decoder’s Apache 2.0 license.

## 使用するアプリ

*   [**Airtable**`airtable`](https://openflow.run/ja/integrations/airtable.md)
*   [**Gmail**`gmail`](https://openflow.run/ja/integrations/gmail.md)
*   [**OpenAI**`openai`](https://openflow.run/ja/integrations/openai.md)

## 必要な設定

*   Airtable subscriber table with Email, Topic, Status, Interval and Last Sent
*   OpenAI, Airtable and Gmail connections with send and update permission
*   An HTTPS unsubscribe confirmation page

*   newsletter
*   gmail
*   airtable
*   image
*   openai

[GitHub で見る](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/send-illustrated-fact-newsletters/README.md)
