---
title: "How to Let an AI Agent Act in Each Customer's Salesforce, Gmail and Slack"
slug: ai-agent-access-to-each-customers-salesforce-gmail-slack
date: 2026-12-02
author: Uday Gajavalli
categories: ["AI & Agents", Engineering]
excerpt: "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."
tldr: "Connect each customer's Salesforce, Gmail or Slack account once. Then create one MCP server for that account and give the URL to your agent. The agent sees only that customer's tools, limited to the methods you allow, and the platform handles OAuth and token refresh."
canonical: https://truto.one/blog/ai-agent-access-to-each-customers-salesforce-gmail-slack/
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# 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](https://elaichi.ai/) 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:

```bash
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:

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

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

```bash
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](https://truto.one/docs/guides/integrated-accounts/mcp-servers/) 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](https://truto.one/blog/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](https://truto.one/blog/how-to-safely-give-an-ai-agent-access-to-a-users-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](https://truto.one/pricing/).
