Reputation & Reviews
Post-visit feedback form, WhatsApp rating survey, Google review links and low-score handling, review replies, social posts, and booking attribution.
5 min read
Overview
The reputation module collects structured client feedback after a visit, sends happy clients to Google, alerts managers about unhappy ones, helps draft replies to reviews, and reports where bookings come from. Kagami does not pull Google reviews automatically: there is no Google Business Profile integration.

Feedback Form
After a completed visit the client receives a WhatsApp message with a single-use link to a short public form (/feedback/<token>). Managers manage it in Feedback in the dashboard.
Sending
/api/cron/ai-nps-surveys runs every 15 minutes. For each brand that has Enable Feedback Collection on (Feedback -> Settings):
- It picks appointments that ended 90 minutes to 4 hours ago, today (IST), so a bulk-completed old visit never triggers a late message.
- It sends only between 10:00 and 21:00 IST, at most 40 clients per run, and never twice for the same appointment (a failed send is retried).
- Inside the 24 hour WhatsApp window the link goes as plain text. Outside it, the approved
salon_feedback_linktemplate is used, whose button carries the token. - The token expires after 7 days.
- A brand with WhatsApp off or not configured is skipped.
What the client sees
- An overall 1 to 5 star rating (required).
- Optional star ratings per area: the stylist (only when a stylist is known), service quality, the store, and front desk. The owner can turn each off and add up to 5 custom star questions (80 characters each).
- Optional "what could be better" choices: waiting time, price, cleanliness, staff behaviour, result of service.
- An optional comment (up to 1000 characters; the owner can switch the comment box off).
- A link that is used once, expired, or belongs to a brand that turned feedback off shows a specific message saying why.
The public submit endpoint is rate limited by IP.
Low scores and the Google button
- Each brand (and store) has a low-score cut-off: the
client_complaintalert's "Alert at this rating or lower" setting, default 3 stars (Settings -> Team & access -> Alerts). - If the overall rating, or any area rating, is at or below the cut-off, the managers who receive that alert get a message with the client's name and phone, store, stylist, the low areas, the chosen improvement items and the comment.
- Only clients whose overall rating is above the cut-off are shown the Google review button.
- Managers work low responses in the Feedback dashboard: mark as called (a note is required) and then resolved.
Results are visible to managers only. The dashboard shows responses, a satisfaction summary, and per-client ratings.
WhatsApp Rating Survey (older flow)
Replies to the older in-chat survey (tap a 1 to 5 option, or the salon_feedback_request template buttons) are still handled by the WhatsApp webhook. A rating above the cut-off gets a thank-you with the store's Google review link and a referral code (worth ₹500 to the referrer once a friend visits), and a rating at or below it gets an apology and a client_complaint alert to managers. Each survey can be rated once.
Google Review Links
A review link is a plain https URL to the Google review page. It is set in Marketing -> Journeys: one for the brand, and optionally one per store. A store's own link wins over the brand link. Only managers can change links, and a non-https value is refused with a message.
Where links are used:
| Path | Trigger |
|---|---|
review_request journey |
24 hours (default) after a paid invoice or completed visit. Cancelled with the reason "No Google review link set" if neither link exists |
| Feedback form | Shown to clients who rated above the cut-off |
| Rating survey | Sent to clients who rated above the cut-off |
The journey does not look at the client's rating, so it can ask someone who rated low for a public review. There is no minimum-rating filter on it.
A second, older review-request sender (POST /api/review-requests/process, with its own delay and template) was never scheduled and was removed in SALO-3036.
Reviews and Replies
Reputation -> Reviews lists review requests sent to clients. Star rating and review text are entered by hand once a client has reviewed; they are not fetched from Google. The page shows average rating, rating distribution and replies sent.
- AI reply: one click drafts a reply matched to the star rating (warm for 4 and 5, constructive for 3, empathetic below). A manager edits and saves it. Saving marks the request replied; it does not post to Google, so the reply must be pasted into Google by hand.
Social Posts
Reputation -> Social Content drafts captions, hashtags and an image prompt with AI for Instagram, Facebook, Google Business or X. Facebook Page and Instagram posts can be published from Kagami once the Page id and token are saved in Settings -> Social profiles; the other platforms are drafts you copy out.
Attribution
Reputation -> Attribution & ROI groups appointments by their stored utm_source (booking links carry it; no source shows as "direct"). It shows bookings per source, revenue from completed services, and ROAS when spend is known.
Ad spend is entered by hand: source name, platform (Google Ads, Meta Ads, organic, referral, other), UTM source, amount and date. There is no CSV or API import of ad spend. Server-side conversion events to Meta are covered in Integrations.
Key Data Entities
- feedback_campaigns - per-brand feedback switch, comment prompt, thank-you text and question config
- feedback_responses - one single-use link per visit: token, expiry, send status, answers, tags, comment, follow-up status and note
- ai_nps_surveys - the older in-chat rating survey
- review_requests - a review request with stars, review text and reply
- social_posts - drafted and published posts
- attribution_sources - hand-entered ad spend per source and date
- brands.google_review_url, locations.google_review_url - review links
Permissions
- Feedback settings, responses and follow-ups: managers (org owner, brand manager, location manager). Front desk and stylists cannot see them.
- Google review links: managers.
- Low-score alert cut-off: whoever may edit alert settings (Settings -> Team & access -> Alerts).
- Review replies, social posts and attribution: checked only as "signed-in member of the brand" in the code reviewed; role limits were not verified.