Skip to content

Connect GitHub and Slack

Connect GitHub repositories or Slack channels, then use card keys to tie issues, PRs and threads back to projects.

On this page
Glossary
Agile
Splitting large work into smaller results, then checking and adjusting the approach at a regular pace.
Kanban
Work shown as columns by status, such as To Do, In Progress and Done. The Cards panel groups a project this way.
Sprint
A short, fixed stretch of time in which a team takes on a chosen set of work.
Task
One concrete piece of work you can finish, such as adding a test.
Bug
Something that broke. Record how to reproduce it, what happened and what you expected.
Story
An outcome described from the user’s side. Tasks and Bugs can be linked to it.
Epic
A larger body of work that groups related Stories.
Milestone
A delivery point with a target date, used to track a group of cards.
Claim
An agent taking a card so no other agent works on it. Only cards in columns that allow agents can be claimed.
MCP
The protocol external agents use to call Flow’s tools. Each agent connects with its own key.
Proposal
A draft change from an agent. A person checks it, then applies or dismisses it.
Grant
A rule that sets what a person or agent can do in one project or across the workspace.
Key
The credential an agent uses to connect over MCP. You can revoke it. A key proves who the agent is; its grants set what it can reach.
Pull request (PR)
A request to merge code changes into a repository after review.

Connect and map

Open Integrations. What it shows for GitHub and Slack tells you the next step:

  • Install GitHub App or Add Slack workspace: press it and finish on GitHub or Slack. GitHub is one trip: install, approve, and you are back in Flow. A repository is mapped to its project for you when a project was imported from it, or when the workspace has only one project; the page then says how many repos came in and lists the ones that need a project, with Map to and Map all to buttons where the answer is known. Events from a repo with no project are ignored until it has one. Mapping a repo also makes it readable by agents (Settings › Repositories for agents), so you do not enter it twice. Slack channels are mapped one by one. If you connect from inside the automation builder, you come back to the rule you were building.
  • GitHub isn’t turned on for this server or Slack isn’t turned on for this server: there is no app to install yet. Follow Turn on GitHub or Slack for this server.
  • Ask a workspace admin to turn on GitHub or Slack: you are not an admin. Admins manage integrations, so ask one.

Turn on GitHub or Slack for this server

GitHub and Slack are turned on by this server’s settings, not from inside Flow. Until they are, Integrations has nothing to install.

If you run this server, register an app with GitHub or Slack, give the API its details and restart the API. ORB_PUBLIC_URL is the address GitHub, Slack and your people reach this server at; the examples use https://flow.example.com.

  1. GitHub: create a GitHub App. Set these on the API, taking the name, Client ID and client secret from the app’s settings and choosing the webhook secret yourself:
    ORB_PUBLIC_URL=https://flow.example.com
    ORB_GITHUB_APP_SLUG=your-app-name
    ORB_GITHUB_CLIENT_ID=...
    ORB_GITHUB_CLIENT_SECRET=...
    ORB_GITHUB_WEBHOOK_SECRET=...
    Fastest: create the app from a manifest. Enter this server’s address below, press Create the app on GitHub and confirm. GitHub then redirects to a page on this server with ?code=… in the address; within an hour, run curl -X POST https://api.github.com/app-manifests/<code>/conversions and copy the slug, client_id, client_secret and webhook_secret from the reply into the settings above. Or copy the manifest and create the app yourself.
    {
      "name": "Orbbit Flow",
      "url": "https://flow.example.com",
      "hook_attributes": {
        "url": "https://flow.example.com/v1/events/webhook/github",
        "active": true
      },
      "redirect_url": "https://flow.example.com/guide/integrations#server-setup",
      "callback_urls": [
        "https://flow.example.com/v1/integrations/github/callback"
      ],
      "setup_url": "https://flow.example.com/v1/integrations/github/start",
      "setup_on_update": false,
      "request_oauth_on_install": true,
      "public": false,
      "default_permissions": {
        "pull_requests": "read",
        "issues": "read"
      },
      "default_events": [
        "pull_request",
        "issues"
      ]
    }
    Or set it up by hand. In the app’s settings, add these addresses, and enter the same webhook secret. Give the app read access to Pull requests and Issues, subscribe it to those two events, and turn Request user authorization (OAuth) during installation on so installing takes a single trip. (An app set up the older way, with that box off and a Setup URL, keeps working.)
    Callback URL  https://flow.example.com/v1/integrations/github/callback
    Setup URL     https://flow.example.com/v1/integrations/github/start   (optional)
    Webhook URL   https://flow.example.com/v1/events/webhook/github
    A production server refuses GitHub’s events without the webhook secret. Optionally set ORB_GITHUB_READ_TOKEN to a read-only token (Contents and Pull requests: read) so agents can read the private repos your GitHub App installation is connected to without a token variable on each one (a repository outside that installation needs its own token variable, named ORB_REPO_TOKEN or ORB_REPO_TOKEN_<NAME> with upper-case letters, digits and underscores; the server never reads any other variable name).
  2. Slack: create a Slack app. Set these on the API, taking the Client ID, client secret and signing secret from the app’s settings:
    ORB_PUBLIC_URL=https://flow.example.com
    ORB_SLACK_CLIENT_ID=...
    ORB_SLACK_CLIENT_SECRET=...
    ORB_SLACK_SIGNING_SECRET=...
    Fastest: in Slack’s Create New App choose From a manifest and paste this. Then copy the Client ID, client secret and signing secret into the settings above, restart the API, and press Retry under Event Subscriptions (Slack can only verify the request URL once the signing secret is set).
    {
      "display_information": {
        "name": "Orbbit Flow"
      },
      "features": {
        "bot_user": {
          "display_name": "Orbbit Flow",
          "always_online": false
        }
      },
      "oauth_config": {
        "redirect_urls": [
          "https://flow.example.com/v1/integrations/slack/callback"
        ],
        "scopes": {
          "bot": [
            "channels:read",
            "groups:read",
            "channels:history",
            "groups:history",
            "app_mentions:read",
            "reactions:read",
            "chat:write"
          ]
        }
      },
      "settings": {
        "event_subscriptions": {
          "request_url": "https://flow.example.com/v1/events/webhook/slack",
          "bot_events": [
            "app_mention",
            "message.channels",
            "message.groups",
            "reaction_added"
          ]
        },
        "org_deploy_enabled": false,
        "socket_mode_enabled": false,
        "token_rotation_enabled": false
      }
    }
    Or by hand: in the app’s settings, under OAuth & Permissions, add the redirect URL and the bot scopes channels:read, groups:read, channels:history, groups:history, app_mentions:read, reactions:read and chat:write. Under Event Subscriptions, add the request URL and subscribe to the bot events message.channels, message.groups, app_mention and reaction_added.
    Redirect URL  https://flow.example.com/v1/integrations/slack/callback
    Request URL   https://flow.example.com/v1/events/webhook/slack
    A production server refuses Slack’s events without the signing secret. A Slack workspace connected before reactions:read was added needs Add Slack workspace pressed once more in Integrations, and the new permission approved, before reaction triggers can fire; its channel mappings stay.
  3. Restart the API. It reads these settings when it starts. Integrations then shows Install GitHub App and Add Slack workspace; continue with Connect and map.

If someone else runs this server, nothing inside Flow can turn it on. Ask whoever runs it to follow these steps.

Card keys in PRs and branches

Put SSO-17 in a PR title, description or branch name, and the GitHub webhook links the event to that card. Agents can also report a PR URL with report_work_item_ref. Flow reads and links these events; your agent’s environment and your team’s process open and merge the PRs.

fix/SSO-17-login-redirect
SSO-17 Fix login redirect after invite

Events and failures

Integrations shows connection status, the event stream and failed events, and lets you retry the ones that can recover. Automations run rules when GitHub or Slack events arrive, with conditions and actions; when you set one up, check its event, its action and which card or channel it acts on.

GitHub permissions

The GitHub integration reads and links events. To change code or open PRs, an agent needs its own GitHub and repository access where it runs. Merges follow your team’s review.