First Pipeline Run
Run your first AI pipeline and see GridWork HQ in action.
First Pipeline Run
This tutorial walks you through running the prospect pipeline — the most common starting point for agency operations. By the end, you will have a ranked list of local business leads written to your Notion database.
Prerequisites
Before starting, make sure:
- The dashboard is running at
http://localhost:3000 - The pipeline server is running at
http://localhost:8750 - You are logged in to the dashboard
- Your
ANTHROPIC_API_KEYis set inpipeline-server/.env
Option A: Run from the Dashboard
- Navigate to Mission Control in the sidebar
- Find the Prospect pipeline card
- Enter a search query, for example:
barbershops in Buckhead - Click Run
The pipeline will start and you will see streaming output in the dashboard. The pipeline server spawns a Claude Code process that:
- Searches for businesses matching your query
- Visits each business website and audits it for mobile responsiveness, page speed, design quality, and SEO
- Attempts to find contact emails from the website and search results
- Scores each lead as HOT, WARM, or COLD based on site quality and need
- Writes HOT and WARM leads with confirmed emails to your Notion Leads database
- Saves the full results to
~/agency-workspace/.output/prospect-[area]-[type].md
Option B: Run via API
curl -X POST http://localhost:8750/pipelines/run \
-H "Authorization: Bearer YOUR_PIPELINE_SERVER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"pipeline": "prospect", "args": "barbershops in Atlanta"}'Replace YOUR_PIPELINE_SERVER_TOKEN with the token from your pipeline-server/.env file.
What to Expect
The prospect pipeline typically takes 3-5 minutes to complete. The output is a ranked table:
| # | Business | URL | Score | Issues | Pitch Angle | |
|---|---|---|---|---|---|---|
| 1 | Example Barber | example.com | info@example.com | HOT | No mobile site, slow load | Full site rebuild |
| 2 | Other Shop | other.com | NOT FOUND | WARM | Decent but dated design | SEO upgrade |
At the bottom, you will see a lead summary:
- Total found: how many businesses were discovered
- With email: how many had confirmed emails (these get written to Notion)
- Without email: excluded from Notion (may require walk-in outreach)
Checking the Output
In the Dashboard
Navigate to the Reports section to see the generated output file.
On Disk
ls ~/agency-workspace/.output/prospect-*In Notion
If you configured your Notion Leads database, open it to see the new lead entries. Each entry includes the business name, industry, area, score, website URL, contact email, and suggested pitch angle.
Caching
The prospect pipeline caches results for 7 days. If you run the same query again within that window, it will show cached results and ask whether to use them or run fresh.
Next Steps
After your first prospect run:
- Run
audit [business name]on a HOT lead to generate a detailed site audit - Run
outreach [business name]to draft a personalized email - Explore the other 17 pipelines available in GridWork HQ
Troubleshooting
Pipeline starts but produces no output:
- Verify
ANTHROPIC_API_KEYis set inpipeline-server/.env - Verify Claude Code CLI is installed:
claude --version - Check pipeline server logs for errors
Dashboard shows "Pipeline server unreachable":
- Verify the pipeline server is running:
curl http://localhost:8750/health - Check that
PIPELINE_SERVER_TOKENmatches in both.env.localandpipeline-server/.env
Leads not appearing in Notion:
- Verify
NOTION_API_KEYandNOTION_LEADS_DBare set - Verify the Notion database is shared with your integration
- Only HOT and WARM leads with confirmed emails are written to Notion