Quick overview
This workflow runs daily, fetches newly posted Grants.gov opportunities via an Apify actor, appends the results to Google Sheets, and emails a plain-text digest of the new listings via Gmail.
How it works
- Runs every day at 07:00 using a cron schedule.
- Calls the Apify grants-gov-opportunity-finder actor with a keyword search for “artificial intelligence” limited to opportunities posted within the last day.
- Appends each returned opportunity (title, agency, number, dates, funding fields, and URL) as a new row in a specified Google Sheets spreadsheet.
- Aggregates all fetched opportunities into a single list.
- Sends a Gmail email to the configured recipient with a digest listing each opportunity and a subject line showing the total count.
Setup
- Create an Apify token and add it as HTTP Header Auth (Authorization: Bearer <token>) for the Apify request.
- Connect your Google Sheets OAuth2 credentials and replace YOUR_SHEET_ID with your target spreadsheet (and ensure Sheet1 has the expected columns).
- Connect your Gmail OAuth2 credentials and set the recipient email address for the digest.