Skip to content

Blog / Agent development and automation

How to build AI agents that connect to your CRM and marketing stack

Start with one measurable workflow, connect the systems before you add the agent, give it narrow tools, and gate every write. Four ways to build it, compared.

A rep opens a meeting with a target account in ten minutes. The account brief they need sits across the CRM, the marketing platform’s engagement history, the support queue and product usage in the warehouse. An AI agent can write that brief in seconds, but only if it can reach all four systems, and only if someone has decided what it is allowed to read and change. That is why the useful way to think about CRM and marketing agents is as an integration project first and an AI project second.

The short answer. Pick one measurable workflow. Connect the systems through governed integrations before you add the agent. Give the agent a few narrow tools, not raw API access. Require a person to approve anything that changes a deal or emails a customer. Then measure the workflow before and after.

Diagram of a CRM and marketing agent built integration first. The agent calls five narrow tools: find the account for a lead, get recent interactions and route the lead to a rep run on their own, while update a deal and email a customer wait for a person to approve them. Every tool runs through one governed integration layer, with one access model and one audit log, which connects to the CRM (Salesforce, HubSpot), marketing (Marketo), enrichment, engagement (Outreach) and the warehouse (Snowflake).

Step 1: Pick one workflow you can measure

“Automate the GTM stack” is not a project. “Get every inbound lead to the right rep in under three minutes” is. Good first workflows have a clear trigger, a clear owner and a number you already track:

  • Lead routing and enrichment. A new lead is enriched, matched to an account and assigned to a rep.
  • Account briefs. Before a meeting, the agent pulls CRM history, recent engagement, open tickets and product usage into one page.
  • Call follow-up. After a call, the agent summarizes next steps into the deal record and drafts the follow-up for the rep to send.
  • Pipeline hygiene. The agent flags deals with stale close dates or missing next steps and asks the owner to fix them.

DocuSign started with routing. Before, 90% of leads reached sales in under 10 minutes. After, 99% arrive in under 3.

Step 2: Connect the systems before you add the agent

Most agent projects stall here, not on the model. The agent needs reliable, permissioned access to the CRM, the marketing platform, enrichment data and wherever else the answer lives. Decide which system owns each field before anything writes, or the CRM and the marketing platform will overwrite each other’s lead status on every sync.

Build these connections as integrations you can test and monitor on their own, not as code buried inside the agent. That way the same connection serves the agent, the nightly sync and the dashboard, with one set of credentials and one log.

Step 3: Give the agent narrow tools

An agent with raw API access to Salesforce can do anything Salesforce allows, including the wrong thing at scale. Give it a few tools shaped by the job instead: “find the account for this lead”, “get the last five interactions”, “update next steps on this opportunity”. Each tool does one multi-step job and returns only what the task needs, which keeps the agent faster, cheaper on tokens and far easier to audit.

Step 4: Gate every write, and log everything

Let the agent read freely within its scope. Make it ask before it changes a close date, an amount, a stage or a forecast, and before it emails a customer. Show the approver exactly what will happen, and let an unanswered request expire without acting. Log every action with the person behind it, the tool and what came back. For the full set of controls, see how to build human approval for agent actions.

Step 5: Measure, then widen

Compare the workflow’s number before and after: time to first touch, leads routed correctly, hours spent on account research. Zuora took a customer brief from 23 hours to 5 minutes. Once one workflow holds up, add the next, reusing the same connections and tools.

Four ways to build it

ApproachExamplesBest forWatch for
Your CRM’s built-in agentsAgentforce in Salesforce, HubSpot’s AI agentsAgents that work inside one CRMReach outside that CRM needs more products
No-code automation toolsZapier, Make, n8nSimple, team-level agents and automationsGovernance and audit at enterprise scale
Developer frameworksLangChain, CrewAIEngineering teams that want full controlYour team builds and maintains every connection, credential and log
An orchestration platformTray.aiAgents that act across the CRM, marketing, billing and data systems under one governance modelInside a single CRM, the native agent has more context

Where Tray.ai fits

Tray.ai builds agents on the same platform as the integrations they act through: 700+ connectors, including Salesforce, HubSpot, Marketo, Outreach and Snowflake, plus the workflows your RevOps team already runs. An agent’s tools are those governed workflows, so there is one access model and one audit log across agents and integrations, and RevOps can change a routing rule without a deployment. GitHub’s marketing team built its marketing automation and CRM integration on Tray.ai with no engineering effort.

IDC named Tray.ai a Major Player in the IDC MarketScape: Worldwide Agentic AI Platforms 2026 Vendor Assessment, and Gartner named it a Pioneer in the 2026 Emerging Market Quadrant for No-Code Agent Builders. Tray starts at $50 a month, and a free trial lets you size your usage.

For the routing build in detail, see how to build lead routing that assigns in seconds, and for the wider picture, revenue operations automation.

Frequently asked questions

How do I build AI agents that connect to my CRM and marketing stack?

+

Treat it as an integration project first and an AI project second. Pick one measurable workflow, such as routing new leads or preparing an account brief. Connect the CRM, marketing platform and enrichment data through governed integrations before you add the agent. Give the agent a few narrow tools rather than raw API access, require a person to approve anything that changes a deal or sends an email, and measure the workflow before and after.

What can an AI agent do in a CRM and marketing stack?

+

The work people skip: researching an account before a meeting, summarizing calls into next steps, enriching and routing new leads, cleaning duplicate records, drafting follow-ups and explaining why a deal moved. Anything that changes an amount, a close date or a forecast, or sends an email to customers, should wait for a person to approve it.

Should I use my CRM's built-in AI agents or a separate platform?

+

If the agent only works inside one CRM, the built-in option, such as Agentforce in Salesforce, has context a third party does not. If the agent has to act across the CRM, the marketing platform, enrichment data, billing and a warehouse, a platform that connects all of them avoids stitching one agent product to several integration tools.

Do I need developers to build CRM and marketing agents?

+

Not for most RevOps workflows. No-code tools and orchestration platforms let operations teams build agents and the integrations under them. Developer frameworks such as LangChain and CrewAI give engineers full control, but your team then builds and maintains the connections, credentials and audit trail itself.