TL;DR: This single-trigger, multi-action Wrike AI agent automatically catches tasks that slip past their deadlines. The exact moment a task's finish date passes, it posts a short at-risk summary to your team's Slack channel and emails the assignee directly. It replaces manual deadline tracking, reduces status meeting surprises, and keeps your project delivery running smoothly.
Hello Community! 👋
Today, we’re sharing a guide to setting up the At-Risk Escalation Agent that automatically detects slipping work, posts a focused message to your project’s Slack channel, and emails the assignee with immediate next steps.
Below, you’ll find the complete configuration, prompts, setup instructions, and customization tips so you can plug this pattern directly into your project delivery and client services workflows ✔️
Agent Goal / Use Case
Every team that runs work to deadlines faces the same quiet problem: a task slips its finish date, nobody notices, and the consequences show up later as a delayed project or a surprised client.
Standard automations can fire when a date passes, but they send the same prewritten note to the same fixed list regardless of how serious the slip is or who needs to hear about it. An automation can notify; it cannot judge. It cannot read the task context, look at the team's specific situation, and choose the right wording for the moment.
The At-Risk Escalation Agent closes that gap by performing the following actions:
- Real-time detection: Scans active tasks and fires the instant a finish date passes.
- Contextual reading: Reviews the task title, description, assignee, recent comments, and custom fields.
- Multi-channel routing: Composes a tailored summary for your team's Slack channel and sends an email to the assignee simultaneously.
How It Works
This agent pattern uses a single date trigger to execute two distinct communication actions:
- The Trigger: A task crosses its finish date without being completed. The agent runs automatically via the "Date reaches" trigger, which is restricted to active tasks so completed or cancelled items are excluded.
- Context Gathering: The agent reads the task's title, description, assignee, due date, recent comments, and relevant custom fields.
- Action 1 (Post to Slack): The agent writes a short, 3 to 4 line at-risk message naming the task, owner, and context, then posts it to your connected Slack channel with a link back to the work item.
- Action 2 (Send Email): The agent writes a fuller version of the summary and emails the assignee via your connected Gmail or Outlook account, providing a clear next step.
- The agent log records the run, with the delivery status for both the Slack post and the email visible in one place.
Why this works: One date passing, two channels reached, zero manual follow-up. The team sees the high-level risk in Slack where they already work, and the owner gets an actionable item directly in their inbox.
Features Used
- Post to Slack notification action (NEW this month): The agent posts the at-risk message into the project's Slack channel without anyone needing to log into Wrike.
- Date-reaches trigger: This trigger runs the moment a date custom field, including the standard Finish date, crosses a threshold. It is restricted to active tasks by the trigger's own settings.
- Send email notification action: The agent emails the assignee directly via your connected Gmail or Outlook account.
- Reading task context including custom fields: The agent reads the task title, description, assignee, custom fields, and recent comments to compose the message.
Prerequisites
Before setting up the agent, ensure you have the following pieces in place:
Custom Fields on the Task:
You will want these custom fields available on the task, on its parent project, or on a place the agent can see:
- Assignee Email (Text): The assignee's email address, used as the recipient. If your account already exposes the assignee's email on their user record, you can let the agent read it from the user object.
- Project Owner Email (Text, optional): Used if you want to CC an internal escalation contact on the email.
A Slack Channel for the Project
- Connect your Slack workspace once at the account level, then choose a single destination channel during setup. Pick the channel where the project team already collaborates.
A Gmail or Outlook Account
- Ensure your work mailbox is connected in your agent settings so emails send from your address.
Agent Configuration
Trigger Settings
Setting | Value |
|---|
Name | At-Risk Escalation Agent |
Agent Scope | Select which tasks, projects, or folders will define this agent’s scope. The agent can watch for triggers and act only on these items and their subitems.
|
Trigger & Actions | • Trigger: "When Finish date passes in [Scope]..." • Action 1: "Post Slack notification for the work item where the trigger happened..." • Action 2: "Send email notification for the work item where the trigger happened..."
|
Getting Started
- Under Space Settings, click on AI Agents, and select “Or build it yourself here” option.
- You will then see a split view, with the conversational builder on the left and a configuration section on the right. In the configuration section, you can manually add instructions and select the location, trigger, and actions. We will use this section to build the agent.
Select Agent Scope
Add this agent to one or more tasks, projects, or folders so it can do its work. The agent can watch for triggers and act only on these items and their subitems.
Prompt (Complete Configuration)
Paste the below in General instructions section
Role
You are the At-Risk Escalation Agent for this project. When a task's finish date passes without the task being completed, you tell the right people in the right channels that the task has slipped, with enough context that they can act.
Decision logic
- Read the task: title, assignee, the relevant custom fields (Assignee Email, Project Owner Email if present), the most recent comments, and the original due date.
- Compose a short at-risk message for the team's Slack channel. The message should name the task, when it was due, who owns it, and one line of context drawn from the recent comments or the priority field if available.
- Compose a longer email to the assignee, naming the task, what slipped, and one concrete next step the assignee can take (e.g., "please update the status and propose a new finish date in the comments by end of day").
Tone
- Direct and matter-of-fact. Not alarmist, not apologetic.
- One mention of the assignee by first name in the email opening.
Output
- Two messages, each composed for its own channel. The Slack message stays short (3-4 lines max). The email is fuller (a short paragraph plus a bullet of the suggested next step).
Trigger:
When Field Value Changes -> Date Reaches -> Finished date -> Has passed -> Time zone -> Select scope
Action Configurations
Action 1: Post to Slack
Send Slack message -> Select Slack Account -> the work item where the date reaches
Add Instructions:
Post a short at-risk message into the project's Slack channel.
Format the message as:
⚠️ At-risk: <task title>
Owner: <assignee first name>
Was due: <original finish date>
Context: <one line drawn from recent comments or, if no comments,the priority/risk fields if present>
<link back to the work item>
Keep it under 4 lines including the link.
Action 2: Send Email
Send email -> Select Gmail/Outlook -> Select Account -> the work item where the date reaches
Add Instructions:
Send an email to the assignee. Extract the address from the Assignee Email custom field on the task. If the Project Owner Email custom field has a value, CC it.
Subject: At-risk: <task title>
Body (one short paragraph + one suggested next step):
Hi <assignee first name>,
<one to three sentences naming the task, when it was due, what the agent has learned from the recent comments about why it slipped if anything>.
A suggested next step:
- <one concrete action with a soft deadline, e.g., "please post a new proposed finish date in the comments by end of day Friday so the project plan can be updated">
Thanks for taking a look,
<project name> — automated by Wrike
Step-by-Step Setup
Step 1: Prepare the Fields and Channels
- Set up your Assignee Email custom text field if required.
- Ensure your core team Slack channel is ready and active.
- Authenticate your Slack workspace and your email client (Gmail or Outlook) in your Wrike account settings.
Step 2: Create and Scope the Agent
- Space Settings → AI Agents → + Agent/Get Started→ Select “Or build it yourself here” option.
- Name the agent At-Risk Escalation Agent.
- Agent scope: Select the tasks, projects, or folders that define this agent's scope. The agent will monitor triggers and take action only within these items and their subitems.
Step 3: Configure Triggers & Actions
- Trigger: Set to "When Finish date passes in [Scope]..."
- Action 1 (Slack): Select "Post Slack notification...", choose your target channel, and paste the Action 1 instruction block.
- Action 2 (Email): Select "Send email notification...", configure your sender options, and paste the Action 2 instruction block.
- Paste the General Instructions into the main prompt window.
Step 4: Testing Playground
Toggle the stage selector at the top from "Configure" to "Test" to try sample prompts alongside your form configuration without changing screens.
- Select or create a test task inside the Test stage view.
- Fill out the Assignee Email field and set its finish date to a time in the past.
- Verify the agent triggers immediately, generating the 4-line Slack summary and the structured email draft in the test pane.
Customization Examples
- Project Owner CC on Slack: If your project owner does not always read the team channel, add a second email action that alerts them when the priority field is "High" or "Critical."
- Different Slack channels by region or client tier: Set up multiple instances of this agent (one per channel), with each instance scoped using sentence-style action filters to route Critical EMEA tasks to one channel and Critical AMER tasks to another.
- Add a soft warning version: Configure a sister agent using date conditions that posts a soft warning a few days before the finish date.
Expected Results
- Immediate Impact: Deadline overruns are caught instantly, eliminating multi-day gaps where slipped tasks go unnoticed.
- Team Benefits: Assignees receive direct, non-alarmist emails outlining exactly how to remediate the timeline.
- Organizational Benefits: Client-facing project timelines stay protected, team accountability increases, and risk metrics become highly transparent across your target channels.
Caveats
- The Slack post action commits to one channel per action: If you need messages in multiple channels, set up one action per channel.
- Email send requires a connected Gmail or Outlook account: Emails originate from your mailbox, allowing the assignee to reply directly to a real person.
- The Slack notification does not support threading or @-mentions yet : The agent posts as a top-level message and identifies assignees in the text body.
- The trigger uses the standard Finish date field: Point the trigger at a specific date custom field if your team uses one as its working deadline.
Found this AI Agent setup guide helpful? Leave a reaction (👍 Like / 🙂 Agree / 💡 Insightful) or share your thoughts in the comments below! 👇