Browse the docs

Agent setup guide

Dynamics 365 New Lead Qualify & Route

Each new Dynamics 365 lead is rated, summarized for the rep and assigned by your routing rules; hot leads are qualified after your approval.

Coming soon — waiting for Microsoft Dynamics 365 approval About 10 min to set up

What it does

Each new Dynamics 365 lead is rated, summarized for the rep and assigned by your routing rules; hot leads are qualified after your approval.

  • Starts for each new lead in Dynamics 365 Sales.
  • AI rates it hot, warm or cold against your ideal customer from the lead's own fields, and writes a short summary for the rep.
  • The summary is added as a note on the lead.
  • Your routing rules pick the rep; code checks the email, the rep is looked up in Dynamics 365 and made the owner.
  • When the AI recommends it, qualifying the lead (account, contact and opportunity) waits for your approval.

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, with a user who can read, assign and qualify leads.

What it doesn't do

  • It doesn't look companies up on the web or enrich leads from other data sources.
  • It never qualifies or disqualifies a lead without your approval.
  • It doesn't email the lead.

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.
  • The app it watches, connected in Settings → Integrations (the agent starts from an app event).
  • About 10 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 the trigger, “Add the summary to the lead”, “Find the rep”, “Assign the lead” and “Qualify the lead” and pick your Dynamics 365 connection.

SettingWhat to enterIn step
Dynamics 365 connectionThe Dynamics 365 environment whose new leads are reviewed. Pick your connected Microsoft Dynamics 365 account.“New Dynamics 365 lead”
Dynamics 365 connection (same one)The same Dynamics 365 connection. Pick your connected Microsoft Dynamics 365 account.“Add the summary to the lead”
Dynamics 365 connection (same one)The same Dynamics 365 connection. Pick your connected Microsoft Dynamics 365 account.“Find the rep”
Dynamics 365 connection (same one)The same Dynamics 365 connection. Pick your connected Microsoft Dynamics 365 account.“Assign the lead”
Dynamics 365 connection (same one)The same Dynamics 365 connection. Pick your connected Microsoft Dynamics 365 account.“Qualify the lead”

4. Describe your leads and routing

Open “Rate and route the lead” and replace the placeholder.

SettingWhat to enterIn step
Your ideal customer and routing rulesReplace the placeholder with what you sell, your ideal customer, what makes a lead hot / warm / cold, and which rep (their Dynamics 365 email) gets which leads. It starts as “[WHAT YOU SELL, YOUR IDEAL CUSTOMER (INDUSTRIES, COMPANY SIZE, ROLES), WHAT MAKES A LEAD HOT / WARM / COLD, AND YOUR ROUTING RULES: WHICH SALES REP (THEIR DYNAMICS 365 EMAIL) GETS WHICH LEADS]” until you replace it.“Rate and route the lead”

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 and click “Activate app trigger”: new leads are checked on the workflow's schedule.

How it works

The agent is a normal workflow with 16 steps (1 AI step, with a person approving in Reviews). You can open, edit and monitor it like any other workflow.

  • New Dynamics 365 lead — Starts on “New lead” in Microsoft Dynamics 365 (an app event). Starts a run for each new lead in Dynamics 365 (checked on the workflow's schedule).
  • Rate and route the lead — AI step (runs on your AI provider key). AI rates the lead hot, warm or cold from its own fields and your rules, writes a short summary for the rep and picks the owner from your routing rules.
  • Add the summary to the lead — Microsoft Dynamics 365: Add a note. Adds the rating and summary as a note on the lead's timeline in Dynamics 365.
  • Owner picked? — Step. In code: the routing rules gave one valid email.
  • Assign it? — Decision: picks the branch to follow. No rule fits (or no valid email): the lead keeps its current owner.
  • Not assigned — Kept in the run history. Branch: No rule. No routing rule fitted; the note is on the lead.
  • Find the rep — Microsoft Dynamics 365: Find a user. Branch: Assign. Looks the rep up in Dynamics 365 by their email.
  • Rep found? — Decision: picks the branch to follow. The email must belong to an enabled Dynamics 365 user.
  • Rep not found — Kept in the run history. Branch: Not found. No enabled Dynamics 365 user has that email; fix it in your routing rules.
  • Assign the lead — Microsoft Dynamics 365: Update a lead. Branch: Found. Makes the rep the lead's owner in Dynamics 365.
  • Recommended to qualify? — Step. In code: the AI recommended qualifying (hot, with a company and last name).
  • Qualify? — Decision: picks the branch to follow. Leads not recommended stay open with their new owner.
  • Assigned — Kept in the run history. Branch: Keep open. The lead has its owner and the review note.
  • Approve qualifying the lead — A person approves or rejects it in Reviews (the run waits). Branch: Qualify. Qualifying creates an account, contact and opportunity in Dynamics 365, so it waits for you in Reviews.
  • Qualify the lead — Microsoft Dynamics 365: Qualify a lead. Branch: Approved. Qualifies the lead in Dynamics 365 and creates its account, contact and opportunity.
  • Qualified — Kept in the run history. The run history keeps the review and the new record IDs.

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. The sample has the same shape as a real event from the app.

Sample data fields

id, topic, full_name, first_name, last_name, company, email, phone, job_title, website, lead_source, status, owner_id, created_on, modified_on, record.description.

  • Nothing is sent or written: app actions, emails and Slack posts are simulated, and AI steps don't call your AI provider.
  • Approval steps use the Dry Run decision you pick in the step's settings (approved, rejected or timeout), so you can try each branch.

Go live

  • Open the trigger and click “Activate app trigger”: new leads are checked on the workflow's schedule.
  • Activating the app trigger needs the trigger's connected account. The first check only remembers what's already there, so older items don't start runs; the same item never starts two runs.
  • 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

Does it look the company up online?

No. It rates the lead from the fields in Dynamics 365 only, so a lead with little information gets a cautious rating and a list of questions for the rep.

Can it qualify leads without me?

No. Qualifying creates an account, contact and opportunity, so it always waits for your approval.

What if no rule fits?

The lead keeps its current owner and still gets the summary note.

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.
  • No runs start: activate the app trigger with a connected account. Only items created after activation start runs.
  • A run shows as paused: it's waiting for someone in Reviews to approve or reject it.
  • 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 .