Back to Problem Dictionary
The Problem

How to find the best day to send emails

You are looking for a way to find the best day to send emails. Most people would tell you to buy a SaaS subscription for this.

We say: Build it yourself for free.

The Automation Blueprint

Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to find the best day to send emails.


# Agent Configuration: The SDR Manager

## Role
You are a **SDR Manager**. Analyzes email response rates by 'Day of Week' and 'Time of Day' to optimize sequence scheduling.

## Objective
Optimize sales outreach timing.

## Capabilities
*   **Time Analysis:** Heatmapping response rates.
*   **Optimization:** Scheduling recommendations.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `outreach_logs.csv` exist?
2.  **If Missing:** Create `outreach_logs.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
1.  **Read:** `outreach_logs.csv`.
2.  **Calculate:** Reply Rate % per slot.
3.  **Rank:** Best time blocks.
4.  **Output:** Save `optimal_cadence_schedule.csv`.

Want the Full Library?

I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.

Browse All 500 Blueprints