Skip to content

Case study · Solar & renewable energy

PowerSmith Energy — An operations portal for a San Diego solar company

Charyx Labs built PowerSmith Energy a React marketing site and a full operations portal: 15 screens across Rep, Team and Admin roles, a referral and affiliate programme mirrored into GoHighLevel, a commission engine that generates PDF statements on the server, an org chart, rep onboarding and training, and digital business cards with QR codes for every rep.

Client
PowerSmith Energy
Industry
Solar & renewable energy
Location
San Diego, California, United States

The problem

  • Referrals arrived by text and memory, so nobody could prove who sourced a deal when commission was due.
  • Commission was calculated by hand each cycle, which does not survive a growing rep roster.
  • New reps were onboarded person-to-person, so the quality of onboarding depended on who happened to do it.

What we built

  • A React and Vite marketing site, and a FastAPI + MongoDB operations portal with Rep, Team and Admin access levels across 15 screens.
  • Referral and affiliate routing mirrored into GoHighLevel, so the CRM stays the system of record rather than being replaced.
  • A commission engine deriving payouts from deal size, with server-generated PDF statements.
  • A live org chart, structured rep onboarding, SOPs, and digital business cards with QR codes.
  • AI content tooling built on the Anthropic SDK with structured outputs; media stored on Cloudflare R2.
  • An automated AI-avatar video pipeline: approving a social post enqueues a job on a FastAPI worker, which derives a spoken script from the caption, composites a branded backplate from a real job photograph, renders the presenter through the HeyGen REST API at the right dimensions for each platform, burns in captions with ffmpeg and re-hosts the finished MP4 on Cloudflare R2.
  • Monitoring that surfaces failures before the client notices them.

Outcomes

  • 54 API endpoints and five Claude-powered engines running in production.
  • Referral attribution is provable rather than remembered, which is what makes commission arguments stop.
  • Rep onboarding is repeatable: a new rep is added to the portal rather than trained from scratch.

Stack

  • React
  • Vite
  • FastAPI
  • MongoDB
  • Claude
  • HeyGen
  • GoHighLevel
  • Cloudflare R2
  • ffmpeg
  • Railway

Questions about this build

Does the operations portal replace GoHighLevel?

No. It mirrors into GoHighLevel rather than replacing it. The CRM stays the system of record, and the portal adds the referral attribution, commission and org-chart layer that a CRM does not provide.

How is commission calculated?

Commission is derived from deal size by a rules engine, and each cycle produces a PDF statement generated on the server. No spreadsheet is maintained by hand.

Why does the HeyGen video pipeline poll for completion instead of using a webhook?

Because a webhook needs a publicly routable endpoint, a shared secret, and it introduces a failure mode where a lost callback strands a render forever with nothing watching it. The durable job queue is already polling, so checking status costs nothing. Charyx Labs polls the HeyGen status endpoint every 15 seconds for up to 15 minutes, which makes a stuck job visible rather than silent.

Why re-host the finished video instead of using the link the generator returns?

AI video platforms return signed delivery URLs that expire. A post scheduled for next week pointing at an expired link publishes nothing, and the failure appears only after the slot has passed. Charyx Labs downloads every finished render and re-hosts it on the client's own Cloudflare R2 bucket before it is ever scheduled.

Tell us where your business is losing time.

We'll tell you whether that's an automation problem, an AI problem, or a product problem — and then we'll build the fix.

Send Mail

Or browse services · work