How to Automate a Weekly Report With a Coze Workflow
A weekly report is a fixed sequence: fetch numbers, shape them, write a paragraph, deliver. In Coze that sequence is a workflow with five nodes, run on a trigger, and it either works every week or fails loudly. Silent failure is the real risk, so the design below includes a check node that exists only to alert.
Build time is about an hour for a first version that reads from an API and posts to chat.
What nodes does the workflow need
Five:
- HTTP request to your data source, with the key in a stored secret.
- Code node to transform the payload into the fields you report.
- LLM node to write the summary paragraph from the structured numbers.
- Format node to assemble the message.
- Delivery node to post to chat or email.
Order matters for one reason: give the LLM pre-computed numbers, never raw JSON. Models misread numbers in JSON, and a report with a wrong figure is worse than no report.
How do you keep the numbers right
Compute all sums and deltas in the code node with explicit types. Pass only labeled values to the LLM node, for example “new signups: 412, up 12% week over week.”
The LLM writes the prose and nothing else. If you ask it to calculate, you will spend Fridays checking arithmetic.
| Node | Failure mode |
|---|---|
| HTTP | Timeout, expired key |
| Code | Null field breaking a sum |
| LLM | Invents a number it was not given |
| Format | Empty field shows as undefined |
| Delivery | Wrong channel, permissions |
Add an assertion in the code node that fails the run if a required field is null. A failed run that alerts beats a delivered report with a blank line.
How do you handle a failed run
Add an error branch that posts to an internal channel with the node name and the error text. Then test it deliberately: revoke the API key and run once. If you do not see the alert, the error branch is not wired.
That test is worth the five minutes. Most weekly report automations are discovered broken by the person who was supposed to receive the report.
What does a run cost
Credits are consumed by LLM calls and workflow execution. A five-node workflow with one short LLM call is a small fraction of a credit per run, so a weekly report is trivially cheap. Frequency is the cost driver if you move to hourly.
For reports that are mostly a fixed template with three numbers, skip the LLM node entirely and let the code node format the message. Deterministic beats generated when the format never changes.
How does this compare with a code-based scheduler
A cron job plus a script is more flexible and easier to version. Coze’s advantage is that a person who does not write code can edit the prompt or the delivery target. If your team has an engineer and the report feeds a decision, the script is the better long-term choice; for a marketing weekly digest, the workflow saves setup time.
Bots that answer questions rather than generate reports use a different structure; Chatsimple covers the customer-facing version of that.
Who should not automate this
Reports requiring financial sign-off, where a person must verify the source each week, and reports whose schema changes monthly, where maintaining the workflow costs more than doing it by hand.
Quick Summary
- Five nodes: fetch, transform, summarize, format, deliver.
- Compute every number in a code node; the LLM writes prose only.
- Add an error branch and test it by breaking the API key.
- A weekly run costs a small fraction of a credit; frequency is the real driver.
- Use a script instead if an engineer owns it and the report feeds decisions.
