{"name": "Ep9 - Review Request (sellable automation)", "nodes": [
{"parameters": {"formTitle": "Job Done", "formDescription": "Technician fills this in when the job is finished.", "formFields": {"values": [{"fieldLabel": "Customer name", "requiredField": true}, {"fieldLabel": "Customer email", "fieldType": "email", "requiredField": true}, {"fieldLabel": "Job", "requiredField": true}, {"fieldLabel": "Technician", "requiredField": true}]}, "options": {}}, "id": "b1", "name": "Job Done", "type": "n8n-nodes-base.formTrigger", "typeVersion": 2.2, "position": [0, 0], "webhookId": "ep9-job-done"},
{"parameters": {"assignments": {"assignments": [{"id": "s1", "name": "name", "value": "={{ $json['Customer name'] }}", "type": "string"}, {"id": "s2", "name": "email", "value": "={{ $json['Customer email'] }}", "type": "string"}, {"id": "s3", "name": "job", "value": "={{ $json.Job }}", "type": "string"}, {"id": "s4", "name": "tech", "value": "={{ $json.Technician }}", "type": "string"}, {"id": "s5", "name": "review_link", "value": "https://g.page/r/your-google-review-link", "type": "string"}, {"id": "s6", "name": "sent", "value": "={{ $now.toFormat('yyyy-MM-dd HH:mm') }}", "type": "string"}]}, "options": {}}, "id": "b2", "name": "Build Message", "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [260, 0]},
{"parameters": {"sendTo": "={{ $json.email }}", "subject": "=How did {{ $json.tech }} do today, {{ $json.name }}?", "emailType": "text", "message": "=Hi {{ $json.name }},\n\nThanks for having us out today for: {{ $json.job }}\n\nIf {{ $json.tech }} did a good job, a quick Google review helps a small business more than you would think. It takes about a minute:\n{{ $json.review_link }}\n\nIf anything was not right, just reply to this email and the owner will call you.\n\nThanks again,\nThe Team", "options": {"appendAttribution": false, "senderName": "OwnerAutomate Demo"}}, "id": "b3", "name": "Send Review Request", "type": "n8n-nodes-base.gmail", "typeVersion": 2.1, "position": [520, 0], "credentials": {"gmailOAuth2": {"id": "avT0HSTU0k73ksRU", "name": "Gmail (OwnerAutomate)"}}},
{"parameters": {"operation": "completion", "completionTitle": "=Review request sent to {{ $('Build Message').item.json.name }}", "completionMessage": "Logged. Next job.", "options": {}}, "id": "b4", "name": "Done", "type": "n8n-nodes-base.form", "typeVersion": 1, "position": [780, 0]}
], "connections": {"Job Done": {"main": [[{"node": "Build Message", "type": "main", "index": 0}]]}, "Build Message": {"main": [[{"node": "Send Review Request", "type": "main", "index": 0}]]}, "Send Review Request": {"main": [[{"node": "Done", "type": "main", "index": 0}]]}}, "settings": {"executionOrder": "v1"}}
