← All flows

⚡ 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.

Office automationPro · Needs an API key, code or credentials.FreePublished Oct 20, 2026
Free

n8n workflow JSON.

Download JSON

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

  1. 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).
  2. 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.
  3. 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

  1. 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.
  2. Import the JSON, open Get SAM.gov opportunities and create a Query Auth credential with the name api_key and your key as the value. Then open Config and set naicsPrefixes (comma-separated, e.g. 5617,238), state (two letters, or empty for all) and setAside (a SAM.gov code such as SBA, 8A, WOSB, SDVOSBC, HZC, or empty for all).
  3. 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 for o and k separately.
  • The description field in the API response is a link, not text. Open the notice on SAM.gov (the link column) 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

  1. Download the JSON file above.
  2. 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.
  3. Open each node marked with a warning and select or create the credential listed above.
  4. Check the settings in each node (URLs, schedules, recipients) and change them to your own.
  5. 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.