Keep Salesforce Opportunities Updated from Email Correspondence

Monitor a sales team's email inbox for customer replies, extract deal signals such as budget confirmations or timeline changes, and update the corresponding Salesforce opportunity fields automatically.

How the workflow runs

The scenario uses specific integration tools at each step, while Metorial keeps access scoped and visible.

  1. 1

    Poll the sales inbox for new customer replies

    List new inbound messages and filter for replies from known customer domains that have not yet been processed.

    • agent-mail:list_messages
  2. 2

    Extract deal signals from email content

    Read each email to identify signals such as budget approval, timeline shifts, stakeholder additions, or objections.

    • agent-mail:get_message
  3. 3

    Locate the matching Salesforce opportunity

    Search Salesforce for an open opportunity associated with the sender's email or company name.

    • salesforce:search_records
  4. 4

    Update opportunity fields and create a follow-up task

    Patch the opportunity with updated stage, close date, or next steps, and create a task record to capture the required follow-up action.

    • salesforce:update_record
    • salesforce:create_record
    • agent-mail:update_message_labels

Integrations used in this scenario

agent-mail

List Messages

Poll the sales inbox for new customer email replies.

View details

agent-mail

Get Message

Read the full email to extract deal signals and sentiment.

View details

agent-mail

Update Message Labels

Label messages after processing to avoid reprocessing.

View details

salesforce

Search Records

Find the matching opportunity by company name or contact email.

View details

salesforce

Update Record

Update opportunity stage, close date, or next step fields.

View details

salesforce

Create Record

Create a follow-up task or activity record linked to the opportunity.

View details

Connected systems

Integration

Agent Mail

Create and manage email inboxes for AI agents to send, receive, and reply to emails programmatically. Organize conversations with threads, labels, and drafts. Search emails semantically across inboxes. Extract structured data from unstructured emails and auto-categorize messages with custom prompts. Manage custom domains, contact/mailing lists, and multi-tenant pods. Subscribe to webhook and WebSocket events for message delivery, bounces, complaints, and domain verification. Supports IMAP and SMTP access alongside the REST API.

View Agent Mail

Integration

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Subscribe to real-time change events via Change Data Capture and Platform Events. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

View Salesforce

Expected outcomes

Outcome 1

Salesforce opportunities reflect the latest customer signals without manual data entry

Metorial keeps the workflow connected, governed, and traceable across the systems involved.

Explore scenarios

Outcome 2

Deal stages and close dates stay accurate as conversations progress

Metorial keeps the workflow connected, governed, and traceable across the systems involved.

Explore scenarios

Outcome 3

Follow-up tasks are created automatically so nothing falls through the cracks

Metorial keeps the workflow connected, governed, and traceable across the systems involved.

Explore scenarios

Outcome 4

Sales managers have a reliable pipeline view based on actual email activity

Metorial keeps the workflow connected, governed, and traceable across the systems involved.

Explore scenarios

How Metorial powers this scenario

Metorial is the governed connection layer between your AI agents and the tools your company runs on. It turns workflows like keep salesforce opportunities updated from email correspondence into something you can deploy quickly, safely, and at scale.

Fast

Ready for your entire team

Connect 1000+ verified integrations through one Magic MCP URL instead of building and maintaining bespoke connectors for each system in this workflow.

Browse integrations

Secure

Guardrails on every action

Protoguard inspects every message and tool call for prompt injection and policy violations before an agent touches your systems.

See how Protoguard works

Enterprise

SSO, policies, and audit trails

Agents act on real identity under company SSO, with per-user and per-group access policies and a complete, searchable record of everything that happens.

Explore enterprise

Team ready

Reusable across your org

Package this workflow as a skill, attach the tools it needs, and let teammates run it through Portals — governed by admins, owned by the people who do the work.

See Skills & Portals

Products behind this workflow

The Metorial products that connect, govern, and observe this scenario.

Connectivity

Integrations

Start from 1000+ verified integrations or bring your own, and give every one a governed path to your agents under existing SSO and access policies.

Explore Integrations

Connectivity

Magic MCP

A single URL your AI client connects to. Sign in with the login you already use and your agent reaches every integration and tool you allow — no per-app setup.

Explore Magic MCP

Identity

Access Control

Sign in with company SSO, set policies per user and group, and let agents act on real identity across every connected system in this workflow.

Explore Access Control

Governance

Protoguard

Metorial’s security layer reviews every message and tool request before an agent acts — catching prompt injection and blocking anything outside your policies.

Explore Protoguard

Observability

Tracing

A complete, searchable record of everything your agents, team, and machines do across these integrations, so you can trust the workflow in production.

Explore Tracing

Governance

Portals

Let teammates connect agents to the integrations and skills your company already uses, with admins deciding who gets access to what.

Explore Portals

Built for your whole team

However you adopt AI, Metorial has a path for connecting it safely.

Solution

For Agents

Give the agents behind this scenario governed access to every tool and integration they need, with one connection layer instead of bespoke glue code.

Agents solution

Solution

For Enterprise

SSO, granular access control, security review, and full audit trails so this workflow meets enterprise governance and compliance requirements.

Enterprise solution

Solution

For your Workforce

Let the people who do this work connect their own AI agents to approved integrations and reusable skills — safely, without waiting on engineering.

Workforce solution

Build this workflow with your own tools

Metorial gives teams one governed layer for connecting integrations to real production work.