Scheduled Reports and Alerts

Automated insights on your schedule

Generate daily digests, weekly summaries, and threshold-based alerts. Deliver to Slack, Discord, email, or any channel your team uses.

Value: Daily/weekly digests, threshold alerts, multi-channel delivery

How it works

1

Write your report function

Query your data sources, aggregate metrics, and format the output. Return structured data or rendered Markdown.

2

Set a schedule

Use cron expressions to run daily at 9am, weekly on Monday, or any schedule you need.

3

Configure delivery

Route output to Slack, Discord, Telegram, or email. Different reports can go to different channels.

4

Add threshold alerts

Run checks on a schedule. When metrics cross a threshold, trigger an immediate notification.

Capabilities used

Example: Daily metrics report

// daily-metrics.ts
import { defineHandler } from '@fold-run/runtime'
 
export default defineHandler(async (fold) => {
const metrics = await fetchDailyMetrics();
 
const report = `
## Daily Metrics Report
- Active users: ${metrics.activeUsers}
- Revenue: $${metrics.revenue}
- New signups: ${metrics.signups}
`;
 
return fold.json({ report });
});
 
# Schedule for 9am daily
$ fold schedule add daily-metrics --cron "0 9 * * *"
← All Use Cases

Start building

Free tier. No credit card. Deploy your first function in minutes.

Get Started