Copilot Studio Gallery
ContributorsShare a solution
← Back to gallery

Workflows

Built by Microsoft

Sales Lead Qualifier

Two shared-inbox workflows that qualify sales enquiries with BANT: log leads to tiered Excel tables, or create structured Dataverse records with linked hot-lead alerts. Choose based on your use case and licensing.

IGJLPBby Isha Gautam, Jasmita Lamba, and Pulkit BhagatVersion 1.0.0.0Updated 2026-10-09

This sample is provided as-is and is not covered by Microsoft Support. The underlying Copilot Studio and Power Platform products retain their standard support. Importing can create or modify resources and use your connections and permissions. Support details

Download ZIP
What’s in the solution
  • 2 workflows

Workflow preview

Sales Lead Qualifier - Original

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Sales & marketingsaleslead-qualificationemail-triagemulti-agentexceldataverseautomation

Sales Lead Qualifier includes two alternative workflows in one solution. Both monitor a shared Inbox for emails with sales in the subject, qualify each enquiry using BANT (Budget, Authority, Need, and Timing), and notify a seller only when a lead is Hot.

Choose either workflow based on your storage needs, use case, and available Power Platform licensing. You do not need to run both.

Authors

Isha Gautam, Jasmita Lamba, and Pulkit Bhagat.

Choose a workflow

Sales Lead Qualifier - OriginalSales Lead Qualifier - Revised
Best fitA lightweight, spreadsheet-based sales pipeline.Structured lead records in Dataverse with richer contact details and linked alerts.
StorageHotLeads, WarmLeads, and ColdLeads tables in Sales Log.xlsx at the OneDrive root.The included custom Sales Lead V2 Dataverse table, not the standard Dynamics Lead table.
ClassificationBANT results as a labeled text block.BANT results as structured fields, including phone when explicitly provided.
LoggingLogging Agent manages Excel and OneDrive tool calls and workbook/table setup.Tool-less Lead Agent prepares fields; an explicit connector action creates the record.
FilteringLogging Agent skips leads classified as Filtered.An explicit condition skips the Lead Agent and downstream steps for Filtered emails.
Hot-lead alertLogging Agent sends an email with the qualification summary.A separate Notifier Agent sends a High-importance email with a link to the created record.
Licensing considerationsRequires access to AI workflow capabilities and Outlook, Excel, and OneDrive connections; avoiding Dataverse does not make it license-free.Also requires an entitlement covering the premium Dataverse connector and appropriate table permissions.

Original: Excel logging

Shared mailbox email -> Classifier Agent -> Logging Agent.

  • Classifier Agent uses Sonnet 5 with no tools. It reads the email as untrusted data and classifies it as Hot, Warm, Cold, or Filtered. Its labeled text output includes contact details and the BANT rationale.
  • Logging Agent uses Sonnet 5 and owns Excel, OneDrive, and Outlook tools. For non-Filtered leads, it checks for the workbook and the three tier-specific tables, creates missing resources, and writes the lead to the matching table. Only Hot leads trigger an email to NotifyEmail.

Revised: Dataverse logging

Shared mailbox email -> Classifier Agent -> exclude Filtered -> Lead Agent -> ShouldLog condition -> Add a new row -> ShouldNotify condition -> Notifier Agent.

  • Classifier Agent uses Claude Opus 5 with no tools. It returns structured contact details, phone, tier, BANT signals, reasons, and the Hot-lead subject.
  • Filtered condition prevents non-sales emails from reaching the Lead Agent, record creation, or notification.
  • Lead Agent uses Claude Opus 5 with no tools. It prepares the record name, subject, first and last names, email address, company, phone, lead source, quality, description, numeric budget when explicitly stated, and purchase timeframe. It sets ShouldLog to true for genuine enquiries and ShouldNotify to true only for Hot leads.
  • Add a new row is a Dataverse connector action, not an agent tool. It runs only when ShouldLog is true.
  • Notifier Agent uses Claude Opus 5 with only the Outlook Send email tool. It runs after successful record creation, only when ShouldNotify is true, and appends a deep link built from the created record’s response.

Qualification rules

  • Hot: Budget Strong and Authority Strong, plus Need Strong or Timing Strong.
  • Warm: At least one Strong signal without meeting the Hot criteria.
  • Cold: Mostly Weak or Absent signals, generic requests, or no clear buying intent.
  • Filtered: Non-sales messages such as newsletters, recruitment, invoices, support requests, and automated replies. Neither workflow logs or notifies these messages.

There is no duplicate lookup in either workflow; repeated enquiries can create additional rows.

Configuration

SettingPurpose
Shared mailbox addressBoth triggers use alias@contoso.com. Replace this placeholder with a mailbox you can access.
Subject filterBoth workflows use sales. Adjust it to match your inbound enquiries.
Folder and pollingBoth workflows monitor Inbox every minute.
NotifyEmailBoth workflows use alias2@contoso.com for Hot-lead alerts. Replace it with your sales notification address.
SalesLogFileNameOriginal workflow: workbook created and used at the OneDrive root. Default: Sales Log.xlsx.
TriggerMailboxRevised workflow: alias@contoso.com. This variable does not drive the trigger; update the trigger address separately when changing mailboxes.
LeadTableNameRevised workflow: iwf_sl2_salesleadv2s, the entity set for the included Sales Lead V2 table.

The Dataverse table, BANT rules, and AI model selections are unchanged.

Customizations

Point the trigger at your own shared sales mailbox, then adjust:

  • BANT criteria and tier names in the Classifier Agent. For Original, keep Logging Agent table mappings aligned. For Revised, update downstream conditions and Lead Agent mappings together.
  • Which tiers notify. Only Hot leads notify by default. Update Original’s Logging Agent instructions or Revised’s Lead Agent ShouldNotify decision.
  • Logged fields such as region or lead score. For Original, extend the Classifier’s output and Logging Agent headers together. For Revised, update structured outputs, the Dataverse schema, and the row-creation mapping.
  • Filtering strictness for what counts as spam or noise.
  • Storage location if you need SharePoint or a shared folder rather than OneDrive or Dataverse.
  • Duplicate handling if repeat enquiries should update or reference an existing lead instead of creating another record.

Keep classification tool-less, treat email content as untrusted, and constrain tool-bearing agents to their intended logging or notification actions.

Prerequisites

  • Both workflows: a Power Platform environment where you can import the solution, access to the AI workflow capabilities and selected models, applicable licensing and capacity, an Outlook connection, access to the shared mailbox, and permission to send notifications.
  • Original: Excel Online (Business) and OneDrive for Business connections, plus write access to the OneDrive root.
  • Revised: a Dataverse connection and create permissions on the included Sales Lead V2 table. Notification recipients also need access to the record to open its link.

Licensing

Choose Original if Excel storage meets your needs and you do not have an entitlement covering the Revised workflow’s Dataverse use. Choose Revised if you need structured Dataverse records and linked alerts and your organization’s Power Platform licensing covers that scenario.

Original is not a license-free alternative: both workflows use AI capabilities whose licensing and capacity requirements must be checked. Microsoft Dataverse is classified as a premium connector, but the applicable entitlement depends on your execution scenario and existing licenses. Confirm coverage with your administrator before enabling either workflow; a generic “Power Platform license” alone is not enough to establish coverage.

See Copilot Studio licensing requirements and the Microsoft Dataverse connector classification.

Import

Download the rebuilt solution ZIP from this page and import it through Power Platform. The ZIP contains both workflows and the Dataverse table, even if you intend to use only Original.

  1. Review and replace environment-specific connections during import.
  2. Choose Original or Revised and verify its prerequisites and licensing.
  3. Replace alias@contoso.com in the selected trigger and alias2@contoso.com in NotifyEmail. For Revised, also update TriggerMailbox to keep its configuration consistent.
  4. For Original, confirm SalesLogFileName. For Revised, confirm access to Sales Lead V2 and verify that notification recipients can open record links.
  5. Test Hot, Warm, Cold, and non-sales emails with sales in the subject. Confirm that genuine enquiries are logged, Filtered messages are skipped, and only Hot leads notify. For Revised, also test missing budget, phone, and contact-name fields.
  6. Enable only the selected workflow and leave the other disabled. Both use the same mailbox and subject filter, so enabling both can produce duplicate processing and alerts.

Each matching email invokes classification and consumes AI capacity. Turn the workflow off between experiments to avoid unnecessary consumption.

Workflows and their components

Triggers, steps, connector services, and agent calls in each workflow.

WorkflowTriggerConnectorsAgents

Sales Lead Qualifier - Original

4 steps

When a new email arrives in a shared mailbox

Connector · Office 365 Outlook

—No connector steps
  • Classifier Agent

    Inline agent

  • Logging Agent

    Inline agent

Sales Lead Qualifier - Revised

9 steps

When a new email arrives in a shared mailbox

Connector · Office 365 Outlook

  • Microsoft Dataverse
  • Classifier Agent

    Inline agent

  • Lead Agent

    Inline agent

  • Notifier Agent

    Inline agent

Exploded solution manifest

The download rebuilds these submitted files at the ZIP root. Gallery metadata and the human-facing README are excluded.

Solution
IshaSalesLeadQualifierVersions
Publisher
Isha Workflow Isolation
Version
1.0.0.0
Files
5
solution: 2workflow: 2other: 1
PathTypeSize
[Content_Types].xmlother258 B
customizations.xmlsolution81,170 B
solution.xmlsolution4,350 B
Workflows/SalesLeadQualifier-Original-A6F98817-DA83-4EEB-9E39-6C969B277275.jsonworkflow92,708 B
Workflows/SalesLeadQualifier-Revised-45FAD15F-BC4A-4920-83C7-6BC935F22DFE.jsonworkflow161,206 B

This sample is provided as-is and is not covered by Microsoft Support. The underlying Copilot Studio and Power Platform products retain their standard support. Importing can create or modify resources and use your connections and permissions. Support details

Download ZIP

Preview community-built Copilot Studio solutions before you import them.

View on GitHub