Skip to content

add-testimonial

Use when adding testimonials or reviews to a site from any source — manual entry, Google Reviews API, or Yelp. Also use when a site’s AggregateRating schema needs to be created or updated after new reviews are added.

ModelSource
sonnetpack: content-creation
Full Reference

Structured testimonial management — accepts reviews from manual entry or external APIs (Google Business Profile, Yelp Fusion), creates Review and AggregateRating schema markup, generates display components, and stores reviews in a content collection or JSON file. Recalculates aggregate rating after every addition.

ItemValue
Google API endpointmybusiness.googleapis.com/v4/accounts/{id}/locations/{id}/reviews
Yelp API endpointapi.yelp.com/v3/businesses/{id}/reviews — returns 3 reviews max
Astro storagesrc/content/testimonials/[slug].json
Non-Astro storagecontent/testimonials.json (array)
Schema typesReview per testimonial + AggregateRating on LocalBusiness
I want to…File
Set up data structure, schema markup, and aggregate rating calculationreference/data-and-schema.md
Pull reviews from manual entry, Google API, or Yelp; build display componentsreference/input-sources-and-components.md

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.

When invoked, start with: ┏━ 🧠 add-testimonial ━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ [describe the testimonial being added] ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛