When an alert lands in a configured Slack channel, Factory automatically starts a linked Droid session so Droid can investigate the incident with the right context, machine, and instructions. Droid can work toward an RCA, open a PR for a fix when appropriate, and update an incident runbook so future investigations of the same alert type start faster.Documentation Index
Fetch the complete documentation index at: https://factory-cli-730.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart: set up from the Factory App
Use the web UI when you want to review all Slack channel settings in one place.Open the Slack integration settings
Invite Factory to the incident channel
Enable the channel
Turn on Auto-Run
Choose the session owner and machine
Tune visibility, model, and prompt
Alternative: Set up with Droid CLI
Use the CLI flow when you are already in Droid and want a guided incident-channel setup.Run the setup command
Select the incident channel
/invite @Factory and run the setup command again.Select the computer
Accept or edit the RCA prompt
Configuration details
Customizing the prompt
The channel prompt is injected into every auto-run session for that channel. Keep it specific to incident work:- Tell Droid to run RCA and use the
/incidentworkflow when appropriate. - Mention the primary services or repositories for that channel.
- Point Droid at runbooks, dashboards, or common alert sources.
- State escalation expectations, such as when to summarize uncertainty instead of taking action.
Channel selection
Incident Response is designed for channels where incident alerts arrive as top-level messages. Thread replies are not used to start new auto-run sessions, which prevents ordinary discussion from repeatedly launching Droids. For best results, use a dedicated channel such as#incidents, #alerts-production, or a service-specific incident channel.
Session owner
The session owner determines the Factory user identity used by the auto-run session. Choose an owner whose connected tools and organization permissions are appropriate for incident investigation. If a session fails because the owner cannot be found or lacks access, update the channel settings to use a current user with the right permissions.Machine target
The selected computer or workspace is where Droid runs the investigation. It should have:- The relevant repositories available.
- Required package managers and CLIs installed.
- Authenticated access to observability, incident, and source-control systems.
- Safe permissions for the actions Droid may need to take during RCA.
Visibility and model
Private sessions are visible to the session owner. Organization-visible sessions can be reviewed by other members, which is useful for incident handoff and postmortem review. Use the default model unless your team has a known preference for incident analysis. For complex production incidents, choose a stronger reasoning model if available.How the incident flow works
Once configured, Incident Response follows this flow:- An alert bot posts a top-level message in the configured Slack channel.
- Factory starts a Droid session using the channel’s owner, machine, visibility, model, and prompt.
- Droid receives the Slack alert context and checks for any matching
incident-guidelinesrunbook guidance. - Droid investigates with the configured tools and should invoke the
/incidentworkflow when RCA is appropriate. - Factory posts status and session links back into Slack, and Droid can save reusable learnings for similar incidents.
incident-guidelines runbook is stored locally at .factory/skills/incident-guidelines/SKILL.md for team reuse or ~/.factory/skills/incident-guidelines/SKILL.md for personal reuse. It should store reusable investigation guidance, not secrets or one-off RCA details.
Troubleshooting
The Slack channel does not appear in Factory
The Slack channel does not appear in Factory
/invite @Factory, then refresh the Slack settings or re-run /setup-incident-response. Private channels must invite Factory explicitly.I cannot enable or edit channel settings
I cannot enable or edit channel settings
Auto-Run cannot be enabled
Auto-Run cannot be enabled
No session starts after a test message
No session starts after a test message
Droid starts but cannot investigate the issue
Droid starts but cannot investigate the issue
The RCA is too generic
The RCA is too generic
See also
- Slack integration — Connect Factory to Slack and invite Factory to channels.
- Autonomy Level — Understand how Droid runs work without repeated approvals.
- Droid Computers — Configure persistent environments for investigations.
- Skills — Learn how reusable workflows like incident investigation guide Droid.
