This workflow sends each hiring manager a single weekly email with an overview of their open roles: pipeline totals, a per‑position summary, interviews scheduled next week and stuck candidates (no movement ≥ 7 days). It queries Breezy HR using your API token, detects the HM via each position’s team (falling back to a simple map when unavailable), aggregates results and emails one digest per HM. The job runs Mondays at 07:30 Asia/Kolkata, includes a DRY_RUN preview and rate‑limits sends.
STUCK_AFTER_DAYS.Authorization: Bearer <YOUR_TOKEN> in a credential (don’t hardcode in the node).BREEZY_API_BASE = https://api.breezy.hr/v3COMPANY_ID = your Breezy company IDTIMEZONE = Asia/KolkataINCLUDE_ONLY_OPEN = true (use STATE_FILTER = open)USE_BREEZY_HM_DETECTION = trueHM_FALLBACK_MAP_JSON = e.g., { "Default": "[email protected]", "Java TL": "[email protected]" }STUCK_AFTER_DAYS = 7INTERVIEW_EVENT_KEYWORDS_CSV = interviewSMTP_FROM = sender addressSUBJECT_TEMPLATE = Weekly HM snapshot {{range}} — {{positions_count}} roles, {{candidates_count}} candidatesINTRO_TEMPLATE / OUTRO_TEMPLATEDRY_RUN = false (set true to preview)RATE_LIMIT_EMAIL_SECONDS = 5INCLUDE_ONLY_OPEN=false to include other position states.INTERVIEW_EVENT_KEYWORDS_CSV to match your account’s event labels.STUCK_AFTER_DAYS (e.g., 10 or 14).SUBJECT_TEMPLATE, INTRO_TEMPLATE, OUTRO_TEMPLATE.HM_FALLBACK_MAP_JSON for positions lacking team data.| Issue | Possible Cause | Solution |
|---|---|---|
| No emails sent | DRY_RUN=true |
Set DRY_RUN=false to send. |
| Missing HM recipients | Team endpoint returned no “hiring manager” and fallback map not configured | Add position→email in HM_FALLBACK_MAP_JSON (or set a better default). |
| Interviews list is empty | Different event label in your Breezy account | Add your labels to INTERVIEW_EVENT_KEYWORDS_CSV (comma‑separated). |
| Stuck candidates not flagged | Threshold too high or activity timestamps missing | Lower STUCK_AFTER_DAYS or verify candidate activity data. |
| API errors | Bad token or insufficient scopes | Recreate the Breezy credential with a valid Bearer token. |
| Emails fail to send | SMTP auth/quota issues | Check SMTP credentials/from‑address permissions and provider limits. |
If you’d like help tuning the interview filters, changing the grouping logic, or adding Slack/CSV writebacks, feel free to reach out our n8n experts at WeblineIndia. We'll be happy to help you tailor this to your stack.