Agent setup guide
Dynamics 365 Stale Opportunity Nudge
Every weekday, the open Dynamics 365 opportunities that haven't moved in 14 days are listed with a suggested next step for each.
What it does
Every weekday, the open Dynamics 365 opportunities that haven't moved in 14 days are listed with a suggested next step for each.
- Every weekday, reads your open opportunities in Dynamics 365, least recently changed first (up to 200).
- Finds in code the ones not changed in 14 days or more and lists the 20 stalest with their estimated revenue, close date and last change.
- AI suggests one concrete next step per opportunity from its own fields and your sales steps.
- Emails you the list; nothing is changed in Dynamics 365.
- Dates are worked out in code, never by the AI: days until or since each date, the window and business days are computed in your workflow's time zone, and records outside the window are skipped before the AI sees them.
What it needs
- A paid plan (agents run live on paid plans).
- An AI provider key (Settings → AI Providers).
- Microsoft Dynamics 365 Sales, connected in Settings → Integrations.
What it doesn't do
- It doesn't read emails, meetings or activities: “stale” means the opportunity record wasn't changed.
- It doesn't change, close or reassign opportunities.
- Up to 200 open opportunities are read per run.
Availability and plans
Coming soon — waiting for Microsoft Dynamics 365 approval
The agent is built, but Microsoft Dynamics 365 is still waiting for the vendor's approval. It becomes available on its own once that app is live; until then it can't be bought or set up.
Included free on the Enterprise plan; on other paid plans it's a one-time purchase per workspace (the price is on the Agents page). The Agents page in the app always shows its current status.
Before you start
- A paid plan: agents run live, and the Free plan only runs Dry Runs.
- An AI provider key (OpenAI, Anthropic, Google and more) in Settings → AI Providers. AI usage is billed by your provider.
- These apps, connected in Settings → Integrations: Microsoft Dynamics 365.
- Nothing to send: the agent runs on a schedule.
- About 8 minutes.
Set it up step by step
Get the agent first (buy it, or it's already yours when your plan includes it), then in Agents → My agents press “Set up this agent”. That creates the agent's workflow in your workspace (it counts towards your plan's workflow limit) and opens the canvas with a setup checklist above it. Each item links to the exact place to go and ticks itself off when it's done.
1. Connect your AI provider
The AI steps run on your own key (OpenAI, Anthropic, Google and more). Add one in Settings → AI Providers.
2. Connect Microsoft Dynamics 365
Connect Microsoft Dynamics 365 (Settings → Integrations): enter your Dynamics address (yourcompany.crm.dynamics.com) and sign in with your work account.
3. Pick the Dynamics 365 connection
Open “Read open opportunities” and pick your Dynamics 365 connection.
| Setting | What to enter | In step |
|---|---|---|
| Dynamics 365 connection | The Dynamics 365 environment whose pipeline is checked. Pick your connected Microsoft Dynamics 365 account. | “Read open opportunities” |
4. Describe your sales steps
Open “Suggest next steps” and replace the placeholder.
| Setting | What to enter | In step |
|---|---|---|
| Your sales steps | Replace the placeholder with what you sell, your sales steps and what a good next step looks like at each. It starts as “[WHAT YOU SELL, YOUR USUAL SALES STEPS (E.G. DEMO, PROPOSAL, TRIAL, CONTRACT) AND WHAT A GOOD NEXT STEP LOOKS LIKE AT EACH ONE]” until you replace it. | “Suggest next steps” |
5. Where to send it
Open “Email the nudge” and enter the email address.
| Setting | What to enter | In step |
|---|---|---|
| Send the nudge to | Replace the example address with yours (or your sales team's). It starts as “you@your-company.example” until you replace it. | “Email the nudge” |
6. Test it with Dry Run
Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.
7. Switch the trigger on
Open the trigger, set your time zone and switch the schedule on. It runs every weekday at 8:00.
How it works
The agent is a normal workflow with 12 steps (1 AI step). You can open, edit and monitor it like any other workflow.
- Weekdays at 8:00 — Runs on a schedule (cron 0 8 * * 1-5, UTC — change it in the trigger's settings). Runs Monday to Friday. Set your time zone on the trigger.
- Read open opportunities — Microsoft Dynamics 365: Find opportunities. Reads your open opportunities from Dynamics 365, least recently changed first (up to 200).
- Not changed in 14 days — Step. In code, not AI: keeps the open opportunities whose last change is 14 days ago or more (change the number in this step's settings).
- The 20 stalest — Step. In code: the 20 opportunities changed longest ago.
- Anything stale? — Decision: picks the branch to follow. Nothing stale: the run ends quietly.
- All moving — Kept in the run history. Branch: All moving. No open opportunity went 14 days without a change.
- Each stale opportunity — Repeats the steps below for each item (up to 20 per run). Branch: Stale ones. Lists each one with its value and last change (computed in code).
- [For each item — “Each stale opportunity”] Listed — Kept in the run history. Nothing is changed in Dynamics 365.
- List the stale opportunities — Step. In code: one line per opportunity with its estimated revenue, close date and last change.
- Suggest next steps — AI step (runs on your AI provider key). AI suggests one concrete next step per opportunity from its name, phase and description, using the dates computed in code.
- Email the nudge — Sends an email from your workspace's sender. Emails the list (from code) and the next-step ideas.
- Nudge sent — Kept in the run history. The run history keeps every list.
Test it with Dry Run
Press Dry Run in the canvas. The agent runs on the sample data stored on its trigger (the “Sample data for Dry Run” box), so you can check every step's output before anything is live.
- Nothing is sent or written: app actions, emails and Slack posts are simulated, and AI steps don't call your AI provider.
- For-each loops repeat only the first 3 items.
Go live
- Open the trigger, set your time zone and switch the schedule on. It runs every weekday at 8:00.
- Scheduled runs start only once the schedule is activated, and can't repeat faster than your plan's minimum interval.
- The setup checklist adds a “paid plan” item before activation: live runs need a paid plan (the Free plan only runs Dry Runs).
- When every checklist item is done and the trigger is on, the checklist says “Live — this agent is running”. Follow its runs in the workflow's History tab and in Analytics → Agents.
Questions
How does it decide what's stale?
In code, from each opportunity's “modified on” date in Dynamics 365: 14 days or more by default. Change the number of days in “Not changed in 14 days”.
Does it change my opportunities?
No. It only reads them and emails the list.
Whose opportunities are included?
Every open opportunity the connected Dynamics 365 user can see, up to 200 per run.
Troubleshooting
- “No AI provider connected” or a rejected key: connect or fix the key in Settings → AI Providers, then press Test there.
- A checklist item stays unticked: the setting is still empty or still contains its placeholder text. Open the step from the checklist and fill it in.
- An app step fails with “Needs reconnect”: the account's access was revoked or expired. Reconnect it in Settings → Integrations.
- It didn't run at the expected time: the schedule must be activated, and its time is in the trigger's timezone.
- A step failed: open the run in History and check that step in the Trace tab for the error and what it received.
Generated from the agent's own workflow, so it always matches what the agent does. Last updated .