- Relevant context. Each run researches across connected data sources the same way Unblocked answers a question.
- Acts on the result. A routine can notify the creator with its result, take actions in your integrations, or start a coding task when the work calls for a code change.
How it works
To create a routine, open Routines in the Unblocked web app sidebar and select New Routine, or start from a template. Templates fill in the name, trigger, and instructions for a common task, and you can change any of them before you save.1
Name the routine
Enter a Name so you can recognize the routine and its results later.
2
Add a trigger
Under Trigger, select Add and choose what starts the routine. See Triggers for the available options.
3
Write the instructions
In Instructions, describe the task and the result you want. See Write effective instructions for tips.
4
Review data access and notifications
Check which data sources the routine can use, and choose whether you want notifications when it runs.
5
Save the routine
Select Save, then confirm with Yes, create routine. Saving requires a name, instructions, and a trigger. The confirmation dialog reminds you that a routine can share information with people who wouldn’t otherwise have access to it.
Triggers
A trigger decides when a routine runs. A routine can have more than one trigger, and each one starts its own run when it fires.On a schedule
Choose Hourly, Daily, Weekdays, or Weekly for common schedules. For anything else, select Custom (cron) and enter a five-field cron expression, such as0 */3 * * 1-5 to run every 3 hours on weekdays.
After you choose a schedule, Unblocked shows its time zone and the next run time, so you can confirm the schedule before you save.

Linear
Linear triggers start a run when an issue is created or a label is added in the workspace you choose:- Issue created: When someone creates an issue. To run only for issues with a particular label, choose that label; otherwise the trigger uses Any label.
- Label added: When someone adds the label you choose to an issue.
Linear triggers require a connected Linear workspace that uses the Unblocked workspace app. If your workspace uses a personal connection, upgrade it to the workspace app. Until the connection is in place, the trigger shows a Connect button and you can’t save the routine.
Slack
Slack triggers start a run when someone posts in the channel you choose:- Slack message: When a person or another bot posts a new top-level message in the channel.
Slack triggers require a connected Slack workspace. Until it is connected, the trigger shows a Connect button.
Read the triggering message. If it asks a question, research the answer using relevant code, documents, and prior discussions. Reply in the triggering Slack thread with a short answer and source links. If the message does not need an answer, do not reply.
Slack limits
To protect busy channels, Slack triggers have rate limits for each channel:- Messages from people: 300 an hour, with bursts of up to 30.
- Messages from bots: 120 an hour, with bursts of up to 20.
What a routine can do
A routine researches across connected data sources and can take actions in your integrations, such as posting a message or commenting on an issue. Each trigger section describes the actions available for that integration. If your team uses Unblocked Code, a routine can also start a coding task, and Unblocked opens a pull request when the task finishes. Describe the action you want the routine to take in its instructions.Write effective instructions
Because a routine runs on its own, Unblocked can’t stop to ask follow-up questions. Clear, specific instructions keep each run focused:- Set a time range. Phrases like “from the past week” or “since yesterday” tell Unblocked what to cover.
- Name the sources. Mention the repositories, projects, channels, or documents that matter most.
- Describe the result. Say what you want back, such as a list of changes with links to their sources.
- Say where to send it. Name the destination so the result reaches the right people.
- Say when to do nothing. For event triggers, tell Unblocked which events don’t need a response.
Summarize new pull requests from the past week. List anything blocked or waiting for review, and what needs my attention.
Data access
By default, a routine can use all the data sources its creator has access to. To narrow that down, select Configure under Data Sources, choose the data sources the routine should use, and select Done, then save the routine.Notifications
Notifications are optional, and Unblocked sends them when a run finishes. Under Notifications, select any of these options:- Send me an email notification: Sends an excerpt of the result and a View Thread link to the email address you choose.
- Send me a Slack DM: Sends you a Slack direct message. This option appears once your team has connected a Slack workspace, and you don’t need to connect a personal Slack account.
Test a routine
If a routine has a schedule trigger, you can test it with the buttons at the bottom of the routine’s settings:- Dry Run: Appears for a new routine or a saved routine with unsaved changes. It runs the current instructions without saving the routine or sending notifications.
- Run now: Appears for a saved routine with no unsaved changes. It starts a real run, including notifications.