Templates / Screen contact activity from CSV with MCP client and OpenAI gpt-4o-mini

Screen contact activity from CSV with MCP client and OpenAI gpt-4o-mini

Ready for 3.0

by Václav Čikl ✓ · 9 views · created 2026-09-30 · Market Research, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (8)

MCP ClientOpenAI

What it does

Quick Overview This workflow manually processes a contacts CSV, fetches website/Facebook/Instagram page text via an MCP browser endpoint, then uses OpenAI to classify each contact as active, inactive, or uncertain and writes the results to an output CSV. How it works 1. Starts manually and reads a contacts CSV file from the local filesystem. 2. Parses the CSV into individual contact records and processes them in batches. 3. For each contact, builds browser automation steps to visit the provided website, Facebook, and Instagram URLs (when present) and extract visible page text through an MCP Client endpoint. 4. Cleans and aggregates the scraped text per channel and constructs an evidence-based screening prompt. 5. Sends the prompt to OpenAI (gpt-4o-mini) to return a JSON verdict (active/inactive/uncertain) with confidence and reasoning. 6. Formats one output row per contact (including evidence excerpts and timestamps) and writes all results to a CSV file, aborting if an unexpected runaway loop produces too many rows. Setup 1. Add your OpenAI API credentials and confirm the model selection in the OpenAI node. 2. Set up and run an MCP endpoint reachable at the configured URL (default: http://localhost:8931/mcp) and ensure it supports the browsernavigate, browserwaitfor, and browserevaluate tools. 3. Update the input CSV path and output CSV path to valid locations for your n8n host, and ensure the input columns match the expected fields (e.g. name, websiteurl, facebookurl, instagramurl). 4. Adjust the maximum expected row limit in the safety check code if you plan to process larger batches.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.