Quick overview
This workflow monitors PR TIMES and Google News for order-management and logistics signals, matches detected companies against HubSpot, logs results to Google Sheets, and emails a daily digest via Gmail, optionally creating HubSpot tasks for existing companies.
How it works
- Runs every 30 minutes on weekdays from 7:00 to 20:00 (JST) to start signal collection.
- Reads the existing “シグナル” sheet in Google Sheets to avoid processing URLs that were already logged.
- Fetches the latest PR TIMES RSS feed every run and additionally queries Google News RSS at 8:00, 12:00, and 16:00 time slots, then scores items based on configurable keywords, exclusions, and competitor terms.
- Searches HubSpot CRM for matching companies using the detected company name and decides whether to create a follow-up task (disabled in TEST_MODE) or treat it as a new prospect.
- Creates a HubSpot task for matched companies with a due date three business days ahead (when not in TEST_MODE) and appends every detected signal to the Google Sheets “シグナル” tab with status and HubSpot links.
- Runs at 17:30 on weekdays (JST), reads the day’s signals from Google Sheets, generates an HTML summary grouped by category and HubSpot match status, and sends it via Gmail.
Setup
- Add credentials for Google Sheets and update the spreadsheet ID and “シグナル” sheet name if you use a different document or tab.
- Add a HubSpot private app token credential and confirm the HubSpot portal URL format and default owner ID used for task assignment.
- Add a Gmail credential and set the recipient address, sender name, and email options in the Gmail send step.
- Review and adjust the keyword rules, exclusion phrases, competitor list, scoring threshold, and TEST_MODE flag in the signal collection logic before enabling HubSpot task creation.