All workflows
Google Sheets logoAnthropic logoGmail logo

Send sentiment-aware emails with coupons

Emails each customer about their purchase in your tone, reads their feedback first, and adds a coupon when the feedback is negative.

Every day3 apps7 steps

Apps it connects

Authenticate each one once and the workflow is ready to run.

What it does

Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.

  1. 1Google SheetsCreate tabCreates the 'Emails sent' tab beside your purchases on the first run, and reuses it on every run after that.
  2. If sentLogIsNew

    1. 2Google SheetsAppend rowWrites the header on a new tab, then appends one row per email sent with address, product, sentiment, coupon and subject.
  3. 3Google SheetsRead columnReads the first column of the 'Emails sent' tab to find which customer and product pairs have already been emailed.
  4. 4Google SheetsRead rowsReads your purchases tab, taking the name, email, product and feedback from each row.
  5. For each row

    1. 5AnthropicGenerate model responseAsks the AI whether the feedback is positive, neutral or negative, then to write a subject and body in your tone.
    2. 6GmailSendSends each customer their personalised email from your own account, with the coupon included when the feedback was negative.
    3. 7Google SheetsAppend row

How it works

What happens on each run, in plain English.

Once a day, your sheet of purchases and feedback is read, AI works out whether each customer's feedback is positive, neutral or negative, and each one gets a personalised email from your own Gmail account in the tone you choose. Negative feedback earns an apology and a coupon code; everyone else gets a thank you that answers what they said.

Your sheet is never changed; a separate 'Emails sent' tab records one line per email: address, product, how the feedback was read, whether a coupon went out and the subject. That tab is checked before every send, so nobody is emailed twice about the same purchase, and if it cannot be written after a send the run stops at once. Rows with no feedback yet wait until it arrives, rows with a bad address are reported and skipped, and no coupon is ever offered on the thank you path. Each run sends a capped number of emails.

Your sheet needs 'Name', 'Email', 'Product' and 'Feedback' columns, plus a coupon code and what it is worth.

gmailgoogle sheetscustomer feedbacksentimentcouponsaidaily

Start from a workflow that already works.

Add "Send sentiment-aware emails with coupons" to your workspace, connect its apps, and make it yours. No credit card required.

Free plan available · No credit card required