This project demonstrates a custom automation that combines Python logic with Zapier and Google Sheets.
- Google Sheets – A new row is added (with Name and Email).
- Zapier – Detects the new row and sends the data to a Python script via webhook.
- Python (Pipedream) – Processes the data (e.g., validates email, creates a greeting) and returns a result.
- Zapier – Writes the result back to the spreadsheet, along with a timestamp.
- Python 3
- Pipedream (webhook hosting)
- Zapier
- Google Sheets
- Clone this repo.
- The core logic is in
process_name.py. - Deploy the script as a webhook on Pipedream (or any serverless platform).
- Create a Zap with:
- Trigger: Google Sheets – New Row
- Action: Webhook – POST to your Pipedream URL
- Second Action: Google Sheets – Update Row (write back the result)
- Test with a new spreadsheet entry.
process_name.py– Main Python script (can be used locally or as a webhook).pipedream_version.py– Version adapted for Pipedream’seventobject..gitignore– Ignores Python cache and environment files.
Input (Google Sheets row):
| Name | |
|---|---|
| Alice | alice@example.com |
Output:
| Name | Result | Timestamp | |
|---|---|---|---|
| Alice | alice@example.com | Hello, Alice! | 2025-03-26 12:34:56 |
- Add error handling and logging.
- Integrate with external APIs (e.g., email validation).
- Use environment variables for secrets.