Healthcare policy monitoring with ScrapeGraphAI, Pipedrive and email alerts
Medical Research Tracker with Email and Pipedrive
⚠️ COMMUNITY TEMPLATE DISCLAIMER: This is a community-contributed template that uses ScrapeGraphAI (a community node). Please ensure you have the ScrapeGraphAI community node installed in your n8n instance before using this template.
This workflow automatically scans authoritative healthcare policy websites for new research, bills, or regulatory changes, stores relevant findings in Pipedrive, and immediately notifies key stakeholders via email. It is ideal for healthcare administrators and policy analysts who need to stay ahead of emerging legislation or guidance that could impact clinical operations, compliance, and strategy.
Pre-conditions/Requirements
Prerequisites
- n8n instance (self-hosted or n8n cloud)
- ScrapeGraphAI community node installed
- Pipedrive account and API token
- SMTP credentials (or native n8n Email credentials) for sending alerts
- List of target URLs or RSS feeds from government or healthcare policy organizations
- Basic familiarity with n8n credential setup
Required Credentials
| Service | Credential Name | Purpose | |--------------------|-----------------|-----------------------------------| | ScrapeGraphAI | API Key | Perform web scraping | | Pipedrive | API Token | Create / update deals & notes | | Email (SMTP/Nodemailer) | SMTP creds | Send alert emails |
Environment Variables (optional)
| Variable | Example Value | Description | |-------------------------|------------------------------|-----------------------------------------------| | N8N_DEFAULT_EMAIL_FROM | policy-bot@yourorg.com | Default sender for Email Send node | | POLICY_KEYWORDS | telehealth, Medicare, HIPAA | Comma-separated keywords for filtering |
How it works
This workflow automatically scans authoritative healthcare policy websites for new research, bills, or regulatory changes, stores relevant findings in Pipedrive, and immediately notifies key stakeholders via email. It is ideal for healthcare administrators and policy analysts who need to stay ahead of emerging legislation or guidance that could impact clinical operations, compliance, and strategy.
Key Steps:
- Manual Trigger: Kick-starts the workflow or schedules it via cron.
- Set → URL List: Defines the list of healthcare policy pages or RSS feeds to scrape.
- Split In Batches: Iterates through each URL so scraping happens sequentially.
- ScrapeGraphAI: Extracts headlines, publication dates, and links.
- Code (Filter & Normalize): Removes duplicates, standardizes JSON structure, and applies keyword filters.
- HTTP Request: Optionally enriches data with summary content using external APIs (e.g., OpenAI, SummarizeBot).
- If Node: Checks if the policy item is new (not already logged in Pipedrive).
- Pipedrive: Creates a new deal or note for tracking and collaboration.
- Email Send: Sends an alert to compliance or leadership teams with the policy summary.
- Sticky Note: Provides inline documentation inside the workflow.
Set up steps
Setup Time: 15–20 minutes
- Install ScrapeGraphAI: In n8n, go to “Settings → Community Nodes” and install
n8n-nodes-scrapegraphai. - Create Credentials:
a. Pipedrive → “API Token” from your Pipedrive settings → add in n8n.
b. ScrapeGraphAI → obtain API key → add as credential.
c. Email SMTP → configure sender details in n8n. - Import Workflow: Copy the JSON template into n8n (“Import from clipboard”).
- Update URL List: Open the initial Set node and replace placeholder URLs with the sites you monitor (e.g.,
cms.gov,nih.gov,who.int, state health departments). - Define Keywords (optional):
a. Open the Code node “Filter & Normalize”.
b. Adjust theconst keywords = [...]array to match topics you care about. - Test Run: Trigger manually; verify that:
- Scraped items appear in the execution logs.
- New deals/notes show up in Pipedrive.
- Alert email lands in your inbox.
- Schedule: Add a Cron node (e.g., every 6 hours) in place of Manual Trigger for automated execution.
Node Descriptions
Core Workflow Nodes:
- Manual Trigger – Launches the workflow on demand.
- Set – URL List – Holds an array of target policy URLs/RSS feeds.
- Split In Batches – Processes each URL one at a time to avoid rate limiting.
- ScrapeGraphAI – Scrapes page content and parses structured data.
- Code – Filter & Normalize – Cleans results, removes duplicates, applies keyword filter.
- HTTP Request – Summarize – Calls a summarization API (optional).
- If – Duplicate Check – Queries Pipedrive to see if the policy item already exists.
- Pipedrive (Deal/Note) – Logs a new deal or adds a note with policy details.
- Email Send – Alert – Notifies subscribed stakeholders.
- Sticky Note – Embedded instructions inside the canvas.
Data Flow:
- Manual Trigger → Set (URLs) → Split In Batches → ScrapeGraphAI → Code (Filter) → If (Duplicate?) → Pipedrive → Email Send
Customization Examples
1. Add Slack notifications
// Insert after Email Send
{
"node": "Slack",
"parameters": {
"channel": "#policy-alerts",
"text": `New policy update: ${$json["title"]} - ${$json["url"]}`
}
}
2. Use different CRM (HubSpot)
// Replace Pipedrive node config
{
"resource": "deal",
"operation": "create",
"title": $json["title"],
"properties": {
"dealstage": "appointmentscheduled",
"description": $json["summary"]
}
}
Data Output Format
The workflow outputs structured JSON data:
{
"title": "Telehealth Expansion Act of 2024",
"date": "2024-05-30",
"url": "https://www.congress.gov/bill/118th-congress-house-bill/1234",
"summary": "This bill proposes expanding Medicare reimbursement for telehealth services...",
"source": "congress.gov",
"status": "new"
}
Troubleshooting
Common Issues
- Empty Scrape Results – Check if the target site uses JavaScript rendering; ScrapeGraphAI may need a headless browser option enabled.
- Duplicate Deals in Pipedrive – Ensure the “If Duplicate?” node compares a unique field (e.g., URL or title) before creating a new deal.
Performance Tips
- Limit batch size to avoid API rate limits.
- Cache or store the last scraped timestamp to skip unchanged pages.
Pro Tips:
- Combine this workflow with an n8n “Cron” or “Webhook” trigger for fully automated monitoring.
- Use environment variables for keywords and email recipients to avoid editing nodes each time.
- Leverage Pipedrive’s automations to notify additional teams (e.g., legal) when high-priority items are logged.
Healthcare Policy Monitoring with ScrapeGraphAI, Pipedrive, and Email Alerts
This n8n workflow automates the process of monitoring healthcare policies, extracting key information, and then taking action based on specific criteria. It integrates with a web scraping tool (ScrapeGraphAI via HTTP Request), a CRM (Pipedrive), and an email service to provide timely alerts and lead generation.
What it does
This workflow streamlines the following tasks:
- Manual Trigger: The workflow is initiated manually, allowing for on-demand execution.
- Web Scraping with ScrapeGraphAI: It makes an HTTP request to an external API (presumably ScrapeGraphAI) to scrape data, likely related to healthcare policies or news.
- Data Transformation: The scraped data is processed and transformed using a Code node, likely to extract relevant fields and format them for subsequent steps.
- Field Editing: A "Set" node is used to explicitly define and rename fields, ensuring data consistency.
- Conditional Logic (If Node): The workflow evaluates the processed data against a condition. This condition likely checks for specific keywords, policy changes, or other criteria indicating a significant event.
- Pipedrive Integration (If Condition is TRUE): If the condition in the "If" node evaluates to TRUE, the workflow interacts with Pipedrive. This could involve creating a new deal, updating an existing one, or adding an activity, potentially flagging a new lead or an important policy change.
- Email Alert (If Condition is TRUE): Simultaneously, if the condition is TRUE, an email alert is sent, notifying relevant stakeholders about the detected event or policy change.
- Loop Over Items: The workflow is designed to process multiple items, likely iterating through a list of scraped data entries.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running n8n instance to import and execute the workflow.
- ScrapeGraphAI (or similar web scraping API): An endpoint for a web scraping service that can be accessed via HTTP requests. The workflow is configured to call an external API.
- Pipedrive Account: Credentials for a Pipedrive account to create or update deals/activities.
- SMTP Credentials: Configuration for sending emails (e.g., an email account with SMTP access).
Setup/Usage
- Import the Workflow:
- Download the provided JSON file.
- In your n8n instance, click on "Workflows" in the left sidebar.
- Click "New" -> "Import from JSON" and paste the workflow JSON or upload the file.
- Configure Credentials:
- HTTP Request (ScrapeGraphAI): Configure the URL and any necessary authentication headers for your ScrapeGraphAI or web scraping API.
- Pipedrive: Create or select an existing Pipedrive credential in n8n.
- Send Email: Create or select an existing Email (SMTP) credential in n8n.
- Customize Nodes:
- Code Node: Review and adjust the JavaScript code to precisely extract and transform the data according to your specific scraping output and desired format.
- Edit Fields (Set): Modify the fields being set to match the data you want to carry through the workflow.
- If Node: Define the specific conditions (e.g., keywords, data values) that should trigger the Pipedrive and email actions.
- Pipedrive Node: Configure the Pipedrive action (e.g., "Create Deal," "Update Person") and map the data fields from the previous nodes to Pipedrive fields.
- Send Email Node: Customize the email subject, body, recipient, and sender based on your alerting needs.
- Activate the Workflow: Once configured, activate the workflow.
- Execute: Click "Execute Workflow" in the Manual Trigger node to run the workflow on demand.
Related Templates
Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets
This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions
Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review
This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.