Without these, you’ll need to manually refresh certain aspects of your Workspace. You’ll only need to set these up if you’re self-hosting or using vercel.
We handle it for you on Cloud Instances.
Self-Hosting
This section is for anyone running Orbit on a dedicated or virtual linux based operating system.-
In your root folder, create a file named .automation_env
-
Insert a 32 character secret key and save (X -> **Y **-> Enter).
-
Next, you’ll need to add this to your Orbit **.env **and save (X -> **Y **-> Enter).
-
Next we’ll need to insert the code into Crontab.
At the bottom of the file, paste the following. Be sure to change the URL to your own.
Once done, save. (X -> **Y **-> Enter) -
Done!
- Your group roles will now automatically sync every hour adding any new members to your workspace.
- Your session statuses will now update in accordance with the statuses setup enhancing your API Development Opportunities.
Vercel
-
In your GitHub repo, add a secret
CRON_SECRET(Settings → Secrets & variables → Actions → New repository secret). Put the same value you set in Vercel env. -
Create a workflow file:
.github/workflows/cron-session-webhooks.yml -
Example workflow (copy/paste):
-
Replace
https://instance.planetaryapp.cloudwith your real domain (or Vercel preview URL if calling preview). -
Use
workflow_dispatchto trigger manually for testing.
Next steps
Self-hosting guide
Review the full self-hosting checklist to make sure your environment is production ready.
Vercel deployment
Walk through the one-click Vercel deployment flow and environment setup.
Activity & roles APIs
Combine automation with the public API to build dashboards, bots, or external tooling.