Email Notification Node
The Email Notification node sends HTML emails from your workflow, delivering alerts, trade confirmations, and reports straight to your inbox. It supports dynamic content interpolation so every email can include live data from upstream nodes.
Configuration
Credentials
Configuration
| Field | Description |
|---|---|
| API Credentials | NickAI Credits (default -- no setup needed) or your own Resend API key. |
| Subject | Email subject line. Supports interpolation with {inputs.field} syntax. Toggle the f(x) button for expression mode. |
| Body | HTML email content. Write raw HTML -- no markdown, no code fences, no JavaScript. Use {inputs.field} or {{edge_label.field}} to inject live data. |
<h1>, <p>, <table>, and <strong> directly. Use inline CSS for styling.Template Interpolation
Use curly braces to inject data from upstream nodes into your subject and body. The edge label connecting the previous node to your Email Notification node determines the variable prefix.
| Expression | Resolves to |
|---|---|
| {inputs.summary} | A field called summary from the connected input |
| {{price_data.data.prices[0].current}} | Current price from a Price Data node (edge labeled price_data) |
| {{llm.output}} | Full text output from an LLM node (edge labeled llm) |
| {{exchange.orderId}} | Order ID from an Exchange node (edge labeled exchange) |
Example: Trading Alert Email
Subject:
Trade Alert: {{llm.output}} signal for BTC/USD
Body:
<h1>Trading Signal Detected</h1>
<table style="border-collapse: collapse; width: 100%;">
<tr>
<td style="padding: 8px; border: 1px solid #ddd;"><strong>Symbol</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">BTC/USD</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd;"><strong>Signal</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">{{llm.output}}</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd;"><strong>Current Price</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">${{price_data.data.prices[0].current}}</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd;"><strong>24h Change</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">{{price_data.data.prices[0].changePercent24h}}%</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd;"><strong>RSI</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">{{price_data.data.prices[0].indicators.rsi}}</td>
</tr>
</table>
<p style="margin-top: 16px; color: #666;">
This alert was generated by your NickAI workflow.
</p>
Example: Order Confirmation Email
Subject:
Order Executed: Bought {{exchange.quantity}} {{exchange.symbol}}
Body:
<h1>Order Confirmation</h1>
<p>Your trade was executed successfully.</p>
<ul>
<li><strong>Symbol:</strong> {{exchange.symbol}}</li>
<li><strong>Side:</strong> {{exchange.side}}</li>
<li><strong>Quantity:</strong> {{exchange.quantity}}</li>
<li><strong>Order ID:</strong> {{exchange.orderId}}</li>
</ul>
<p>Check your <a href="https://app.getnick.ai/credentials">portfolio</a> for updated positions.</p>
Example Workflow
A typical pattern: fetch market data, analyze it with an LLM, check for a buy signal, and send an email alert.
You can also use the Email Notification node on the false branch to alert yourself that no signal was found, or connect it after any node where you want a status update.
Credentials Setup
You have two options for sending emails:
NickAI Credits (default)
Select NickAI Credits in the credential dropdown. Emails are sent from [email protected] using the platform's Resend account. There is nothing to configure -- it works out of the box.
Your Own Resend API Key
If you want emails to come from your own domain:
- Create a free account at resend.com ↗.
- Verify your domain ↗ in the Resend dashboard.
- Generate an API key at resend.com/api-keys ↗.
- In NickAI, go to Credentials and add a new Resend credential with your API key.
- Select your credential in the Email Notification node's dropdown.
When you use your own API key, NickAI automatically detects your first verified domain and sends from [email protected].
[email protected].Output
After execution, the node produces a result object you can reference in downstream nodes.
| Path | Description |
|---|---|
| {email.emailId} | The Resend email ID for tracking (e.g., re_abc123) |
| {email.success} | Boolean -- true if the email was sent successfully |
| {email.message} | Human-readable status message (e.g., "Email sent successfully to [email protected]") |
email with your node's edge label. If the edge connecting the Email Notification node to the next node is labeled notification, use {notification.emailId}.Next Steps
- LLM Node -- Generate dynamic email content with AI analysis.
- Conditional Node -- Send different emails based on trade outcomes.
- Function Node -- Format data before including it in your email body.
- Price Data Node -- Fetch live prices to include in alerts.
- Credentials -- Manage your Resend API keys and other credentials.