Guides · Publish and connect

GitHub, Google, Plain, Slack and Teams

Sync issues, events, files and support threads with Max databases, and post updates to a channel.

How connections work

Settings → Connections → Connect a service. Each connection is one account at the provider, in one workspace or organization. Max shows what it will read, what it may write, and what it never touches before you connect.

  • Credentials are encrypted and only ever used by Max's server. They're never shown in the browser.
  • In an organization, an admin can make a connection shared: any admin manages it, members can use it in syncs, and it stays when the person who connected it leaves. Admins can hand it to another admin.
  • Pause, resume, reconnect or disconnect from the connection's ⋯ menu. Disconnecting erases the credentials at once and stops its syncs. Rows already in Max stay unless you choose to move them to the trash.

Syncs

A sync links something at the provider (a repository's issues, a calendar, a Drive folder, a Gmail search, your Plain threads) to a Max database. Choose New sync on a connection.

  1. Fill in what to sync (for example owner/repo) and choose Preview to see the first rows.
  2. Choose the direction: Into Max (import), From Max (export), or Both ways.
  3. Pick the fields, whether to make a new database or use an existing one, and how often to sync (every 5 minutes to once a day).
  4. Choose Start syncing. Rows appear in a moment; large sources come in over the first few runs.
  • Every row remembers its source, so nothing is duplicated, and changes on either side are noticed.
  • Deleting something at the provider never deletes the Max row. It's marked as removed there and kept.
  • Both ways: when the same row changed on both sides, Max asks you which to keep (or follows the rule you chose: keep Max's, or keep the provider's). Review waiting changes from the sync's History.
  • Sync now runs it straight away. Each sync keeps a history of its runs and any errors, with the reason. Failures retry with a growing delay, and a connection that needs signing in again tells you in your inbox.

GitHub

Issues and pull requests in the repositories you choose: title, state, labels, assignees, number and link. Both ways and From Max can change titles, open/closed state and labels, and create issues for new rows. Never code, commits, comments or anything outside those repositories.

  • Connect with GitHub (when Max's server has a GitHub app set up), or paste a fine-grained personal access token with Issues: read and write.
  • For instant updates, add the webhook address and secret shown in the sync's History to the repository (Settings → Webhooks, JSON, Issues and Pull requests).

Google Calendar

Events in the calendar you choose (primary, or a calendar ID): title, start, end, location, status and link. Both ways and From Max can change titles, times and locations and add events for new rows (a row needs a start date).

Google Drive

File names, types, owners, modified times and links in one folder. Read-only: Max never sees file contents and never changes Drive.

Gmail

The emails matching a search you choose (is:starred by default) become rows with the subject, sender, date and a link. Max reads metadata only (never bodies or attachments) and never sends or changes email.

Plain

Support threads with their status, priority, customer name and link. Both ways lets you mark a thread done (or to do) from Max. Connect with a Plain API key with thread:read and thread:edit.

Slack and Microsoft Teams

Post a short line and a link to one channel when something happens: new pages or rows, changed rows, comments, review requests and decisions. Choose which from the connection's What to post…, everywhere or for one database. Private organization pages are never posted. Automations can also post a message of their own.

  • Slack: Connect with Slack, or paste an incoming webhook address (https://hooks.slack.com/…).
  • Teams: in the channel, add the Workflows template “Post to a channel when a webhook request is received” and paste its address.

In an organization

Admins decide which services members may connect (Organization → Apps): open to all, approval needed for some, or blocked. When approval is needed, members ask from the service's page and admins get a notification to approve or deny. Admins see every connection in the organization, who made it, and when it was last used.

For Max's operators

Set MAX_CONNECTIONS_KEY (32 random bytes, base64: openssl rand -base64 32) in Convex to store credentials encrypted. To offer Connect with …, register an OAuth app at each provider with the redirect address https://<your Max>/api/connections/callback and set MAX_GITHUB_CLIENT_ID / _SECRET, MAX_GOOGLE_CLIENT_ID / _SECRET (Calendar, Drive and Gmail each ask for their own permission) and MAX_SLACK_CLIENT_ID / _SECRET, plus MAX_SITE_URL. Without them, the paste-a-key options still work.

npx convex env set MAX_CONNECTIONS_KEY "$(openssl rand -base64 32)"
npx convex env set MAX_SITE_URL https://max.example.com
npx convex env set MAX_GITHUB_CLIENT_ID …
npx convex env set MAX_GITHUB_CLIENT_SECRET …
By Wareed