Skip to content

AI & Agents Engineering

How to Let an AI Agent Act in Each Customer's Salesforce, Gmail and Slack

Connect each customer's account once, then give your agent an MCP server for that one account. Per-customer OAuth, isolation and tool scope, explained with one API call.

Uday Gajavalli Uday Gajavalli · · 3 min read

Your team’s apps in Elaichi, from the team behind Truto, free for 14 days. Try Elaichi
How to Let an AI Agent Act in Each Customer's Salesforce, Gmail and Slack

Connect each customer's account once, then give your agent an MCP server for that one account. The agent sees only that customer's tools, with the methods you allow. You do not run OAuth or token refresh yourself. With Truto, that is one API call per account: POST /integrated-account/:id/mcp.

Tip

Which to pick: Use Truto when you build a B2B product and the same connected customer accounts must serve your backend and your agent. If you need one app for one customer and an engineer can own OAuth, build it yourself. If your agent works in your own company's apps for your own staff, not in your customers' apps, use Elaichi instead. It comes from the team behind Truto and is built for that job.

What you have to solve

Four problems appear as soon as an agent works inside your customers' accounts.

  1. Per-customer OAuth. Each customer signs in to their own Salesforce, Google and Slack. You store and refresh their tokens.
  2. Isolation. The agent that works for customer A must never see customer B's data.
  3. Tool scope. Some customers get read-only access and others get write access. Delete access is something you grant on purpose.
  4. Many apps. Each app has its own auth, pagination and rate limits.

Two ways to do it

Approach Good for Cost
Build it yourself: OAuth per app, a token store, your own MCP server 1 to 2 apps and a team that wants full control Engineering time and upkeep for each app
Integration infrastructure with per-account MCP (Truto) B2B products where the same connected accounts serve your backend and your agent $5 per 100,000 calls. An MCP tool call is a normal API call. Connections are free. Gmail on Truto's managed Google app is priced separately (see Price).

How it works on Truto

  1. Your customer connects Salesforce, Gmail or Slack through the Truto Connect UI. Truto stores the credentials encrypted with AES-256 and refreshes tokens 1 to 3 minutes before they expire.
  2. Your backend calls POST /integrated-account/:id/mcp for that customer's account. The response holds a URL.
  3. You limit the server by method (for example read-only), by tag and with an expiry date. You can also require an API token.
  4. You give the URL to your agent. It sees only that one account.

Truto exposes only the methods that have a description. If an integration has none, creating the server fails with "not yet AI-ready". Salesforce, Gmail and Slack all have tools with descriptions today. In Salesforce they cover records such as accounts, contacts, opportunities and tasks. In Gmail they cover messages, threads, drafts and labels. In Slack they cover channels, messages and files.

Here is the call, with a read-only limit and an expiry:

curl -X POST https://api.truto.one/integrated-account/<integrated_account_id>/mcp \
  -H "Authorization: Bearer $TRUTO_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Support agent (read-only)",
    "config": { "methods": ["read"], "tags": ["support"] },
    "expires_at": "2026-12-31T23:59:59.000Z"
  }'

The response includes the server URL:

{
  "url": "https://api.truto.one/mcp/<token>"
}

Give that URL to any client that supports remote HTTP MCP servers. For example, in Claude Code:

claude mcp add --transport http customer-a-salesforce https://api.truto.one/mcp/<token>

The read group covers the get and list methods. The write group covers create, update and delete. If you list a method or tag that matches no tool on the account, the request returns a 400 that names the methods and tags that are available. See the MCP servers guide for every option.

Calls are pass-through. Truto calls the vendor live and keeps no copy of the records.

For the architecture behind per-account servers, read How to Architect a Multi-Tenant MCP Server for Enterprise B2B SaaS. For the security side, read How to Safely Give an AI Agent Access to a User's Third-Party SaaS Data.

Price

The Free plan includes 25,000 calls a month and needs no card. After that, calls cost $5 per 100,000 and connections are free. That price covers Salesforce and Slack.

Gmail is different on Truto's managed Google app: $35 per 100,000 weighted calls, with no volume discount. Most calls weigh 1. On that app, the Free plan is capped at 2,500 weighted calls a month. If your customers connect through your own Google OAuth app, Gmail calls cost the normal $5 per 100,000.

Source: Truto pricing.

FAQ

How do I let an AI agent act in each customer's own Salesforce, Gmail and Slack?
Connect each customer's account once, then give the agent an MCP server for that one account. With Truto, your customer connects through the Connect UI, and your backend calls POST /integrated-account/:id/mcp to get a URL. The agent sees only that account's tools.
How do I stop an agent working for customer A from seeing customer B's data?
Use one MCP server per connected account. Each server has its own URL and sees one account only, so the agent has no tool that can reach another customer's data.
Can I make an agent read-only?
Yes. When you create the MCP server, set config.methods to read to allow only get and list methods. Use write for create, update and delete. You can also limit tools by tag and set an expiry.
Who handles OAuth and token refresh?
Truto runs the OAuth flow, stores credentials encrypted with AES-256 and refreshes tokens 1 to 3 minutes before they expire. You do not store or refresh customer tokens yourself.
How much does it cost?
The Free plan includes 25,000 API calls a month and needs no card. After that, Salesforce and Slack calls cost $5 per 100,000 and connections are free. An MCP tool call is a normal API call. Gmail on Truto's managed Google app costs $35 per 100,000 weighted calls, with no volume discount. On that app, the Free plan is capped at 2,500 weighted calls a month. If your customers connect through your own Google OAuth app, Gmail calls cost the normal $5 per 100,000.

Blog

More from our Blog

AI & Agents

Best MCP Server for Slack in 2026

Compare the top Slack MCP servers for AI agents in 2026: open-source options vs. Truto's managed MCP with full API coverage, managed OAuth, and enterprise security.

Uday Gajavalli 15 min read

Start free today. Pay only for the calls you make.

Connections are free. 25,000 calls a month on the Free plan, no card.