A demonstration project showcasing an automation agent workflow for data collection tasks. The agent reads data from a spreadsheet, performs web searches for each row, and outputs the results—ideal for lead research, contact enrichment, or batch lookup operations.
An automation agent is a program that performs a sequence of tasks autonomously, typically:
- Reading input from a source (files, databases, APIs)
- Processing each item according to defined rules
- Executing actions (e.g., web searches, API calls, data transformations)
- Outputting results (console, files, or other systems)
This project implements a simple but realistic agent that automates the workflow of looking up information for each row in a spreadsheet—a common pattern in data collection and research automation.
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ data.xlsx │ ──► │ agent.py │ ──► │ web_search.py │ ──► │ Console Output │
│ (Spreadsheet) │ │ (Orchestrator) │ │ (HTTP Request) │ │ (Results) │
└─────────────────┘ └─────────────────┘ └─────────────────┘ └─────────────────┘
- Spreadsheet –
data.xlsxcontains rows withid,name,company,city,website, andstatus. - Agent –
agent.pyreads each row, builds a search query fromnameandcompany, and coordinates the workflow. - Web Search –
web_search.pyperforms HTTP requests to a search API for each query. - Result – Results are printed to the console with summaries and related information.
| Technology | Purpose |
|---|---|
| Python | Core language for the automation logic |
| pandas | Reading and processing Excel spreadsheets |
| openpyxl | Excel file support for pandas |
| requests | HTTP requests for web search API calls |
python-automation-agent/
├── agent.py # Main orchestrator - runs the workflow
├── spreadsheet_reader.py # Reads Excel data with pandas
├── web_search.py # Performs web searches via requests
├── data.xlsx # Sample spreadsheet (10 rows)
├── create_sample_data.py # Script to regenerate data.xlsx
├── requirements.txt # Python dependencies
└── README.md # This file
pip install -r requirements.txtIf data.xlsx doesn't exist, generate it:
python create_sample_data.pypython agent.py============================================================
PYTHON AUTOMATION AGENT - Data Collection Workflow
============================================================
[1] Reading spreadsheet: data.xlsx
Found 10 rows to process.
[2] Processing rows (spreadsheet -> agent -> web search -> result)
------------------------------------------------------------
Row 1 (id=1): Sarah Chen @ TechFlow Solutions
Search query: "Sarah Chen TechFlow Solutions"
Summary: ...
URL: ...
This project serves as an example automation agent for data collection tasks, such as:
- Lead research – Look up companies and contacts from a CRM export
- Contact enrichment – Add public information to spreadsheet records
- Batch verification – Validate company names and get summaries
- Portfolio demo – Showcase Python, pandas, and requests in a clear workflow
MIT License - feel free to use and modify for your projects.