Home / Barbershops & salons / Review request
Google review text after a Square checkout
Clients leave happy, mean to leave a review, and forget. A text a couple of hours after they pay gets far more of them to actually do it.
How it works
- Every hour, the workflow asks Square for payments made 2-3 hours ago.
- It keeps completed payments that have a client attached, skips anyone it has already asked, and looks up their mobile number in Square.
- Each client gets one text with your Google review link. Ask everyone, not only happy clients: Google's review policy doesn't allow selectively asking for positive reviews.
- Replies come to your email. If someone replies with the word URGENT, your cell gets a text right away, they get a quick 'got it', and the normal reply is skipped.
- Before anything else, it checks the request really came from Twilio (signed with your auth token). Anything else gets a 403 and stops. (This applies to the reply webhook.)
Tools used
How we got this number
- Twilio local number (skip if you already have one for another recipe)$1.15
- Texting registration (A2P 10DLC) monthly fee$2
- ~200 text segments (~150 review asks plus replies)$1.66
- carrier fees on ~200 outbound texts$1
- Automation platform (or self-host n8n free)β¬20
- Square Appointments Free (payments API works on any plan)$0
Assumes ~150 paid visits a month with a client attached. Square only; see the note below for other booking tools. Prices are list prices checked 2026-10-26; see every source.
Plus one-time texting registration (A2P 10DLC): about $19.50 (low-volume brand + campaign vetting). Source
The full setup, step by step
19 steps in one n8n workflow. Everything below is generated from the template itself, so it always matches.
Before you start
You need an n8n account (n8n, or self-host it free) plus your own logins for: Square Appointments Twilio Gmail / Google Workspace.
How the automation flows
Every hour (review texts)
Tap a step to jump to its details.
Each step and what it does
- 1Trigger (schedule)
Every hour
Runs on its own every hour while the workflow is active.
Runsevery hour
Then β 3. Config (edit me)
- 2Trigger
Incoming text
Twilio calls this webhook every time someone texts your business number.
Webhook path
YOUR_N8N_URL/webhook/review-smsThen β 3. Config (edit me)
- 3Settings
Config (edit me)
One place for everything specific to your business. Every later step reads from here, so this is the only node you have to edit.
Then β 4. Scheduled run or text?
- 4Decision
Scheduled run or text?
The schedule and Twilio share this workflow. Scheduled runs do the sending; texts (which carry a Twilio MessageSid) go through the signature check.
Rulethe request has no Twilio MessageSid (so it's the scheduled run)
Scheduled runs β 5. Get recent Square payments Β· Texts β 11. Check Twilio signature
- 5API call (Square)
Get recent Square payments
Asks Square for payments made 2 to 3 hours ago, so each client is texted about 2 hours after checkout.
GET
https://connect.squareup.com/v2/payments?begin_time=β¦&end_time=β¦π Connect your Square (access token) login on this node
Then β 6. Keep finished visits
- 6Code (security check)
Keep finished visits
Keeps only completed payments that have a Square customer attached.
Then β 7. Ask each client only once
- 7Remove repeats
Ask each client only once
Remembers every customer ID it has seen in earlier runs and drops repeats, so nobody gets asked twice.
Then β 8. Get the client from Square
- 8API call (Square)
Get the client from Square
Looks up the customer's first name and mobile number in Square.
GET
https://connect.squareup.com/v2/customers/{customer_id}π Connect your Square (access token) login on this node
Then β 9. Has a mobile number?
- 9Decision
Has a mobile number?
Skips clients without a phone number on file.
Rulethe client's mobile is filled in
If yes β 10. Text the review link Β· If no β stops here
- 10Send SMS (Twilio)
Text the review link
Texts your Google review link with their first name.
Sendsthe message shown under Message copy
π Connect your Twilio login on this node
End of this path.
- 11Code (security check)
Check Twilio signature
Proves the request really came from Twilio. It rebuilds Twilio's signature (HMAC-SHA1 of your webhook URL plus every field Twilio sent, keyed with your auth token) and compares it to the X-Twilio-Signature header. Uses Node's built-in crypto module: fine on n8n Cloud; self-hosted n8n needs NODE_FUNCTION_ALLOW_BUILTIN=crypto.
DetailsHow the Twilio security check works
Then β 12. Signature valid?
- 12Decision
Signature valid?
Only real Twilio requests continue. Anything else (a bot, a fake request, a wrong URL in Config) goes to the 403 step.
Rulethe signature Twilio sent matches the one rebuilt from your auth token
If yes β 13. Acknowledge Twilio (text) Β· If no β 19. Reject: not from Twilio (403)
- 13Reply to request
Acknowledge Twilio (text)
Tells Twilio the text was received. The reply goes out separately, so this one sends nothing to the customer.
Then β 14. Says URGENT?
- 14Decision
Says URGENT?
If the customer's text contains the word URGENT (any capitalization), the urgent path runs instead of the normal reply.
Ruletheir text contains βurgentβ
If yes β 15. Text the owner (URGENT) Β· If no β 18. Forward the reply to you
- 15Send SMS (Twilio)
Text the owner (URGENT)
Texts your cell right away with their number and exactly what they wrote.
Sendsthe message shown under Message copy
π Connect your Twilio login on this node
Then β 16. Text the customer (URGENT ack)
- 16Send SMS (Twilio)
Text the customer (URGENT ack)
Lets the customer know their message reached you.
Sendsthe message shown under Message copy
π Connect your Twilio login on this node
- 17Send email (Gmail)
Email the owner (URGENT, optional)
A copy by email. If Gmail isn't connected or fails, the workflow still finishes (the text already went out).
Sendsthe message shown under Message copy
π Connect your Gmail login on this node
End of this path.
- 18Send email (Gmail)
Forward the reply to you
Emails you what they wrote, so you can answer from your phone.
Sendsthe message shown under Message copy
π Connect your Gmail login on this node
End of this path.
- 19Reply to request
Reject: not from Twilio (403)
Answers 403 Forbidden and stops. Nothing is texted, emailed or saved.
Responds
403 ForbiddenEnd of this path.
Key settings to change
All of these live in the Config (edit me) node. Change them once and every text and email updates.
| Setting | Placeholder in the template | Change it to |
|---|---|---|
Business namebusiness_name | YOUR BUSINESS NAME | Exactly how customers know you. It appears in every text. |
Booking / calendar linkbooking_link | https://YOUR-BOOKING-LINK | Your online booking page (Booksy, Square Appointments, SQUIRE, Vagaro, Fresha, Calendly...). Use the short public link. |
Hourshours | Mon-Fri 8am-6pm | Short and text-friendly, e.g. Mon-Fri 8am-6pm. |
Your emailowner_email | you@example.com | Where the 'new lead' and 'missed call' alerts go. |
Your cellowner_cell | +15555550100 | In +1 format (+15551234567). Texts from this number that start with WAIT update the wait time. |
Twilio numbertwilio_number | +15555550199 | The number you bought in Twilio, in +1 format. Texts are sent from it. |
Twilio auth tokentwilio_auth_token | PASTE_YOUR_TWILIO_AUTH_TOKEN | Twilio Console > Account info > Auth Token. Used only to check that requests really came from Twilio. Treat it like a password: don't share the workflow once it's filled in. |
Incoming-text webhook URLtwilio_sms_webhook_url | https://YOUR-N8N-URL/webhook/review-sms | The exact Production URL of the Incoming text node, the same one you paste into Twilio (Messaging > A message comes in). One character off and every text gets a 403. |
Google review linkgoogle_review_link | https://g.page/r/YOUR_REVIEW_LINK/review | Google Business Profile > Ask for reviews > copy the link. |
Message copy: exactly what it sends
Highlighted parts are filled in automatically. Edit the wording right in the node.
Subject URGENT: text from their phone number
Your cell was texted and they were told you'll get back to them right away.
Subject Reply from their phone number (replied to a review request)
Reply to them from your phone or the Twilio console.
How the Twilio security check works
Your webhook URL is public, so anyone who finds it could send fake "texts" and make the workflow text people on your dime. Every request Twilio sends is signed, so the first thing this workflow does is check that signature:
- Take the exact webhook URL from Config (
twilio_sms_webhook_url, ortwilio_voice_webhook_urlfor call events). - Sort every field Twilio posted by name and glue each name and value onto the end of the URL (
β¦BodyhiFrom+1555β¦). - HMAC-SHA1 that string with your Twilio auth token, base64-encode it, and compare it to the
X-Twilio-Signatureheader (a constant-time compare). - Match: continue. No match, no header, or no URL/token in Config: answer
403 Forbiddenand stop.
It's a Code node because n8n's Crypto node can't do HMAC-SHA1. It uses Node's built-in crypto module: allowed on n8n Cloud. Self-hosted n8n: set the environment variable NODE_FUNCTION_ALLOW_BUILTIN=crypto (on your task runners too, if you use them), or the node errors.
The auth token lives only in Config. Never paste it into the code, and don't share your workflow export once it's filled in.
Hook it up
- In the Square Developer Console, create an app and copy its production access token (for your own account only).
- In n8n, create a Header Auth credential: Name
Authorization, ValueBearer YOUR_SQUARE_ACCESS_TOKEN. Pick it on both Square nodes. - Fill in Config (edit me), including your Google review link (Google Business Profile > Ask for reviews), Twilio auth token and the incoming-text webhook URL.
- Connect Twilio and Gmail credentials.
- In Twilio > Phone Numbers > your number > Messaging: 'A message comes in' > Webhook, HTTP POST,
https://YOUR-N8N-URL/webhook/review-sms. Paste the exact same URL into twilio_sms_webhook_url in Config. A number has one 'message comes in' webhook, so if you run several of these workflows on one number, point it at only one of them. - Activate. Every hour it looks at payments from 2-3 hours ago, so each client is texted about 2 hours after checkout, once.
Square only: payments must have a customer attached. Multiple locations? Add &location_id=... to the payments URL (default is your main location).
Security: the Check Twilio signature node rejects (403) anything not signed with your Twilio auth token. Self-hosted n8n: set NODE_FUNCTION_ALLOW_BUILTIN=crypto. Don't share this workflow once your token is in it.
Test it before you trust it
Skip the clicking
Get the ready-to-import n8n template
Every step above, already wired up. Paste it into n8n, add your logins, fill in your business info and you're live.
β Unlocked. Here's your template.
- In n8n: click New workflow.
- Paste onto the empty canvas (Ctrl/Cmd+V).
- Set your credentials on the red nodes, then fill in Config (edit me).
Download .json instead
Done-for-you setup
Rather not build it yourself?
Set it up yourself, or I'll set it up for you in a week.
- I set up the same templates on this site in your own n8n, Twilio and Google accounts, so you own everything.
- Your business info, booking link and message wording filled in, and every test on the setup page run with you.
- Live within a week of getting your logins.
Tell me your trade and how customers reach you today. I'll reply by email with next steps.