Skip to content
Blog

· Natrajan

How to create a daily email digest of pending lead outcomes

Learn step-by-step how to send a daily Gmail summary of contacts still waiting on their outcome deadline, so you never miss a follow-up.

Young adult man working on a laptop in a modern office with colorful decor.
Photo by Vitaly Gariev on Pexels

If a lead slips through the cracks because you missed its follow-up deadline, the loss shows up later as a missed sale. A daily email digest that lists every contact still waiting on its outcome gives you a single, predictable moment to act before a deadline expires. It’s a lightweight safety net that works even when you have multiple entry points—forms, inbound email, CSV imports, or signed webhooks.

Below we walk through building that digest with OutcomeOS, from defining the outcome to sending the Gmail summary. The steps are concrete, require no custom code, and rely only on the integrations that OutcomeOS supports.

1. Define the outcome and set a clear deadline

OutcomeOS treats automation as a result, not a run. Start by creating an outcome that represents “lead has been contacted.”

ElementWhat to set
Start eventNew contact arrives (form link, inbound email, CSV import, API, or signed webhook)
Success eventsAuthenticated API call confirming the contact was called or messaged, or a signed webhook from your phone-call provider
Failure eventsExplicit “cannot contact” API call or a timeout without any success event
Deadline48 hours after the start event (adjust to your sales cycle)

Only when a trusted success event arrives does OutcomeOS mark the outcome as achieved. A workflow that simply finishes does not count as success.

2. Pull the list of contacts still waiting

OutcomeOS tracks each contact’s progress toward the outcome automatically. To generate the digest you need a step that queries “contacts with an unachieved outcome whose deadline is within the next 24 hours.”

  1. Add an HTTP request step that calls OutcomeOS’s contacts endpoint with filters: * outcome_status=waiting * deadline<=now+24h
  2. Configure the step’s idempotency key (e.g., daily-digest-{{date}}) so the query can be retried safely if the request times out.

If the HTTP request fails ambiguously (e.g., network glitch), OutcomeOS will place the step in “Requires attention” rather than retrying blindly—this follows the platform’s rule about non-idempotent steps.

3. Format the data for email

The HTTP response returns a JSON array of contacts. Use an HTTP request to a lightweight rendering service (or any endpoint you control) to turn that array into a readable list:

Pending Lead Follow-up – {{date}}
---------------------------------
{% for c in contacts %}
• {{c.name}} – {{c.email}} – Deadline: {{c.deadline}}
{% endfor %}
Total pending: {{contacts|length}}

The output is plain text, which Gmail can send without extra formatting.

4. Send the digest with Gmail

OutcomeOS includes a Gmail sending integration. Add a “Send email” step:

  • To: your sales manager’s address (or a distribution list)
  • Subject: “Daily Pending Lead Digest – {{date}}”
  • Body: the rendered text from the previous step

If Gmail returns a temporary error, configure a retry policy with an idempotency key like digest-email-{{date}}. The retry will use the same email content, avoiding duplicate sends.

5. Optional: add an urgent SMS reminder

If any pending lead’s deadline is less than 4 hours away, you might want an extra nudge. Add a filter after step 2 that checks for deadline <= now+4h. For each matching contact, fire a Twilio SMS step:

  • To: the owner’s phone number
  • Message: “Lead {{name}} needs contact by {{deadline}}”

Configure the SMS step with its own idempotency key (urgent-sms-{{contact.id}}) so that a retry does not send the same alert twice.

6. Schedule the workflow to run daily

Finally, set the workflow’s trigger to “Every day at 08:00 UTC.” The platform will launch the steps automatically, generate the list, and email the digest without any manual intervention.

Note: While many tools talk about “runs vs. outcomes,” OutcomeOS only marks an outcome achieved when a trusted success event arrives. Likewise, non-idempotent steps that fail ambiguously go to “Requires attention” instead of being retried blindly.

Quick checklist

  • Create an outcome with start, success, failure events and a 48-hour deadline.
  • Add an HTTP request to fetch contacts waiting on the outcome (deadline ≤ now + 24 h).
  • Use an idempotency key for the query (daily-digest-{{date}}).
  • Render the contact list into a plain-text email body.
  • Send the email via Gmail integration.
  • (Optional) Filter for urgent contacts and send Twilio SMS alerts.
  • Schedule the workflow to run every day at a convenient time.

How OutcomeOS makes this easy

OutcomeOS lets you define outcomes with explicit success criteria, automatically tracks each contact’s status, and provides built-in Gmail and Twilio integrations for the digest and alerts. With per-step idempotency keys and a “requires attention” fallback for ambiguous failures, you get reliable daily reporting without guessing whether a run succeeded.

Start building your daily pending-lead digest now: sign up for a free Starter account or compare plans to see which fits your team at the OutcomeOS compare page.

One short letter when we ship something worth switching for.

Double opt-in. Unsubscribe from any issue in one click.