Daily Revenue Briefing Workflow
Ready-made WorqHat template
Launch "Daily Revenue Briefing Workflow" as a workflow
Duplicate this recipe inside WorqHat to get the outlined triggers, nodes, and delivery logic preconfigured. Update credentials, recipients, and copy, then ship it to production.
- • All workflow nodes referenced in this guide
- • Structured JSON outputs for dashboards and mailers
- • Inline documentation for faster handoffs
Get started checklist
- 1. Duplicate the workflow template.
- 2. Connect your datasource and credentials.
- 3. Customize content and recipients.
Overview
A North American commerce team replaced a fragile manual reporting ritual with a formal WorqHat workflow that assembles a complete revenue briefing by 09:00 each morning. The process now issues a precise summary, KPI table, and inline visualizations without CSV handoffs or spreadsheet remediation.
Previous State
- 08:00 – Manual export from the sales platform
- 08:20 – Ad hoc spreadsheet manipulation and charting
- 08:45 – Copy/paste into a slide deck
- 09:05 – “Good enough” email to leadership
- 12:00 – Follow‑up thread to fix inconsistencies
The workflow consumed senior operators, introduced version drift, and failed to earn trust in the numbers delivered at stand‑up.
Target State
A five-node WorqHat workflow replaced the ritual with a deterministic, auditable pipeline:
- Time-Based Runs – Executes daily at 09:00 with no human intervention.
- Query Data – Issues a parameterized SQL query against the production sales cluster (yesterday’s transactions).
- Text Gen (Detailed Analysis) – Converts the result set into a formal executive summary and normalized JSON payload of metrics.
- Create Graphs – Renders visual assets (bar, line, stacked, dual-axis) directly from the JSON metrics.
- Send Mail – Distributes the final briefing (summary, KPI table, inline charts, action recommendations) to the leadership alias.
Detailed Node Configuration
1. Time-Based Runs
- Trigger: 09:00 America/New_York, Monday–Friday
- Retry: 2 attempts with exponential backoff
2. Query Data
- Source:
prod.sales.transactions - Filters:
transaction_date = current_date - interval '1 day' - Output: Structured rows (amount, product, channel, timestamp, refunds)
3. Text Gen (Detailed Analysis)
- Prompt: “Summarize trends, produce JSON with revenue, transactions, AOV, conversion, refunds, category deltas, anomalies, and action cues.”
- Outputs:
- Executive summary paragraphs
- JSON metrics for downstream visualization
4. Create Graphs
- Visuals:
- Revenue by category (bar)
- Day-over-day revenue trend (line)
- Conversion vs. AOV (dual-axis)
- Refunds vs. net revenue (stacked bar)
- Rendering: Server-side PNG, embedded as CID attachments
5. Send Mail
- Subject:
Daily Revenue Briefing — {{yesterday_date}} - Body Sections: Executive summary, KPI table, inline charts, “Actions Today” list
- Delivery Time: 09:00 ± 1 minute
Outcomes
- 10+ hours/week saved by the operations team
- Leadership alignment before the morning stand‑up (briefing arrives at 09:00 sharp)
- Single source of truth thanks to direct database pulls
- Continuous monitoring due to anomaly callouts in the generated summary
Recommended Actions
- Configure the five-node pipeline in WorqHat using your production datasource.
- Parameterize the Text Gen prompt with organizational tone and required KPIs.
- Validate the JSON schema once, then wire Create Graphs and Send Mail directly to it.
- Extend the workflow with escalation logic (e.g., notify finance when refunds exceed thresholds).
Next Steps
Use this pattern to formalize any recurring business briefing:
- Replace CSV-driven morning rituals with deterministic WorqHat workflows.
- Maintain structured JSON outputs to power both prose and visuals.
- Keep ownership within business operations—no engineering tickets required.
👉 Build this workflow in WorqHat and reclaim your morning.
Workflow overview
Watch the walkthrough
Detailed walkthrough showing the trigger, query, Text Gen analysis, charting, and email nodes, along with the KPIs surfaced to leadership.
