Slack

Connect Factory to Slack and delegate work from channels and direct messages using your organization's Agent Profile.

Mention @Factory in a Slack channel or send Factory a direct message to have Droid investigate, implement, and test work on a remote computer. Droid posts progress and results in the same conversation.

Channel requests run as your organization's Org Default Agent Profile. Direct messages use your personal identity and connectors.

This page covers the Factory Slack app. A personal Slack connector gives Droid tools to use inside sessions; it does not install the app in your workspace.

Warning

If an existing Factory Slack install lacks permission to read images or upload files, rerun its authorization flow to enable those capabilities. A Slack admin may need to approve the updated permissions.

Prerequisites

To install the Factory Slack app and configure Slack delegation, you need:

  • A Factory organization on any paid plan, including individual plans and organization plans.
  • The Manager or Owner role in Factory.
  • Permission to install apps in your Slack workspace. If your workspace requires app approval, someone who manages its apps must approve the Factory app.
  • Access to Settings → Delegations in Factory.
  • The Org Default Agent Profile, with the Git credentials and connectors shared channel work needs, and an Environment for Dynamic compute or its own computers for Persistent compute.

Each team member who delegates work must have a Factory account in the connected organization. Their Slack account email must match their Factory account email.

Set up the Org Default Agent Profile

Before you connect Slack, a Manager or Owner sets up your organization's Org Default Agent Profile. It sets the model, instructions, plugins, compute, Git credentials, and connectors Slack delegations use. Follow configure an Agent Profile, and make sure the profile has repository access for the work. Until Org Default is saved for the first time, Factory asks you to set it up when you connect an app.

Channel delegations run as the Agent Profile, with its Git credentials and connectors. Personal DMs don't. The Org Default Agent Profile serves every request from Slack, and is shared by every delegation app, so changes can affect more than Slack.

Connect Slack

  1. 1
    Open Slack delegation settings

    Open Settings → Delegations. Under Delegation Apps, find Slack and select Set Up for Org, or Configure if it is already connected.

  2. 2
    Connect or reconnect Slack

    On the Slack setup page, click Connect. For an existing installation, click Manage, then Reconnect to refresh its permissions.

  3. 3
    Authorize Factory's Slack app

    You'll be redirected to Slack. Review the requested permissions and click "Allow" to authorize Factory access to your Slack workspace. If you belong to multiple workspaces, select the workspace you want to connect.

  4. 4
    Confirm the integration

    After authorization, you'll be redirected back to Factory. Verify that the integration status shows as "Connected".

  5. 5
    Add Factory to channels

    Factory must be a member of a channel to respond there. Run /invite @Factory in the channel, or accept Slack's prompt to add Factory the first time you mention it.

Delegate and follow up

Mention @Factory in a thread in a channel where the app has been invited, or send the app a direct message. Include the repository, desired outcome, and how Droid should verify the result:

@Factory Investigate the failing checkout test in the storefront repository. Fix the cause, run the relevant tests, and open a pull request with a summary of the change.

Droid runs the work with the identity appropriate to the conversation. Review its response and any linked pull request. Slack links to the session whenever you can open it, including channel delegations that run as the Agent Profile. Continue with follow-up instructions in the same Slack conversation, or in the code channel if Droid opened one. Check the test results and proposed changes before merging.

In Slack, Droid can:

  • Use the full thread as context when you mention it in a thread.
  • Use supported image attachments from Slack as context.
  • Post messages, generated files, artifacts, and result videos back to Slack.
  • Receive follow-up messages and attachments from Slack in an active session.
  • Handle CI in a subagent when it creates a pull request, so it can respond faster.

The session's model comes from the Agent Profile that serves you, or from your personal delegation defaults when organization policy allows it. You can also reference a Slack thread in any Factory chat by pasting its URL.

Code channels

A code channel is a Slack channel dedicated to one Factory session. Instead of following the work in a thread, your team gets a channel for the task. Factory posts its updates there, and the channel shows the repository and branch Factory is working on and a diff of its changes.

Code channels are available for delegated sessions that a person starts. Automation and Incident Response runs stay in their thread. Code channels also depend on Slack's own code channels feature. If your workspace does not have it yet, or your Factory Slack app was installed before code channels were available, sessions stay in the thread. To grant the code channels permission to an existing installation, reconnect the app using the connection steps.

A session moves into a code channel in one of two ways:

  • Droid moves it. Before starting substantial work, such as a multi-step change across several files, a pull request, or extended debugging, Droid opens a code channel named after the task. Droid stays in the thread for questions, small fixes, and conversational replies, or when you ask it to stay there.
  • You ask for one with !new. Post @Factory !new <task> to start a new session in its own code channel. Send @Factory !new in an existing session's thread to move that session into a code channel. In DMs and code channels, you can leave out the @Factory mention.

When a session moves, the original thread gets a "Working on this in #channel" notice. Replies in that thread no longer reach the session, so Droid asks you to send them in the channel instead.

Work in a code channel

  • Post top-level messages in the channel. You do not need to mention @Factory. Droid reads the channel's messages, replies top-level, and stays quiet when a message is not meant for it.
  • Droid keeps the repository and branch shown in the channel current as it switches repositories or branches.
  • When Droid has changes, Slack shows a diff of its branch against the base branch. Factory withholds the diff when it may contain secrets or is binary or too large, and shows a notice instead.
  • Questions from Droid appear in the channel. Answer them with a regular message.

Archive a code channel

When the work is done, ask Droid to archive or wrap up the channel. Droid posts a summary of the outcome, pull request links, and anything left open, then archives the channel. Droid does not archive a channel on its own initiative.

If a code channel has no activity for 7 days, Factory posts a warning and archives the channel 24 hours later unless someone sends a message. Archived channels stay in Slack as a record of the work. To pick the work back up, mention @Factory in the original thread.

Personal DMs and shared channels

The Slack conversation determines whose access Droid uses:

Where you send the requestSession identityCredentials and connectors
A direct message to FactoryYour personal Factory identityYour personal Git credentials and connected apps
An @Factory mention in a channelThe Agent Profile that serves youThat Agent Profile's Git credentials and connected apps

Connect the tools you want to use in DMs under your own Factory account. For shared channel work, configure them on the Agent Profile, signed in with a dedicated identity for Droid rather than your own account. Mentioning Factory in a channel does not pass your personal connectors to the shared session.

Send the DM to the Factory app itself. If you mention @Factory in a DM with yourself, Slack does not let Factory join that conversation, so Factory asks you to open a code channel instead.

A DM uses the instructions and model defaults of the Agent Profile that serves you on Slack. By default, Factory provisions a computer owned by you from that Agent Profile's Environment instead of using the Agent Profile's computer pool.

To run your DMs on one of your own computers, such as a Droid Computer, or on a different Environment, open Settings → Session Defaults → Delegations and choose a DM delegation machine. See Set personal delegation defaults. If you have not chosen a machine and the Agent Profile has no Environment, Factory replies that it cannot start the delegation.

Slack commands

Start a message with a command to control Factory instead of sending a task. In channels, mention @Factory before the command, for example @Factory !help. In DMs and code channels, send the command on its own.

CommandWhat it does
!new <task>Starts a new session for the task in its own code channel. Without a task, Factory opens the code channel so you can describe the work there. In an existing session's thread, !new moves that session into a code channel.
!connectReplies with SSH instructions for the computer running an existing session. Start a session first, then send !connect in its thread or code channel. In channels, only you can see the reply.
!helpLists the available commands.

Send !help and !connect on their own. If a message has any other text, Factory treats it as a normal request.

Best practices

  • Add the Factory app only to channels where development discussions occur.
  • Use threads rather than channel messages when mentioning Factory. For larger tasks, Droid may move the work into a code channel.
  • Provide sufficient context in the Slack thread before mentioning Factory.
  • Regularly review the permissions granted to the Factory app in your Slack settings.

Permissions details

Note

At a glance

  • Factory installs in Slack as a bot. It holds one bot token for your workspace and no token that acts as one of your users.
  • Factory requests 23 Slack permissions. Each is listed below with what it is for.
  • Factory receives messages only from channels it has been added to and from its own direct messages. In those channels, Slack sends Factory every message, not only the ones that mention it. See Messages that do not mention Factory.
  • When you mention @Factory in a thread, Factory reads that whole thread. It does not read the rest of the channel.
  • Factory can see the names of public channels it is not in, and Droid can post to a public channel it is not in. It cannot read messages there.
  • This section covers the Factory Slack app. The Slack connector is separate and has its own permissions.

Permissions Factory requests

All 23 are bot permissions. Factory requests no user permissions.

PermissionRequiredWhat it allowsWhy Factory needs it
app_mentions:readYesView messages that mention Factory in conversations it is in.Receive @Factory requests.
channels:history, groups:history, im:historyYesView messages and other content in public channels, private channels, and direct messages Factory has been added to.Receive messages in those conversations and read the thread a request is in.
channels:read, groups:readYesView basic information about public channels in the workspace and about private channels Factory has been added to.Read a channel's name and whether it is private, list channels in Factory's settings, and learn when a public channel is created.
im:readYesView basic information about direct messages Factory has been added to.Read the conversation's details when a request comes from a direct message.
channels:joinYesJoin public channels in the workspace.Join a new public channel whose name matches a pattern in one of your automations.
chat:writeYesSend messages as Factory.Post replies, progress, and results, and edit its own messages.
chat:write.publicYesSend messages to public channels Factory is not a member of.Let Droid post a message to a public channel you name, even if Factory has not been added to it.
chat:write.customizeYesSend messages as Factory with a customized name and picture.Show a prompt that a teammate typed in the Factory app under that teammate's name in the Slack thread.
assistant:writeYesLets Factory act as an AI app in Slack.Show a working status while Droid runs.
code_channels:manageYesCreate and manage code channels.Open, update, and archive code channels.
files:readYesView files shared in channels and conversations Factory has been added to.Download images attached to a request.
files:writeYesUpload, edit, and delete files as Factory.Upload files that Droid produces.
im:writeYesStart direct messages with people.Send a message or file to the person a session belongs to, or notify a pull request's author, in a direct message.
reactions:writeYesAdd and edit emoji reactions.React to a request to show its status.
team:readYesView the workspace's name, email domain, and icon.Read the workspace ID and name when you connect.
users:readYesView people in the workspace.Read the display names of people in a thread, and tell people from bots.
users:read.emailYesView people's email addresses.Match a Slack user to a Factory account by email, and find a member's Slack account by email.
mpim:history, mpim:readYesView messages in, and basic information about, group direct messages Factory has been added to.Factory can use this to take requests in a group direct message.
reactions:readYesView emoji reactions and their associated content in conversations Factory has been added to.Factory can use this to read emoji reactions for feedback.

Authorizing the app grants all 23 together.

Events Factory receives

Slack sends events to Factory over HTTPS. Factory checks Slack's signature on each event before it acts.

EventWhen Slack sends itWhat Factory does
App mentionSomeone mentions @Factory in a channel Factory is in.Starts a session, or continues the session in that thread.
Direct messageSomeone sends Factory a direct message.Starts a session, or continues one.
Channel messageAnyone posts in a public or private channel Factory is in, with or without a mention.See Messages that do not mention Factory.
Channel createdSomeone creates a public channel in the workspace.Compares the channel's name with the name patterns in your automations, and joins the channel if one matches.
App home openedSomeone opens Factory in Slack's list of apps.Sends a one-time welcome message if that person has no messages with Factory yet.
Session stoppedSomeone stops Factory's run from Slack.Stops the run.
App uninstalledThe app is removed from the workspace.Checks that the bot token no longer works, then disconnects Slack in Factory. See Remove access for what that deletes.
Buttons and formsSomeone selects a button or submits a form on one of Factory's messages.Carries out that action, such as passing an answer to a question Droid asked.

Factory does not subscribe to member or file events.

Messages that do not mention Factory

Slack sends Factory every message in a channel Factory is in. For a message that does not mention @Factory, Factory does one of these:

  • In a code channel. Reads the message as part of that channel's session. See Work in a code channel.
  • A top-level message in a channel an automation listens to. Checks the message against that automation's filters, and starts a run if it matches. See Slack channels and messages.
  • A reply in a thread where Droid is already working. If your organization has Ambient replies and has not turned it off, and the sender is a Factory member who can continue that session, Factory reads the thread and decides whether to answer. See Ambient replies in chat threads.
  • A top-level message in a channel that Ambient replies covers. If a Manager or Owner has set Ambient replies to Selected channels or All channels, Factory reads the message and earlier messages in the channel, and decides whether to answer. This never applies to channels shared with other companies. These two levels may not be available to your organization yet.
  • Anything else. Factory discards the message and starts nothing.

What Factory reads and when

  • A request. When you mention @Factory or send it a direct message, Factory reads that message and, if it is in a thread, the whole thread, with each author's display name. Droid receives the newest 30,000 characters. Factory does not read the rest of the channel.
  • Follow-ups. The messages added to the thread since Factory last read it, and any earlier message that was edited or deleted since.
  • Images. GIF, JPEG, PNG, and WebP images in the thread: the newest 10, up to 20 MB each. Factory does not download other file types.
  • People. The Slack profile of each person in the thread. Factory uses the display name. It uses the sender's email address the first time they send a request, to match them, and a member's profile picture when it shows that member's prompt under their name.
  • The conversation. Its name, and whether it is a public channel, a private channel, or a direct message.
  • Channel lists. The names of the workspace's public channels and of the private channels Factory is in, to fill the channel pickers in Factory's settings. A channel's member list, only when Factory decides which channels to show a person there.
  • Channel history outside a thread. Only in a code channel, in a channel that Ambient replies covers, and, when you open Factory in Slack's list of apps, the latest message in your direct message with Factory.
  • Slack links in the Factory app. For a link to a Slack message, Factory can read that one message and show up to 200 characters of it. It does not show direct messages this way.
  • Not requested. Factory makes no request for pins, bookmarks, canvases, or user groups, and it does not search your workspace. Slack does not let it read messages in channels it has not been added to.

Who installs and approves

  1. 1
    A Factory Manager or Owner starts the connection in Settings → Delegations and authorizes the app in Slack. Slack decides who can install apps in your workspace, and your workspace may require a Slack admin to approve them. Factory does not check a Slack role itself.
  2. 2
    One Slack workspace connects to one Factory organization, and one Factory organization connects to one Slack workspace. In Enterprise Grid, the app installs in one workspace at a time, not across the whole organization.
  3. 3
    People add Factory to the channels where they want to use it.
  4. 4
    Each person who sends a request is matched to a Factory account.

How requesters are matched

Factory matches the sender's Slack user ID to a member of your Factory organization. The first time, it matches by the email address on the sender's Slack profile, and the email must match exactly one active member. Factory also accepts a Slack username already saved on the member's Factory profile, but Factory's settings have no field for adding one. If there is no match, Factory starts nothing.

Factory has no separate rule for Slack guests or people from other companies. They are matched by the same rules as anyone else, so a guest needs a Factory account in your organization. Messages from other bots never start a delegated session, though an automation can be set to run on them.

A direct message runs as the sender. A channel request runs as the Agent Profile. See Personal DMs and shared channels.

Audit log

The audit log is available only to owners of Enterprise organizations on Factory-hosted deployments. It records the following for Slack.

  • Connecting and disconnecting each record an integration_change event, with the Manager or Owner who did it. When the app is uninstalled in Slack, the disconnect is recorded with no actor.
  • Changing the Ambient replies setting records an integration_change event.
  • Each session started from Slack records a delegation_activity event. The actor is the person who asked. The event also records the identity the session ran as, the sender's Slack user ID, and the channel and thread. It never records message text.
  • When Droid posts a message to Slack with its own tools, that also records a delegation_activity event.

Remove access

  • One channel. Remove Factory from the channel in Slack. Slack stops sending Factory that channel's messages, and Factory can no longer read it. Droid can still post a message to a public channel until the app is removed from the workspace.
  • Your whole workspace. Do both steps.
    1. 1
      In Factory. A Manager or Owner opens Slack under Settings → Delegations and selects Disconnect. Factory deletes the connection record and its copy of the bot token, and clears the saved Slack user IDs. It does not uninstall the app from Slack or revoke the token there.
    2. 2
      In Slack. A workspace admin removes the Factory app from the workspace. Slack revokes the bot token.

If you only remove the app in Slack, Slack tells Factory, and Factory disconnects once it confirms the token no longer works. That disconnect deletes the connection record and Factory's copy of the bot token. It keeps the saved Slack user IDs.

Disconnecting leaves the records of past tasks, your Ambient replies setting, and the channels saved on your automations.

Factory app and connector

The Factory Slack app receives requests and posts results with its bot token. The Slack connector is a separate, personal connection that gives Droid Slack tools inside a session. It has its own permissions, and connecting it does not install or change the Factory app.

Permission changes

Slack shows the full list of permissions each time someone authorizes the app. A permission that Factory adds later does not reach your workspace until a Manager or Owner reconnects Slack and approves it. Until then, a feature that needs the new permission stays unavailable in your workspace.

Changes to the permissions on this page are recorded here.

DateChangeAction needed
November 2026First published.None

Troubleshooting

Security and Compliance

Visit Factory's Trust Center for compliance documents, certifications, and security resources

Security and Compliance

Review Factory's Privacy Policy and Terms of Service.