Automated pipeline for syncing leads between BigQuery and Instantly.ai for cold email campaigns.
git clone https://github.com/peterlopez/coldemailsystem.git
cd coldemailsystem- Go to Google Cloud Console
- Create or select your project
- Go to IAM & Admin > Service Accounts
- Create a new service account with BigQuery Admin role
- Download the JSON key file
- Save it as
config/secrets/bigquery-credentials.json
- Log in to your Instantly account
- Go to Settings > API
- Generate a new API key
- Create
config/secrets/instantly-config.json:
{
"api_key": "your-api-key-here",
"base_url": "https://api.instantly.ai"
}cp .env.example .env
# Edit .env with your project detailspip install -r requirements.txtpython scripts/test_config.pyCold Email System/
├── config/
│ ├── __init__.py
│ ├── config.py # Configuration manager
│ └── secrets/ # API keys and credentials (git-ignored)
├── functions/ # Cloud Functions code
├── scripts/ # Utility scripts
├── tests/ # Test files
├── .env.example # Environment template
├── .gitignore # Git ignore rules
├── CLAUDE.md # Implementation guide
└── README.md # This file
Once credentials are configured, the pipeline will:
- Export leads from BigQuery to Instantly
- Track email campaign progress
- Remove completed leads from sequences
- Update BigQuery with results
See CLAUDE.md for detailed implementation guide.