Gravity
  • Welcome to Gravity
  • Getting Started
  • Stack
  • Updates
  • Rules For AI
  • Troubleshooting
  • Gravity Server
    • Introduction
    • Installation
      • Install Node.js
      • Database Setup
      • Stripe Setup
      • Mailgun Setup
      • Install Gravity
    • Application Structure
    • REST API
      • API Scopes
      • Webhooks
    • Authentication
      • Email Verification
      • Social Sign On
      • Two-Factor Authentication
    • Authorization
      • Feature Access and Plan Restrictions
      • Permissions (Roles)
    • Config
    • Environment Variables
    • Database Queries
    • Handling Errors
    • Logging
    • Localization
    • Push Notifications
    • Email Notifications
    • User Feedback
    • User Onboarding
    • File Uploads
    • Billing
      • Seat Billing
      • Usage Billing
    • Free Accounts
    • CLI Toolbelt
    • Testing
    • AI Tools
    • Background Jobs
    • Deployment
  • Gravity Web
    • Introduction
    • Tailwind & SCSS
    • Routing
    • Events
    • Authentication
    • Localization
    • Hooks
      • useAPI
      • usePlans
      • usePermissions
    • Components
      • Alert
      • Animate
      • Avatar
      • Badge
      • Breadcrumb
      • Button
      • Calendar
      • Card
      • Chart
      • Checklist
      • Credit Card
      • Detail
      • Dialog
      • Dropdown
      • Feedback
      • Form
      • Grid
      • Header
      • Helper
      • Icon
      • Image
      • Layout
      • Link
      • List
      • Loader
      • Logo
      • Nav
      • Onboarding
      • Pagination
      • Popover
      • Progress
      • Row
      • Search
      • Separator
      • Sheet
      • Social
      • Stat
      • Table
      • Tabs
      • Toast (Notification)
      • Tooltip
      • User
      • View
    • Views
    • Handling Errors
    • Deployment
  • Gravity Native
    • Introduction
    • Prerequisites
    • Installation
    • App Context
    • Authentication
    • Localisation
    • External Linking
    • Handling Errors
    • Navigation
    • Config
    • Events
    • Views
    • Components
      • Badge
      • Blankslate
      • Button
      • Card
      • Chart
      • Form
      • Global
      • Grid
      • Icon
      • List
      • Logo
      • Message
      • Modal
      • Nav
      • Notification
      • Progress Bar
      • Search
      • Separator
      • Social
      • Stat
      • View
    • Push Notifications
    • Payments
    • Building Your App
  • Mission Control
    • Introduction
    • Installation
    • User Management
    • Feedback
    • Events
    • Logs
  • Website Template
    • Introduction
    • Environment Variables
    • Styling
    • Components
      • Article
      • Feature List
      • Footer
      • Hero
      • Layout
      • Pricing
      • Meta Data
      • Nav
      • Testimonial
    • Build and Deploy
Powered by GitBook
On this page

Was this helpful?

  1. Gravity Server

User Onboarding

PreviousUser FeedbackNextFile Uploads

Last updated 1 year ago

Was this helpful?

A sequence of user onboarding automations that are performed as a background job are included.

The following emails are sent to a new user:

  1. Verification email

  2. Verification reminder after 1 day if not verified

  3. Welcome email when verification is completed

  4. Subscription plan selected

  5. Trial expires in 3 days

  6. Trial has expired and account was upgraded

The link in the verification reminder email only works with the Gravity web client. Verification requests for the native app must be triggered via the 'resend verification' button within the app.

Starting The Onboarding Worker

There is a background job worker that runs the onboarding flow once every day at 12:05pm London time. You can adjust this inside the by changing worker_schedule.onboarding.

This flow performs 3 tasks out-of-the-box:

  1. Gets a list of active trials from Stripe and sends an email to those expiring in 3 days from today.

  2. Gets a list of trials from Stripe that expire today and notifies the user they have been upgraded to the paid plan they selected.

  3. Gets a list of new accounts created yesterday that are still unverified and sends the user a reminder email.

Ensure the background worker is running and then execute the start script to begin the daily CRON job.

node worker/onboarding // start the background job worker
node worker/onboarding/start // start the daily cron queue
config