Template Variables
Available Variables
| Variable | Description | Example |
|---|---|---|
| UTC timestamp | 2026-01-15 10:30:00 UTC |
| Schedule timezone | Asia/Hong_Kong |
| Configured app name | GlobalPulse |
| Schedule identifier | US Morning Brief |
| Topic query string | Tech earnings |
| RSS source URL | https://rss.example.com |
| Report type | us_stock |
| Report mode | market |
| News items markdown | **AAPL** +5%... |
| News items plain text | AAPL +5%... |
| News items JSON | [{"title":"AAPL..."}] |
| AI research output | Full markdown report |
Digest Mode Variables
Used when reportMode: "digest":
News items formatted as markdown list:
markdown
- **AAPL** Reports Q4 Earnings Beat
- Revenue: $119.6B (+8% YoY)
- EPS: $2.18 vs $2.10 expected
- **TSLA** Announces New Factory
- Location: Mexico
- Investment: $10B
Plain text alternative:
• AAPL Reports Q4 Earnings Beat
Revenue: $119.6B (+8% YoY)
EPS: $2.18 vs $2.10 expected
• TSLA Announces New Factory
JSON array of news items:
json
[
{
"title": "AAPL Reports Q4 Earnings Beat",
"summary": "Revenue: $119.6B...",
"url": "https://example.com/article",
"source": "NewsAPI",
"publishedAt": "2026-01-15T10:00:00Z"
}
]Market Mode Variables
Used when reportMode: "market":
AI-generated research report with:
- Market summary
- Top movers
- Technical signals
- Sentiment analysis
- Catalysts
- Position updates
- Macro context
Example structure:
markdown
# US Market Briefing - 2026-01-15
## Market Summary
S&P 500 +1.2% | Nasdaq +1.5% | Dow +0.8%
## Top Movers
| Symbol | Price | Change |
|--------|-------|--------|
| NVDA | $650 | +5.2% |
| AMD | $150 | +3.8% |
## Signals
- NVDA: RSI Overbought (75)
- AMD: Golden Cross detected
## Sentiment: Bullish
Tech sector showing strong momentum...
## Catalysts
- Fed meeting minutes released
- CPI data in line with expectationsDynamic Variables
Time Formatting
format: YYYY-MM-DD HH:mm:ss TZ
Customizable via Admin UI timezone selection.
Conditional Content
Use provider-specific formatting to handle differences:
Telegram (HTML):
html
<b>{{appName}}</b> 📊
{{itemsMarkdown}}Feishu (Markdown):
markdown
**{{appName}}** 📊
{{itemsMarkdown}}Email (HTML):
html
<h1>{{appName}}</h1>
<div class="content">{{itemsMarkdown}}</div>
<footer>{{generatedAt}} • {{timezone}}</footer>