Counselling in the Community: intake, room hire and a member portal for a King's Award charity
A bespoke Next.js and Supabase platform for Counselling in the Community, a King's Award charity running four counselling hubs on the Fylde Coast. Five audiences share one front door and are routed by need. Behind it sit an availability-safe room-hire engine, a member portal for people who have finished counselling, a staff operations suite, and a website chat agent with live human takeover.

Labels distinguish client facts, reported results, comparisons and delivered system capabilities.
The bottleneck
Counselling in the Community runs four hubs across the Fylde Coast, supports more than 160 people a week, and is carried largely by volunteers, over a hundred of them. It has been going since 2017, and in 2025 it received the King's Award for Voluntary Service, the highest honour a UK volunteer-led group can be given.
None of that structure existed on its website. The old site carried the standard charity shape: about us, donate, contact. But CITC is not a single-funnel organisation. It is five audiences sharing one front door. An adult looking for affordable counselling this week. A parent seeking play therapy for a four-year-old. A qualified therapist who wants to hire a room by the hour. A trainee counsellor looking for a supervised placement. A donor or volunteer who wants to help. Each of those people needs a different next step, and one large Donate button serves none of them well.
Behind the front door it was worse. Enquiries arrived by form and sat in an inbox until somebody was at a desk. Room hire was arranged by email, with a human checking whether the hour was already taken. Former clients, once their sessions ended, had nowhere to go for the techniques they had just spent months learning. And the staff who coordinated all of it, a duty safeguarding lead rota, policies, CPD, payments, a suggestion box, had no shared surface at all.
What I built
A bespoke Next.js platform on Supabase, with the public marketing site, the intake and booking paths, an authenticated member area and a staff operations suite in one codebase, on the charity's own domain.
- Intent routing at the front door. The homepage segments visitors by what they actually need, whether that is help for themselves or someone else, giving, volunteering, hiring a room, or applying for a placement, rather than funnelling everyone into the same page. Pricing is published openly: a sliding scale from £5 to £30 depending on income, £10 for the initial assessment whoever you are, and an explicit statement that no one is turned away because of money. The fast-track route (£40 a session, typically seen within seven working days, no GP referral) is explained beside it rather than hidden behind a contact form.
- Four hubs, properly represented. South Shore, Bispham (the children's centre, with the sensory room and play-based therapy), Cleveleys and Fleetwood each get real content: the address, what is delivered there, and who it is for, instead of a single list of postcodes.
- A three-step intake. Get in touch, then a brief assessment call that triages need and matches the right counselling pathway, then start your sessions. Each step is its own surface, so a person in difficulty is being routed rather than asked to work out the charity's internal process.
- Room hire with an availability engine. Qualified therapists and coaches can book a therapy room at three of the hubs, from £10 an hour, no deposit, no membership fee and no minimum block. A public availability endpoint returns the slots already held for a given hub and date. The booking is then protected by a Postgres exclusion constraint, so two hirers submitting for the same hour cannot both succeed. Staff confirm the booking, and the hirer is invoiced after the session.
- A counselling placement path. Trainee counsellors apply through a dedicated page with its own eligibility criteria and key dates. Applications land in their own table behind their own staff tab, deliberately kept separate from client enquiries and room bookings, because processing a placement is a completely different job.
- A members area for people who have finished counselling. Members log in to a dashboard showing where their journey sits, from received through assigned and active to complete, alongside a techniques library spanning grounding, CBT, mindfulness, self-compassion, emotional regulation, relapse prevention and sleep, a personal maintenance plan they write themselves, and a crisis page with emergency contacts and a one-click route back into the service.
- A staff operations suite behind auth. Enquiries, live chats, room bookings, placements, user and role management, the duty-safeguarding-lead rota, safeguarding, CPD, a staff library, policies, payment links, a suggestion box and a directory of local services with addresses, all behind role-scoped Supabase auth. None of it is reachable from the public site, and the chat transcripts are never exposed to an anonymous visitor.
- A website chat agent that answers rather than deflects. An in-page assistant answers questions from a curated knowledge base covering services, pricing, hubs and room hire, and captures both counselling and room-hire leads straight into the same database the staff dashboard reads. A member of staff can take the conversation over live from the chat console, and the assistant stops talking the moment a human starts. Conversations are rate-limited and the transcript stays on the server.
- Every lead, whatever route it came in. Three Postgres triggers, one on enquiries, one on room bookings and one on placement applications, fire an edge function directly over
pg_netand email the team the moment a row is inserted. Because the notification is driven by the database rather than by the form, it catches the public form and the chat agent alike, and it survives a mid-deploy web app.
What changed
The site now carries the shape of the organisation instead of a flattened version of it. Five audiences arrive at the front door and are routed by need. A therapist can see and hold a real slot without an email exchange. A trainee counsellor can apply without phoning the office. Someone whose counselling has finished has somewhere to go the week after their last session. And the volunteers who run the charity have one surface for operational work that used to live across inboxes, spreadsheets and memory.
The King's Award sits on every page as the trust anchor. For a service that asks people to share vulnerable personal information, that credential does real work before anyone is asked to type anything.
The build is owned, not rented. The charity holds the code, the database, the domain and the mail records, which means the platform can be handed to any developer, extended without a vendor's permission, and costed as infrastructure rather than as a subscription.
Services used in this build
The capability and service pages this engagement delivered against. Use them to scope a similar build for your operation.
AI Apps & Websites →
The bespoke charity platform: routed intake, room hire, member portal and staff suite in one codebase.
Chat Agents →
The in-page assistant that answers from a curated knowledge base and hands over to a human mid-conversation.
AI Systems Integration →
Supabase auth and roles, the database-level booking guard, and the trigger-driven lead notification chain.
AI CRM →
The custom back office the charity runs on: enquiries, room bookings, placements, users and the duty-lead rota.
Questions about this build
The off-the-shelf charity template assumes one shape: about us, donate, contact. CITC runs five audiences through one front door. Someone looking for affordable counselling, a parent seeking play therapy for a four-year-old, a qualified therapist hiring a room by the hour, a trainee counsellor applying for a supervised placement, and a donor or volunteer all need a different next step. A template flattens all five into a single donation page. A bespoke build routes each of them to the surface that actually serves them.
Two layers. A public availability endpoint returns the slots already held at a given hub on a given date, so a hirer only ever sees real options. Then the booking itself is protected at the database level by a Postgres exclusion constraint over the hub, the date and the time range, scoped to live bookings. Two people submitting for the same hour at the same moment cannot both succeed: the second insert is rejected by the database, not by a check in the page.
A post-counselling resource hub for people who have finished their sessions, behind Supabase auth. Members get a techniques library covering grounding, CBT, mindfulness, self-compassion, emotional regulation, relapse prevention and sleep; a personal maintenance plan they build themselves; a counselling-journey tracker showing where their referral sits (received, assigned, active, complete); and a crisis page with emergency contacts and a direct route to re-refer. The site is explicit that these tools supplement rather than replace professional support.
Immediately, whichever route it came in. Postgres AFTER INSERT triggers on enquiries, room bookings and placement applications fire an edge function directly over pg_net, which emails the team. Because the notification is driven by the database rather than by the form, it catches leads from the public form and from the website chat agent alike, and it keeps working while the web app is being redeployed.
It was built, then switched off at the charity's request. The agent texted new enquirers within seconds, held a two-way conversation over SMS, and used a second model to extract a structured 11-point qualification checklist into the database before staff made first contact. When the website chat assistant took over follow-up, outbound SMS was disabled. The trigger and the edge function are still in the database, disabled rather than deleted, and take one statement to re-enable.
Still have a question? Book an Operations Review, direct line to me, Dean.
Other industries I've built for
Different operations, same engineering discipline.
WheelsAI
60-second inbound response, full bespoke DMS, marketplace syndication built in
Renewable energy: solar installerRenew Energies
Embedded engineering retainer: CRM + website + AI agents, one ecosystem
Renewable energy & EPC complianceThermova
EPC matching, live savings calculators and a surveyor booking engine in one platform
Want a build like this for your operation?
Every build starts with an Operations Review. Map your bottlenecks. Get a costed bottleneck map, whether we build or not.
Book an Operations Review