Scheduled Reports
Automate the generation and delivery of daily, weekly, or monthly reports to your team.
Use Case
You want to:
- Pull data from an API or database on a schedule
- Process and format the data
- Send a summary report via email
Step 1: Set Up a Schedule Trigger
Add a Schedule Trigger to run your workflow at a set interval.
- Add a Schedule Trigger node
- Configure the frequency:
- Daily at 9:00 AM
- Weekly on Mondays
- Monthly on the 1st
Step 2: Fetch Data
Add an HTTP Utilities node to pull data from your source.
- Add an HTTP Utilities node
- Set the method to
GET - Enter the API endpoint URL
- Add any required authentication headers
If you need data from multiple sources, add additional HTTP Utilities nodes or use a Loop node to iterate over multiple endpoints.
Step 3: Process the Data
Use a JSON node or AI Chat Model node to transform the raw data into a readable report format.
Option A: JSON Node
- Extract specific fields
- Calculate totals or averages
- Format numbers and dates
Option B: AI Node
- Send the raw data to an AI model with a prompt like:
Summarize the following data into a brief report with key metrics and trends:
{{http_node.output}}
Step 4: Send the Report
Add a Gmail node to deliver the report.
- Add a Gmail node
- Set the recipients (your team’s email addresses)
- Set the subject (e.g. “Weekly Sales Report - {{date}}”)
- Map the processed report into the email body
Step 5: Test and Publish
- Run a manual test to verify the data flow
- Check the email output for formatting
- Publish the workflow to activate the schedule
Best Practices
- Use a Data Validator node to check if the API returned valid data before processing
- Add a Router node to skip sending if there’s no new data
- Include a timestamp in the report subject for easy reference