Agent setup guide
Freshsales Stale Deal Follow-up
Every weekday, deals in your Freshsales view with no update in 14 days get a follow-up task, and you get the list.
What it does
Every weekday, deals in your Freshsales view with no update in 14 days get a follow-up task, and you get the list.
- Every weekday, reads the 25 least recently updated deals in your view.
- Finds in code the ones not updated in 14 days or more.
- Up to 10 of the stalest get a follow-up task for your rep, due the next business day.
- Emails you the list with a short AI note on the pattern.
- 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).
- Freshsales, connected with your API key and bundle alias (Profile Settings → API Settings).
What it doesn't do
- It doesn't change, move or close deals.
- It doesn't email customers.
- Only the 25 least recently updated deals in the view are read per run.
Availability and plans
Available
Its workflow is built and tested, and every app it needs is live. You can get it and set it up now.
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: Freshsales.
- Nothing to send: the agent runs on a schedule.
- About 6 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 Freshsales
Connect Freshsales with your API key and bundle alias (Settings → Integrations → Freshsales).
3. Pick your account and view
Open “Read the deals in your view”, pick your Freshsales connection and a view of open deals, then pick the same connection and the rep in “Create the follow-up task”.
| Setting | What to enter | In step |
|---|---|---|
| Freshsales account | The Freshsales account whose deals are checked. Pick your connected Freshsales account. | “Read the deals in your view” |
| Deal view | A view of your open deals (e.g. Open Deals or My Deals). | “Read the deals in your view” |
| Freshsales account (same one) | The same Freshsales connection. Pick your connected Freshsales account. | “Create the follow-up task” |
| Rep for follow-up tasks | The Freshsales user who gets the follow-up tasks. | “Create the follow-up task” |
4. Where to send it
Open “Email the summary” and enter the email address.
| Setting | What to enter | In step |
|---|---|---|
| Send the list to | You or your sales lead. Replace the example address. It starts as “you@your-company.example” until you replace it. | “Email the summary” |
5. Test it with Dry Run
Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.
6. 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 the deals in your view — Freshsales: List deals in a view. Reads the 25 least recently updated deals in your view of open deals.
- Not updated in 14 days — Step. In code, not AI: keeps the deals last updated 14 days ago or more, and works out the follow-up tasks' due date (next business day, 17:00).
- The 10 stalest — Step. In code: the 10 deals updated 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 deal in the view went 14 days without an update.
- Each stale deal — Repeats the steps below for each item (up to 10 per run). Branch: Stale ones. Creates one follow-up task per stale deal.
- [For each item — “Each stale deal”] Create the follow-up task — Freshsales: Create a task. Creates a follow-up task on the deal for your rep, due the next business day (worked out in code).
- List the follow-ups — Step. In code: one line per deal with its amount and last update, and whether its task was created.
- Summarise the follow-ups — AI step (runs on your AI provider key). AI writes a short note on the pattern it sees in the stale deals, using the facts computed in code.
- Email the summary — Sends an email from your workspace's sender. Emails the list (from code) and the note.
- Follow-ups created — 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
Which deals are checked?
The 25 least recently updated deals in the view you pick. Use a view of open deals, so won and lost ones are left out.
Will it create the same task every day?
A deal gets a new task each weekday it stays stale. Updating the deal (or its stage) takes it off the list.
Does it email customers?
No. It creates tasks for your rep and emails you the list.
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 .