Skip to content

The open alternative to Salesforce, designed for AI.

4.5 KB
Raw Blame

Setup

Follow these steps to get your app running locally.

Prerequisites

  • Node.js (version specified in .nvmrc)
  • Yarn 4
  • Docker (to run the local Twenty server)
  • A Fathom OAuth client
  • A public HTTPS URL forwarding to the local Twenty server

Register this OAuth callback in Fathom:

https://<development-host>/auth/apps/callback

Set Twenty's SERVER_URL to that same public host. The connection hook registers this destination with Fathom automatically:

https://<development-host>/webhooks/server/72b52885-e1ba-419f-8e2e-052700f2c9f2?connectionId=<connected-account-id>

The ID is the Fathom webhook resolver logic function. Deliveries are routed to the workspace that made the connection, so no per-workspace domain is needed.

Steps

  1. Install dependencies:

    yarn install
    
  2. Start a local Twenty server with Docker or the repository development setup. Install the standalone CLI with npm install -g twenty, then run twenty auth login --url http://localhost:2020.

  3. Set FATHOM_CLIENT_ID and FATHOM_CLIENT_SECRET as server variables in Twenty.

  4. Start the development server and sync your app:

    twenty app dev --create
    
  5. Open http://localhost:2020, log in with the default development credentials: [email protected] / [email protected], and connect Fathom from Settings. The connection hook registers the signed webhook and starts a 31-day import.

  6. Import older history when needed with an authenticated request:

    curl -X POST https://<development-host>/s/fathom/backfill \
      -H "Authorization: Bearer <api-key-or-access-token>" \
      -H "Content-Type: application/json" \
      -d '{"days": 30}'
    

    The import runs through the requesting user's Fathom connection.

Workspace-shared and personal connections

Connecting Fathom from Settings > Applications > Fathom adds a workspace-shared connection. Its webhook receives the connected account's own recordings and the team recordings it can access.

Members can also add a personal connection from Settings > App preferences, which is behind the IS_APP_PREFERENCES_ENABLED workspace feature flag. A personal connection's webhook receives only that member's own recordings (my_recordings and my_shared_with_team_recordings), so teammates who each connect do not all import the same team recordings. Its history imports, the 31-day one on connect and manual backfills, include only calls recorded by the member's email. Fathom has no endpoint that names the account behind a token, so a member whose Fathom email differs from their Twenty email gets new calls but no history. Actions run by a member use their personal connection first and fall back to the workspace-shared one.

Media import behaviour

Fathom prepares the downloadable file after the transcript is ready, so a Call Recording stays in Processing until its media lands or is settled as unavailable.

  • A daily reconciliation pass scans local Call Recordings started in the last seven days and resumes media imports inactive for at least 30 minutes.
  • Media imports respect Fathom's Retry-After delay for up to three retries. Continued throttling leaves the import unfinished for the daily recovery pass; recordings outside its seven-day window need Sync Fathom Call.
  • Media is skipped for recordings above 500 MB, for recordings Fathom has no downloadable media for, and for limited-access shares the connected account may view but not download. The reason is recorded on the Fathom recording import so automatic syncs do not retry a settled failure.
  • Running Sync Fathom Call clears a recorded reason and tries once more, which is how a re-shared recording gets its media.

Import pacing is best-effort: concurrent jobs can reserve overlapping slots. After Fathom creates a download, Twenty retries saving its ID up to three total attempts. A crash or failed save can still cause a later retry to request another download generation; provider creation and local persistence are not atomic.

Verifying your setup

  • yarn lint - Lint the project with oxlint
  • yarn typecheck - Type-check the project
  • yarn test:unit - Run unit tests
  • yarn test - Run integration tests

Troubleshooting

Disconnect and reconnect Fathom after changing the webhook URL or the webhook scopes, so Fathom receives the new registration.

See the troubleshooting guide or ask on Discord.