Send daily SAM.gov contract digests to Slack and Gmail
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Slack and Gmail. It also calls api.sam.gov over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Configure: NAICS, keywords and set-asides (Edit Fields (Set)): sets 11 fields: apiKey, naics, keywords…
- Slack: uses Slack
- Build SAM.gov search (Code): runs custom JavaScript code
- Search SAM.gov opportunities (HTTP Request): calls api.sam.gov (GET)
- Normalize, filter and key notices (Code): runs custom JavaScript code
- Format SAM.gov fetch error (Code): runs custom JavaScript code
- Skip notices already alerted (Remove Duplicates): removes duplicate items
- Slack: uses Slack
- Quiet first run (Code): runs custom JavaScript code
- Build Slack and Gmail digests (Code): runs custom JavaScript code
…plus 2 more steps. See the full node list below.
Services it uses
Other Gmail + Slack templates (957)
HTTP calls to: api.sam.gov
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Remove Duplicates
n8n-nodes-base.removeDuplicates - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow runs daily to search the official SAM.gov Get Opportunities Public API for new contract notices matching your NAICS codes, keywords, and set-asides, then sends a single digest to Slack and a matching HTML digest via Gmail while…