Schedule an agent or attach it to Slack
Run an agent on a repeating schedule, or attach it to a Slack channel so people can ask it there.
You can start an agent on a schedule, or let people ask it in a Slack channel.
Before you start
Section titled “Before you start”- The agent has activated instructions. See Build an agent.
- To add a schedule, you are an agent manager. An agent manager has the Manage permission on the agent.
- To use Slack, a workspace member has connected Slack.
Add a schedule
Section titled “Add a schedule”-
Select Agents in the sidebar.
-
Open the agent.
-
Open the Triggers tab.
-
Select Add schedule.
-
Under What runs, select Run a saved prompt.
-
In Prompt, type the work that the agent does on each run.
-
Under When to run, choose Repeat interval or Calendar schedule.
- For Repeat interval, enter the Interval in minutes. Use a number from 60 to 10,080.
- For Calendar schedule, choose the Days, the Time, and the Time zone.
-
Check the Task limits for each run.
-
Select I sponsor this schedule using my current permissions.
-
Select Create prompt schedule.
How scheduled runs work:
- Each run is a private task that belongs to the sponsor.
- A prompt schedule runs at most one time each hour.
- Only one task from a schedule is open at a time.
- To stop a schedule, select Revoke schedule.
Use a cron expression
Section titled “Use a cron expression”Under Advanced schedule, you can enter a Cron expression instead of days and a time. A cron expression has five fields. They are the minute, the hour, the day of the month, the month, and the day of the week. For example, 0 9 * * 1 runs on Mondays at 09:00.
Check a table on a schedule
Section titled “Check a table on a schedule”Under What runs, you can select Inspect a table instead. The agent reads the fields of one table on each run.
- Use an interval from 1 to 10,080 minutes.
- Only one inspection runs at a time. TulipFarm skips missed intervals.
- Select Create inspection schedule to save it.
Attach the agent to a Slack channel
Section titled “Attach the agent to a Slack channel”-
Select Agents in the sidebar.
-
Open the agent.
-
Open the Slack tab.
-
Choose a channel from the list.
If the channel is not in the list, add the TulipFarm bot to the channel in Slack. Then check again. You can also enter a channel ID. The ID starts with C or G. Copy it from the channel details in Slack.
-
Choose when the agent replies:
- Every channel message
- When mentioned
-
Select Attach agent.
To use this, you need a linked Slack account, current access to the channel, and permission to use the agent.
Ask the agent in Slack
Section titled “Ask the agent in Slack”A person can ask the agent in its channel if both of these are true:
- They are a current member of the TulipFarm workspace.
- They linked their Slack account to TulipFarm.
The task belongs to the person who asked. To link an account, select Sign in with Slack when TulipFarm asks. Sign in as the same Slack user who sent the message. TulipFarm does not match accounts by email address.
Next steps
Section titled “Next steps”- Review agent tasks
- Use the calendar to see your scheduled runs
- Slack
- Approvals and agent permissions