The gist
Takes a company's last funding date (from Attio / PitchBook), standardizes it against today's date, and returns a router decision telling the next Zap step which outreach template to send:
congrats— they raised in the last ~2 months. Send the "congrats on the raise" outreach.normal— otherwise. Send the standard intro email.
The flow
- Inputs —
lastfundingdate(e.g."2025-02-21") andtodaydate(ISO from Zapier), viainputDatain a "Run JavaScript" step. - Standardize. Both strings get parsed into real
Dateobjects so downstream math is correct regardless of whether the input had a time component. - Compute the gap in months using an average-month constant
(
30.44days), which is good enough for a 2-month cutoff. - Return
{ outreach_type }. Branch the Zap on it — one path drafts the congrats note, the other drafts the standard intro.
Why this exists
Reaching out cold five days after a founder closes a round is a different conversation than reaching out cold five months later. This is the one-liner that picks the right opening for you so you stop sending generic intros to founders who just raised.