- CategoryCRM
- AuthOAuth
- Scopes4
Overview
Connect Salesforce so the AI agent finds each customer's record by email or phone and answers with their account, opportunities and cases in view. It keeps Salesforce up to date after every conversation: it creates leads and contacts, updates fields and opportunity stages, logs each conversation as a completed task, opens and updates cases, books meetings as events and assigns owners. You connect with an External Client App that you create in your own Salesforce org: you copy its Consumer Key and Consumer Secret into MessageMind, then log in to Salesforce and allow access.
What MessageMind can do with it
- The AI agent finds the customer's Salesforce record by email or phone before it replies, across leads, contacts and accounts, person accounts included.
- It reads each record's details, owner and custom fields, along with the account's open opportunities, cases, recent tasks and upcoming events.
- New people who message you become Salesforce leads or contacts, with name, email, phone, company and the Lead Source you choose.
- Answers customers give, such as budget, timeline or product interest, are saved to the matching standard or custom fields, and new contact details update the record.
- It moves opportunities to the next stage as a deal progresses, and creates new opportunities with amount, close date and contact role.
- A qualified lead can be converted into a contact, an account and an opportunity in one step.
- Every conversation, calls included, is logged on the record as a completed task with a summary and the full transcript, with the files the customer sent attached.
- It opens cases with subject, description, priority and origin, links them to the contact and account, and gives the customer the case number.
- It adds new details to open cases as case comments, updates their status and priority, and tells customers where their case stands.
- It checks the owner's Salesforce events for free times and books meetings as events linked to the contact, lead or opportunity.
- New leads and cases get their owner from your Salesforce assignment rules, or from the owner or queue you choose.
- When a conversation needs a person, the AI agent posts a Chatter update on the record and @mentions the owner.
- The AI agent answers questions from your Salesforce Knowledge articles and quotes prices from your products and price books.
- It adds leads and contacts to your Salesforce campaigns and marks them as responded when they reply.
- A new lead, a new contact or an opportunity stage change in Salesforce can start a MessageMind campaign.
- You can import the contacts and leads already in Salesforce into MessageMind from Workspace > Contacts.
Requirements
- A Starter, Professional or Enterprise plan.
- A Salesforce org and a Salesforce user who can create External Client Apps in Setup, usually a System Administrator.
- The Salesforce callback URL, which you get from MessageMind support.
How to connect
- Ask MessageMind support for the Salesforce callback URL. Click Help in the top bar of the dashboard to message support on WhatsApp.
- In Salesforce, open Setup, type External Client Apps in the Quick Find box and click External Client App Manager.
- Click New External Client App.
- Enter an External Client App Name (for example MessageMind) and a Contact Email, and set Distribution State to Local. Salesforce fills in the API Name.
- In the API (Enable OAuth Settings) section, tick Enable OAuth.
- Paste the URL from MessageMind support into Callback URL.
- Under OAuth Scopes, add Manage user data via APIs (api), Perform requests at any time (refresh_token, offline_access), Access the identity URL service (id, profile, email, address, phone) and Access Connect REST API resources (chatter_api) to Selected OAuth Scopes.
- Click Create.
- On the app's page, open the Settings tab, expand OAuth Settings and click Consumer Key and Secret.
- Enter the verification code Salesforce emails you, then copy the Consumer Key and the Consumer Secret.
- In MessageMind, go to Connections > Integrations. Click CRM in the category list on the left, or type Salesforce in the search box.
- Click Connect on the Salesforce row to open the Connect Salesforce window.
- Paste the Consumer Key into Client ID and the Consumer Secret into Client Secret.
- Click Connect. The Salesforce login page opens in the same tab.
- Log in with a user from the org you're connecting, then click Allow.
- Salesforce sends you back to Integrations. You see "Salesforce connected successfully" and the Salesforce row shows a tick.
- Click the gear button on the Salesforce row to choose what the AI agent creates, updates and logs in Salesforce.
Authentication and permissions
- Mechanism
- You paste the Consumer Key and Consumer Secret of your own External Client App, then log in to Salesforce in the same tab and click Allow. Your Salesforce password stays on Salesforce's own login page. The access renews by itself, so the AI agent works with your records around the clock.
- Credentials
- Client ID is the app's Consumer Key and Client Secret is its Consumer Secret. In Salesforce Setup, open External Client App Manager, click your app, open the Settings tab, expand OAuth Settings and click Consumer Key and Secret. A Connected App you created earlier gives you the same two values under Manage Consumer Details in App Manager.
Required scopes
Manage user data via APIs (api)Perform requests at any time (refresh_token, offline_access)Access the identity URL service (id, profile, email, address, phone)Access Connect REST API resources (chatter_api)
Available data and actions
Reads
- Leads, contacts and accounts, person accounts included: name, email, phone, company, owner and the custom fields you choose.
- Opportunities: name, stage, amount, close date, products and contact roles.
- Cases: case number, status, priority, subject, description and case comments.
- Tasks and events, including each owner's upcoming events, to offer free meeting times.
- Knowledge articles, for answers to customer questions.
- Products and price book entries, for the prices the AI agent quotes.
- Users and queues, for assigning owners.
- Campaigns, for adding leads and contacts as campaign members.
- Picklist values and record types, so every value the AI agent writes matches your org.
- New leads, new contacts and opportunity stage changes as they happen, to start campaigns.
Writes
- New leads and contacts, with name, email, phone, company, Lead Source and the answers from the conversation.
- Field updates on leads, contacts, accounts and opportunities, custom fields included.
- A completed task for every conversation, with a summary and the full transcript, linked to the person and the related account, opportunity or case.
- New cases, case comments and changes to case status and priority.
- Events for booked meetings, on the owner's calendar and linked to the contact, lead or opportunity.
- Opportunity stage changes, new opportunities with contact roles, and lead conversions.
- Record owners, from your assignment rules or the owner and queue you choose.
- Chatter posts that @mention the owner when a conversation needs them.
- Campaign members, with their status set to Responded when they reply.
- Files customers send in a conversation, attached to the record.
AI agent use cases
- A visitor on your website chat asks about pricing for 50 users. The AI agent quotes from your price book, takes their details and creates a Salesforce lead with their answers in the right fields.
- A customer on WhatsApp asks where their renewal stands. The AI agent finds their contact by phone number, reads the open opportunity and replies with the next step.
- A customer reports a damaged delivery on Instagram and sends a photo. The AI agent opens a case with the details and the photo, links it to their account and shares the case number.
- A qualified lead asks to speak to sales. The AI agent checks the owner's Salesforce events, books a meeting and @mentions the rep in Chatter with the context.
- A lead created in Salesforce from your web form gets a WhatsApp welcome template from a MessageMind campaign, and the AI agent qualifies them in the replies.
- Your sales manager sees every WhatsApp, email and phone conversation in the Salesforce activity timeline, logged as completed tasks.
Configuration
- Click the gear button on the Salesforce row in Connections > Integrations to open the Salesforce settings.
- Choose whether new people become leads or contacts, and the Lead Source value MessageMind sets on them.
- Match MessageMind contact details and your qualifying questions to Salesforce fields, custom fields included.
- Choose how new leads and cases get an owner: your Salesforce assignment rules, a default owner or a queue.
- Pick the opportunity stages the AI agent moves deals to, and the origin and priority for new cases.
- Choose what each logged conversation holds: a summary, the full transcript or both.
- Turn on Sync Products to bring your Salesforce products and price book prices to the AI agent.
- Use Instructions for your AI to tell the AI agent how to work with your Salesforce data, such as when to open a case or book a meeting.
- The Salesforce triggers are under CRM in the Choose a trigger window of a campaign (Workspace > Campaigns).
Example workflows
A new WhatsApp lead lands in Salesforce
- A new customer writes to your WhatsApp number to ask about your annual plan.
- The AI agent searches Salesforce by their phone number and sees that they are new.
- It answers their questions and asks your qualifying questions, such as company size, budget and timeline.
- It creates a lead with their name, phone, company, the Lead Source you chose and their answers in the matching fields.
- Your assignment rules give the lead to the right rep, and the conversation is logged on the lead as a completed task.
- The rep opens the lead in Salesforce and reads the full conversation in the activity timeline.
A returning customer asks about their deal
- A customer emails to ask when their renewal starts.
- The AI agent finds their contact by email address and reads the account and its open opportunity.
- It replies with the renewal date and the next step recorded on the opportunity.
- The customer confirms they want to go ahead, so the AI agent moves the opportunity to the next stage.
- The conversation is logged on the contact and the opportunity, and the owner gets a Chatter @mention.
A support request becomes a case
- A customer writes on Instagram that an order arrived damaged and sends a photo.
- The AI agent finds their contact and opens a case with a subject, description, priority and origin, with the photo attached.
- It gives the customer the case number, and your assignment rules route the case to your support queue.
- A day later the customer asks for an update. The AI agent reads the case status and replies.
- Anything new the customer adds goes onto the case as a case comment.
Book a meeting with the account owner
- A qualified lead on your website chat asks for a call this week.
- The AI agent checks the owner's Salesforce events and offers free times.
- The lead picks Thursday at 3 pm.
- The AI agent books the event on the owner's calendar, linked to the lead, and confirms it in the chat.
- The owner sees the meeting in Salesforce with the conversation logged on the lead.
Welcome every new Salesforce lead on WhatsApp
- Open Workspace, click Campaigns in the left rail and click Create campaign.
- Type a Campaign name, keep Create an Automation selected and click Create.
- Click Add a Trigger and, under CRM, pick the Salesforce trigger for a new lead.
- Add a Send WhatsApp Template step with your approved welcome template.
- Switch the toggle at the top from Draft to Published and click Save.
- From now on, every new Salesforce lead with a phone number appears in your MessageMind contacts and gets the template, and the AI agent answers the replies.
Import the contacts and leads you already have in Salesforce
- Open Workspace and click Contacts in the left rail.
- Click the Import button.
- Click the Salesforce tile, then click Continue.
- In the Import from Salesforce window, click Start import, then watch the progress bar.
- When the status says Completed, your Salesforce contacts and leads are in your list.
Disconnect and reconnect
- Go to Connections > Integrations and click Disconnect on the Salesforce row. MessageMind disconnects straight away and shows "Integration Successfully Removed".
- MessageMind deletes the Client ID, the Client Secret and the access Salesforce gave it. Your Salesforce records stay in your org, with every task, case and event MessageMind created.
- Contacts already in MessageMind stay in your contacts.
- Your External Client App stays in Salesforce for when you reconnect. You can delete it in External Client App Manager whenever you like.
- To reconnect, click Connect on the Salesforce row and paste the same Consumer Key and Consumer Secret.