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://docs.factory.ai/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
In the Factory App, go to Settings → Integrations → Slack. If you have not connected Slack yet, set up the Slack integration first, then open the Slack management view.
Invite Factory to the incident channel
In Slack, open the channel where alert bots post incidents and run:Only channels where Factory has been invited appear in the channel list.
Enable the channel
In the Slack settings, open the Auto-Backlinking section and enable the incident channel. This links Slack messages in that channel back to Factory sessions.
Turn on Auto-Run
Expand the channel settings and enable Auto-Run. This lets Factory start a Droid session automatically when an incident alert arrives.
Choose the session owner and machine
Select the session owner and the computer or cloud workspace Droid should use. The session owner controls which user identity and permissions the auto-run session uses.
Tune visibility, model, and prompt
Choose whether sessions are private to the owner or visible to the organization, optionally select a model, and set the incident prompt.A good starting prompt is:
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
In the Droid CLI, run:If Slack is not connected yet, Droid opens the Slack OAuth flow before continuing.
Select the incident channel
Choose the Slack channel that receives incident alerts. If the channel is missing, invite Factory to it with
/invite @Factory and run the setup command again.Select the computer
Choose the computer Droid should use for incident investigations. Pick the environment with the right repository checkout, observability tools, and credentials.
Accept or edit the RCA prompt
Keep the default incident prompt or add channel-specific instructions, such as which runbooks, dashboards, repositories, or escalation rules Droid should check first.
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 to the channel with
/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
You need a Factory Manager or Owner role to configure Slack auto-run settings. Ask an org owner to update your role or perform the setup.
Auto-Run cannot be enabled
Auto-Run cannot be enabled
Make sure the channel has a selected computer or workspace. If none are available, create or connect a Droid computer first.
No session starts after a test message
No session starts after a test message
Confirm the message is a top-level alert in the configured channel, not a thread reply. For the incident setup flow, alert bot messages are the expected trigger.
Droid starts but cannot investigate the issue
Droid starts but cannot investigate the issue
Check that the selected machine has the right repository, tooling, and credentials. Update the channel prompt with links to runbooks or dashboards Droid should use first.
The RCA is too generic
The RCA is too generic
Add more channel-specific context to the prompt: service names, alert sources, dashboard links, log query examples, repository paths, and expected RCA format.
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.
