⚡ SAM.gov Daily Opportunities Digest
Every morning, pulls yesterday's new federal solicitations from the SAM.gov public API, filters them by NAICS, state and set-aside, adds a short bid/no-bid checklist and saves the list as a CSV file.
What it does
This is the do-it-yourself version of our federal small-purchase daily digest. It runs on your own n8n instance with your own SAM.gov API key, so you control the filters and keep the output.
What it does
- At 07:00 (your n8n instance’s time zone) it asks the SAM.gov Get Opportunities Public API for notices posted yesterday with the types “Solicitation” (
o) and “Combined Synopsis/Solicitation” (k). - A Code node keeps only the notices that match your NAICS prefixes, state and set-aside, sorts them by response deadline and adds a “days left” column plus five standard bid/no-bid questions.
- The result is turned into a CSV file you can save to Drive, attach to a message or just download from the execution.
It never sends email. Add a Gmail, Slack or Google Drive node at the end if you want delivery.
Setup
- Get a public API key: sign in at SAM.gov, open your Account Details page and request a public API key. GSA’s API page explains the steps and the daily request limits for your account type.
- Import the JSON, open Get SAM.gov opportunities and create a Query Auth credential with the name
api_keyand your key as the value. Then open Config and setnaicsPrefixes(comma-separated, e.g.5617,238),state(two letters, or empty for all) andsetAside(a SAM.gov code such asSBA,8A,WOSB,SDVOSBC,HZC, or empty for all). - Run it once by hand to check the output, then activate it.
Good to know
- Personal keys can have a low daily request limit, so this flow makes one request per run. It asks for up to 1,000 notices of both types at once (
ptype=o,k). If your run returns only one type, duplicate the HTTP Request node and ask foroandkseparately. - The description field in the API response is a link, not text. Open the notice on SAM.gov (the
linkcolumn) to read the full solicitation and its attachments before you bid. - Your key lives in n8n’s credential store, not in the workflow, so you can share the workflow JSON safely.
Required nodes
- Schedule Trigger
- Edit Fields (Set)
- HTTP Request
- Code
- Convert to File
Credentials
| Query Auth (SAM.gov public API key) | Sends your free SAM.gov public API key as the api_key query parameter on the HTTP Request node. |
Our JSON never contains credentials, credential IDs or webhook URLs. You connect your own after import.
Import steps
- Download the JSON file above.
- In n8n, open a new workflow, then open the Workflow menu in the canvas header and choose Import from File…. You can also paste the JSON straight into the editor.
- Open each node marked with a warning and select or create the credential listed above.
- Check the settings in each node (URLs, schedules, recipients) and change them to your own.
- Click Execute workflow once to test, then click Publish so schedules and webhooks run in production. Full guide.
Test log
No recorded test runs yet. We only list a tool under “Tested on” after a real run passes, with the date and model.