
通知
いちばんシンプルな形。見出し、詳細の一文、任意の引用、リンクで構成します。
特定の注文や会話ひとつについて、一度だけ尋ねます。

How was {{subjectName}}?
How did we do?
You {{interactionVerb}} {{subjectName}} on {{interactionDate}}. If you have two minutes, we would like to know how it went. It is read by a person, and it changes what we do next.
Leave feedback [{{actionUrl}}]
Would rather not? That is completely fine. This is the only time we will ask about this one.
{{footerNote}}サンプルの値で表示しています。HTMLとプレーンテキストのタブでは、プレースホルダーがそのまま残ります。
概要
注文、サポートとのやり取り、来店などの数日後に送ります。会社全体ではなくその一回のやり取りについて尋ね、回答は人が読むと伝え、同じ件で二度と尋ねないと約束します。
値
必須の値は、送信のたびに必ず渡す必要があります。それ以外は、ここに示したデフォルト値が使われます。
| プレースホルダー | 種類 | 必須 | デフォルト |
|---|---|---|---|
{{subjectName}} | テキスト | 必須 | なし |
{{interactionVerb}} | テキスト | 任意 | ordered |
{{interactionDate}} | テキスト | 必須 | なし |
{{actionUrl}} | リンク | 必須 | なし |
{{footerNote}} | テキスト | 任意 | You are receiving this because of a recent interaction. |
API
このデザインからテンプレートを一度作成すれば、あとはメッセージごとの値を渡して送信できます。
import { init, openemail } from '@openemail/sdk' init({ apiKey: process.env.OPENEMAIL_API_KEY }) const template = await openemail.templates.create({ name: 'Feedback request', starter: 'feedback-request', publish: true,}) const sent = await openemail.templates.send(template.slug, { from: 'Northwind <[email protected]>', to: '[email protected]', props: { subjectName: 'the linen overshirt', interactionDate: '24 September', actionUrl: 'https://example.com/feedback/NW-10482', },}) console.log(sent.id, sent.status)通知
テンプレートから始める
どのテンプレートも、エディターでは移動、スタイル変更、削除ができるブロックとして開き、APIからは値を埋めて送信できます。
企業、AI、エージェント、個人利用のためのメールインフラ。スケール、プライバシー、コントロールのために設計。メールが最初から備えているべきだったすべて。