Skip to content
Guide

How to post a daily report to Slack with live numbers from an API

Every weekday morning, fetch numbers from an API, format them as $1,289.50 or 15%, and post one short message to a Slack channel. No script, no server.

Updated

Yesterday's sign-ups, open tickets, revenue so far this month: numbers your team would look at if they didn't have to open a dashboard. Slack can post a fixed reminder on a schedule by itself, but it can't fetch today's numbers. This guide builds a workflow that does: every weekday morning it calls your API, formats the figures, and posts one short message to a channel. No code.

  1. Trigger

    On a schedule

    Monday to Friday at 09:00, in your timezone.
  2. Step 1

    HTTP request

    GET https://api.example.com/stats/daily
  3. Step 2

    Format

    Step 1 → Body → Revenue as currency, USD
  4. Step 3

    Post to Slack

    “Daily report: Step 1 → Body → Signups sign-ups, Step 2 → Result revenue”
The workflow you'll build: fetch, format, post.

Before you start

  • A Foliot account. A daily report is about 22 to 30 runs a month, well within the free plan.
  • An API that returns the numbers as JSON, like your app's stats endpoint, an analytics API or a database API. If it needs a key, have it ready.
  • A Slack workspace where you can add apps, and the channel to post in.

Create a Slack incoming webhook

Foliot posts through a Slack incoming webhook, a secret URL tied to one channel. In short (Slack's docs): create an app at api.slack.com/apps, open Incoming Webhooks, turn it on, click Add New Webhook to Workspace, pick the channel and copy the URL that starts with https://hooks.slack.com/services/.

Set it up in Foliot

1. Create the workflow and pick the schedule

Create a new workflow and choose On a schedule. Pick on certain days of the week, Monday to Friday, at 09:00, and your timezone. Foliot keeps the time right through daylight-saving changes. Runs start within about a minute of the slot.

2. Fetch the numbers

Click + and choose HTTP request: method GET, the URL of your endpoint, and query parameters if it takes a date range. For an API key, add it as an “API credentials” connection, so it's stored encrypted and never shown in the run history. Test this step makes the call for real and shows the response, for example:

{ "signups": 42, "revenue": 1289.5, "open_tickets": 7 }

Each field is now a chip for later steps: Step 1 → Body → Signups, Step 1 → Body → Revenue, Step 1 → Body → Open tickets.

3. Format the figures (optional)

Numbers come back raw: 1289.5. Add a Format step, choose Number, pick Step 1 → Body → Revenue and Currency with the code USD, and the result is $1,289.50. The panel previews it with your sample. One Format step makes one change, so add another for a percentage (a fraction like 0.15 becomes 15%) or for a date shown as “Friday” or “17 Oct 2026”.

4. Post to Slack

Add Post to Slack. Under Slack connection, choose + Add a Slack webhook… and paste the URL from Slack; Foliot stores it encrypted. Then write the message, picking chips where the numbers go:

*Daily report*, [Trigger → Scheduled at]
Sign-ups yesterday: [Step 1 → Body → Signups]
Revenue this month: [Step 2 → Result]
Open tickets: [Step 1 → Body → Open tickets]

The bracketed parts are chips. Slack formatting works: *bold*, _italic_ and links as <https://example.com|text>. A Trigger → Scheduled at chip comes out as an ISO time; put a Format step in front to show it as a date in your timezone.

5. Test, then turn the workflow on

Test this step posts a real message to the channel. When it reads well, switch the workflow on. The trigger panel shows when the next run is.

Useful variations

  • Several sources: add one HTTP request per API, then one Slack message that uses chips from each. It's still one run.
  • A list in the message: if the API returns items (say, the open tickets), a Code step can turn them into lines of text with a few lines of JavaScript, and the Slack step posts the result. Or use For each to post one message per item (up to 100).
  • A written summary: Ask AI can turn the numbers into two plain sentences. Prompts go to Anthropic, and the free plan allows 50 AI calls a day.
  • Only when there's news: a Filter such as “Only continue if Step 1 → Body → Open tickets is greater than 0” keeps quiet days quiet.
  • Discord or email instead: swap the last step for Post to Discord or Send email.

Good to know

  • Each scheduled run is one run: weekdays at 09:00 is about 22 runs a month, daily is 30. The free plan includes 500 runs a month.
  • The HTTP request step can only reach public addresses, with a 15-second timeout and 1 MB responses.
  • Foliot only posts to Slack. It can't read the channel, reply in threads or act as a bot.
  • If a run is missed, say during an outage, Foliot runs once for the first missed slot and then continues with the next one; it doesn't catch up on every missed slot.

Other ways to do it

  • Slack's own reminders and scheduled messages post fixed text on a schedule. Use them when the message doesn't change.
  • Your dashboard tool's Slack integration, if it has one, posts charts and numbers from the data it already holds.
  • A cron job and a script that calls the API and posts to the webhook. See cron job without a server for the trade-offs.

Questions

Can Slack post a daily message with live data by itself?

Slack's reminders and scheduled messages post fixed text. To include today's numbers, something has to fetch them first: this workflow calls your API on a schedule and posts the result through an incoming webhook.

How do I format the numbers?

With the Format step: a number as 1,234.50, as currency ($1,234.50 with a 3-letter code), as a percent, or rounded; a date as 17 Oct 2026 or a weekday. One Format step per change.

What if the API is down that morning?

The request is retried after 30 seconds, 2 minutes and 10 minutes. If it still fails, nothing is posted, the run is marked failed and you get an email. Re-run it once the API is back.

Is it free?

A daily report is about 30 runs a month; weekdays only is about 22. The free plan includes 500 runs a month and 5 active workflows.