A floating support button sits in the bottom-right corner of every page. It opens a panel of tiles; each tile appears only when its configuration is present.
| Tile | Shown when | What it does |
|---|---|---|
| Send Message | NEXT_PUBLIC_SUPPORT_MAIL is set | A form (email, subject, message) that emails your support inbox |
| Documentation | Always | Opens /landing/doc |
| Book Meeting | NEXT_PUBLIC_CALENDLY_BOOKING_URL is set | Opens your Calendly (or any booking) link in a new tab |
| Newsletter | Commented out by default | Posts the email to an n8n webhook |
| SaaS Assistant | Commented out by default | A chatbot backed by an n8n workflow |
Configuration
NEXT_PUBLIC_SUPPORT_MAIL="[email protected]"
NEXT_PUBLIC_CALENDLY_BOOKING_URL="https://calendly.com/your-name/30min"
# Optional, for the hidden tiles
N8N_SUBSCRIBE_NEWSLETTER_WEBHOOK_URL="https://n8n.example.com/webhook/newsletter"
N8N_SAAS_ASSISTANT_WEBHOOK_URL="https://n8n.example.com/webhook/assistant"
Support messages are sent with Resend from and to NEXT_PUBLIC_SUPPORT_MAIL, with the subject <subject> from <visitor email> for <product name>. They need a configured email client.
How it works
- The widget is
apps/web/blocks/Support.tsx, mounted in the root layout so it appears on public and signed-in pages. - Messages go through the public
support.sendSupportMessagetRPC mutation. Newsletter and assistant tiles usesupport.subscribeToNewsletterandsupport.chatWithSaaSAssistant, which forward to the n8n URLs. - The desktop and mobile apps have their own support screens driven by
VITE_SUPPORT_MAIL/VITE_CALENDLY_BOOKING_URLandEXPO_PUBLIC_SUPPORT_MAIL/EXPO_PUBLIC_CALENDLY_BOOKING_URL.
Customizing
- Enable the hidden tiles: uncomment the Newsletter or SaaS Assistant blocks in
apps/web/blocks/Support.tsxand set the n8n URLs. - Add a tile: add an entry to the grid in the same file, for example a link to your status page or community.
- Hide the widget on some pages: render
<Support />conditionally inapps/web/app/layout.tsx, for example based on the path. - Use a help desk instead: replace the message form with your provider's widget (Intercom, Crisp, Plain) and keep the docs and booking tiles.
