Skip to content

Guides

How to build integrations and automations

Step by step guides with the Tray Headless prompts that build each one. Work in your coding assistant, governed by default.

Revenue operations

How to build

Automation

Lead import and validation

Validate before you write, quarantine the bad rows instead of dropping them, dedupe against what is already there, and keep the source.

Salesforce Google Drive Marketo Slack

How to build

Automation

Lead routing that assigns in seconds

Match the lead to an account first, evaluate rules in a fixed order, catch what they miss, and time it from arrival.

Salesforce Marketo Clearbit Slack

How to build

Automation

Lead-to-account matching

Domain first, then fuzzy name, then hierarchy, with a confidence score and a review queue for the ones that are close.

Salesforce Clearbit Marketo Slack

How to build

Automation

Lead enrichment that does not stall the queue

Enrich on a budget and a timeout, cache by domain, fall back between providers, and never hold a lead waiting for a field.

Clearbit ZoomInfo Salesforce Marketo

How to build

Automation

Lead deduplication and merge

Detect on a scored rule set, survive the merge with field-level rules, keep the activity history, and never silently reassign an owner.

Salesforce Marketo Slack Snowflake

How to build

Integration

Lead scoring sync

Keep fit and activity scores apart, write one score the CRM trusts, let old activity fade, and route the moment a lead crosses the line.

Marketo HubSpot Salesforce Demandbase

How to build

Automation

Speed-to-lead alerts

Alert the rep with everything they need, start a clock on every lead, escalate before it goes cold, and reassign when nobody picks it up.

Salesforce Slack Microsoft Teams Outreach

How to build

Automation

Pipeline hygiene automation

Detect the staleness that matters, nudge the owner rather than the report, escalate on the deals that count, and measure whether it worked.

Salesforce Slack Gong Outreach

How to build

Integration

CRM to marketing automation sync

Decide field ownership before you build, sync deltas not everything, handle the person-versus-lead model gap, and break loops.

Salesforce Marketo Slack Snowflake

How to build

Integration

Sales engagement to CRM sync

Log activity without flooding the timeline, suppress sequences on the accounts you must not touch, and keep one definition of engagement.

Outreach Salesforce Zendesk Gong

How to build

Integration

Conversation intelligence to CRM sync

Write the few fields a rep will act on, keep every claim linked to its moment in the call, and never let a model set a close date.

Gong Salesforce Google Calendar Slack

How to build

Integration

Quote-to-order integration

Approved quote to signed contract to booked order, with the approval state carried through and amendments handled.

Salesforce CPQ DocuSign NetSuite Salesforce

How to build

Integration

Order-to-cash integration

Closed-won to sales order to invoice to cash applied, as a CRM to ERP integration. Retries that never create a second order, a reconciliation loop.

Salesforce NetSuite Salesforce CPQ Stripe

How to build

Integration

CPQ to ERP sync

Map the product catalogue as data, carry ramps and proration intact, keep both catalogues aligned, and fail loudly on an unmapped SKU.

Salesforce CPQ NetSuite Salesforce Slack

How to build

Integration

Billing to CRM sync

Put invoice and payment state where the account team works, without letting the CRM become a second billing system.

NetSuite Salesforce Stripe Slack

How to build

Integration

Subscription and entitlement provisioning

Turn a signed contract into working access on the day it starts, handle mid-term changes, and never let entitlement drift from what was sold.

Salesforce NetSuite Okta Gmail

How to build

Automation

Partner deal registration

Check submissions against pipeline in seconds, protect for a fixed window, expire visibly, and settle conflicts with a rule rather than an argument.

Salesforce HubSpot Gmail Slack

How to build

Automation

Territory and quota sync

Apply a plan on its effective date, keep in-flight deals with their owner, and make coverage visible before anybody signs off.

Salesforce Snowflake Workday Slack

How to build

Integration

Commission data to payroll sync

Qualify transactions against the plan, show the working line by line, hold disputes without holding the run, and reconcile before it pays.

Salesforce NetSuite Gusto Workday

How to automate

Automation

Business rules and routing decisions

Hold the rules as a table the process owner edits, decide the clear cases automatically, let AI sort free text, and send the rest to a person.

Zendesk Salesforce Stripe Google Sheets

How to build

Automation

Deal desk approvals

Route each discount and non-standard term to the right approver, decide in Slack with the deal in view, lock the quote to what was approved, and keep the record.

Salesforce DealHub Slack DocuSign

How to build

Integration

Forecast snapshot sync

Freeze the pipeline and the forecast call every week, keep each snapshot untouched, compare the call with what closed, and show where deals slipped.

Salesforce Snowflake Google BigQuery Looker

How to build

Automation

Partner onboarding

Take a partner from signed agreement to portal access, a partner manager and their first training in a day, with the partner set up the same way in the CRM and the portal.

DocuSign Salesforce Impartner Docebo

How to build

Automation

Partner certification tracking

Bring partner training and certifications back to the CRM and the partner portal, so tiers, deal registration and renewals reflect who at the partner can actually sell.

Docebo Thinkific Salesforce Impartner

How to build

Automation

Partner account mapping

Bring account overlaps with partners into the CRM, so reps see which partner already works with an account before they start, and partners hear about the right ones.

Crossbeam Salesforce HubSpot Slack

How to build

Automation

Partner lead sharing

Route partner-referred leads to the right rep with the partner credited, pass leads to partners with a deadline to accept, and take back the ones nobody works.

Impartner Salesforce HubSpot Gmail

Finance

How to build

Automation

Purchase request approval

Take requests where people already ask, check for an existing contract first, send each one to the reviewers it needs, and chase approvers before the request stalls.

Slack Coupa Okta Ironclad

How to build

Integration

Procure-to-pay integration

Requisition to PO to receipt to payment, with the approval matrix as data, three-way matching, and the budget checked before the commitment.

Coupa NetSuite Okta Slack

How to build

Automation

AP invoice processing

Take invoices from wherever they arrive, extract and verify instead of trust, match against the order, and never pay the same one twice.

Gmail NetSuite Coupa Google Drive

How to build

Automation

Collections and dunning

Escalate on the customer rather than the invoice, stop the moment they pay or dispute, and never dun an account somebody is negotiating with.

NetSuite Salesforce Gmail Slack

How to build

Automation

Three-way matching

Compare the order, the receipt and the invoice line by line, with tolerances finance sets, holds that release themselves, and every mismatch sent to a person.

Coupa NetSuite Slack Okta

How to build

Integration

Expense and card feed sync

Match card transactions to receipts, code from the merchant instead of the claimant, and chase the missing ones before month end.

NetSuite Slack Okta Snowflake

How to build

Integration

Vendor master sync

Onboard a supplier once, verify bank details out of band, keep one record per legal entity, and make a change to payment details an event.

NetSuite Coupa DocuSign Slack

How to build

Automation

Financial close automation

Model the dependencies instead of the checklist, pull the data before anybody asks, and show the critical path instead of a percentage.

NetSuite Coupa Gusto Slack

How to build

Automation

Bank reconciliation automation

Match on rules that learn, keep the unmatched visible and ageing, and never write a plug.

NetSuite Stripe Slack Snowflake

How to build

Integration

Revenue recognition feed

Carry performance obligations instead of invoice totals, keep the allocation reconstructable, and reconcile bookings to revenue every period.

Salesforce CPQ NetSuite Salesforce Snowflake

How to automate

Automation

Approval routing

Hold who approves what as data, send each approver the facts they need where they work, set a deadline that escalates, and keep the record.

Salesforce NetSuite Workday Slack

How to build

Automation

Partner payouts

Calculate partner referral fees and rebates from the closed deal and the paid invoice, show partners the statement before paying, and settle disputes from the record.

Salesforce NetSuite Impartner Slack

Customer success

How to build

Automation

Closed-won to onboarding handoff

Carry what was promised, not only what was sold. Generate the plan from the deal, and start the clock at close.

Salesforce Gong Slack Jira

How to build

Automation

Support ticket routing

Route on the skill needed and the account, not on who is free. Derive priority from contract and impact, and time the clock from the customer.

Zendesk Salesforce Slack Jira

How to build

Integration

Product usage to CRM sync

Send the three signals that change a conversation, aggregated and labelled, without turning the CRM into an analytics tool.

Amplitude Snowflake Salesforce Slack

How to build

Automation

Customer health signals

Weight the signals that predict churn, keep the categories visible instead of one number, and back-test before anybody trusts it.

Snowflake Salesforce Zendesk Amplitude

How to build

Integration

NPS and survey to CRM sync

Attach responses to the account and the person, route detractors before they escalate, and stop surveying people you just surveyed.

Qualtrics Salesforce Slack Zendesk

How to build

Automation

Support intake from every channel

Turn email, chat, phone, web forms and shared Slack channels into one ticket per problem, matched to the right account, with nothing lost between them.

Zendesk Intercom Slack Aircall

How to build

Integration

Support history to CRM sync

Put a short, current summary of each account's support history on the CRM record, tied to the right account, with escalations sent to the owner.

Zendesk Intercom Salesforce Snowflake

How to build

Automation

SLA breach alerts

Warn the right person before a support SLA is missed, with the clock read from the customer's contract, paused only when it should be, and every near miss recorded.

Zendesk Salesforce Slack Microsoft Teams

How to build

Automation

Support escalation to engineering

Send a confirmed bug to engineering once, with the evidence attached, link every ticket it affects, and tell each customer when the fix ships.

Zendesk Jira Salesforce Slack

How to build

Automation

Ticket to help article drafting

Find the questions customers keep asking that no help article answers, draft the article from the tickets that solved it, and publish only after a person reviews it.

Zendesk OpenAI Slack Confluence

How to build

Automation

Integration adoption tracking

See which customers turned on which integrations, whether they still run, and how retention differs for customers who integrate, with the numbers in the CRM.

Salesforce Snowflake Slack Gainsight

IT and security

How to build

Automation

Access request and approval

Route to the system owner, grant with an expiry by default, provision automatically, and produce the access review as a by-product.

ServiceNow Slack Okta Jira

How to build

Automation

Incident to resolution

Declare fast, assemble the channel and the timeline automatically, keep customers informed on a cadence, and make the postmortem unavoidable.

ServiceNow Datadog Slack Jira

How to build

Automation

Security alert triage

Enrich before a human sees it, suppress the known-benign, escalate on asset value, and measure what you closed rather than what fired.

Datadog Okta Jira Slack

How to build

Automation

IT service desk fulfilment

Catalogue the requests worth automating, fulfil the safe ones end to end, and route the rest with everything already gathered.

ServiceNow Slack Jira Okta

How to build

Automation

SaaS licence reclamation

Find the seats nobody uses, ask before you take, reclaim on a schedule, and put the saving where finance sees it.

Okta NetSuite Slack Workday

How to build

Automation

Vulnerability to ticket routing

Rank on exploitability and exposure rather than CVSS, group by fix instead of by finding, and route to whoever ships the patch.

ServiceNow Datadog GitHub Jira

How to build

Integration

Device lifecycle sync

Reconcile what management sees against what finance owns and what HR says, and make an unassigned device an exception instead of a row.

ServiceNow Intune NetSuite Workday

How to automate

Automation

Request intake forms

Capture each request once with the fields the decision needs, check it against the systems that already know, and route it to an owner.

Typeform Slack Workday Okta

How to build

Integration

SaaS security log collection

Pull sign-in, admin and audit events from every SaaS app into the SIEM in one shape, watch each feed for silence, keep what investigations need.

Okta Office365 Management Google Workspace GitHub

How to build

Automation

IT ticket triage and routing

Classify each IT ticket by what it is about, attach who raised it and what they run, and route it to the team that fixes it first time.

ServiceNow Slack Microsoft Teams Okta

How to build

Automation

Self-service password reset

Let people reset a password or clear a lockout from Slack or Teams, with the identity check that makes it safe and a record IT can audit.

Okta Azure Active Directory Slack Microsoft Teams

How to build

Automation

Phishing report triage

Check every reported email, group copies of one campaign into one case, pull the rest from every inbox, and tell the reporter what happened.

Gmail Microsoft Outlook Google Workspace Office365 Management

How to build

Automation

Compromised account response

Ask the user about a risky sign-in, revoke every session in every app on a confirmed takeover, and remove what the attacker left behind.

Okta Azure Active Directory Office365 Management Google Workspace

How to build

Automation

Endpoint alert containment

Decide which endpoint detections isolate a device on a rule and which need a person, contain the account, tell the user, and release cleanly.

Microsoft Intune Azure Active Directory Okta ServiceNow

How to build

Automation

Bug bounty report triage

Check each researcher report for duplicates, size it on real impact, route it to the team that owns the code, and reply to the researcher on time.

HackerOne GitHub GitLab ServiceNow

Platform engineering

How to build

Integration

API facade

Give consumers one contract instead of six systems, absorb upstream changes rather than leaking them, and keep the caller identity intact.

Salesforce NetSuite Zendesk Snowflake

How to build

Integration

Change data capture pipeline

Read the log instead of polling a timestamp, overlap the snapshot with the stream, and keep deletes and order intact.

Postgres Snowflake Snowflake Datadog

How to build

Integration

Webhook fan-out

Acknowledge before you fan out, verify the signature first, retry per consumer, and make replay possible.

Stripe Salesforce Snowflake Zendesk

How to migrate

Integration

SFTP batch feed to an API

Recover the semantics nobody wrote down, run both in parallel and diff, and cut over only after a month end.

NetSuite Snowflake Slack Jira

How to handle

Automation

Exceptions and retries in automated workflows

Sort failures into ones to retry and ones a person must fix, make retries safe to repeat, park what fails with its context, and alert an owner.

Salesforce NetSuite Jira Slack

How to update

Automation

Several systems from one automated process

Write each update in a set order, check first so a rerun never doubles anything, hand other teams a tracked task, and tell everyone affected.

NetSuite Stripe Salesforce Zendesk

How to build

Automation

Integration request tracking

Collect every customer request for an integration from sales, support and product feedback, count it once per account, and weigh it by revenue.

Salesforce Zendesk Productboard Gong.io

How to build

Integration

One integration for every customer

Build a customer-facing integration once, with every per-customer choice pulled out as a setting, so a fix ships to every customer at the same time.

HubSpot Salesforce Slack

How to let

Integration

Customers connect their own accounts

Let customers authorise their own apps inside your product, under your brand, with expired connections caught and fixed before a sync stops.

Salesforce HubSpot SendGrid Slack

How to build

Integration

Customer field mapping

Let each customer match your product's fields to their own, custom fields included, then turn the integration on with a first sync that doesn't flood their account.

HubSpot Salesforce Slack

How to build

Automation

Error alerts for customer integrations

Catch every failed run across every customer's integration, sort what the customer can fix from what your team must, and tell the right one first.

Zendesk Slack Datadog SendGrid

How to roll

Automation

Out integration changes to every customer

Ship a new version of a customer-facing integration to every customer: test it as a customer first, release in waves, and ask for setup again only when it must.

GitHub Slack SendGrid

AI operations

How to expose

Integration

Internal system as an MCP tool

Scope the tool to a job rather than an API, resolve identity per call, make writes idempotent, and log every invocation.

Salesforce Okta Snowflake Slack

How to build

Automation

Human approval for agent actions

Decide what needs approving by blast radius, show the approver what will happen, expire cleanly, and keep the record.

Slack Okta Salesforce Snowflake

How to build

Automation

LLM cost and usage tracking

Attribute spend to a team and a feature, alert on the rate rather than the total, and catch the loop before the invoice does.

Snowflake Datadog Slack Okta

How to build

Integration

Knowledge base to vector sync

Chunk on structure, carry permissions into the index, delete on delete, and re-embed only what changed.

Notion Google Drive Confluence Okta

How to build

Automation

Shadow AI discovery

Find the AI tools nobody registered, from expenses, SSO and DNS, then route to a path rather than a ban.

Okta Google Workspace Slack Snowflake

How to build

Automation

AI support deflection

Answer only what the knowledge base actually covers, escalate early with the context, and measure resolution rather than deflection.

Zendesk Notion Salesforce Slack

How to build

Integration

Agent observability pipeline

Capture whole agent runs instead of single calls, join each one to the outcome it produced, and alert on the failures that return an answer anyway.

Snowflake Datadog Zendesk Salesforce

How to build

Automation

Document intelligence pipeline

Score confidence per field rather than per document, validate against a system of record, and route only the uncertain fields to a person.

Google Drive NetSuite Salesforce Slack

How to scope

Automation

AI agent's tool access

Give each agent the few tools its job needs, act as the person asking or a narrow service account, split read from write, and review access on a schedule.

Okta Salesforce ServiceNow Slack

How to build

Automation

MCP server access control

Open each MCP server to identity provider groups, make every caller sign in as themselves, cap calls, and close access the day someone leaves.

Okta Azure Active Directory ServiceNow Slack

How to test

Automation

AI agent before release

Build a test set from real requests, score what the agent did as well as what it said, set a pass bar per category, and run it on every change.

Snowflake Salesforce ServiceNow GitHub

How to build

Integration

MCP audit trail

Log every MCP tool call with the person, the assistant, the tool, what went in and what came back, mask what should not be stored, and send it to security's tools.

Splunk Datadog Snowflake Okta

How to build

Automation

AI agent handoff to a person

Decide when the agent stops, pass the whole case to the right person, tell the user what happens next, and learn from every handoff.

Slack ServiceNow Zendesk Microsoft Teams

How to manage

Automation

MCP server lifecycle

Publish MCP servers through an approval, keep a version history with a way back, tell the agents that depend on a tool before it changes, and retire what nobody uses.

GitHub Jira Slack Snowflake

How to build

Automation

MCP tool access review

Review on a schedule which MCP tools exist and which people and AI assistants can call them, send each owner the usage behind it, and revoke what nobody uses.

Okta Snowflake Slack ServiceNow

Questions people ask

What is the difference between an integration and an automation?

An integration keeps two systems agreeing about the same records, like a CRM and an ERP holding the same customer. An automation runs a process across systems, like routing a lead or chasing an invoice. The distinction matters because they fail differently: an integration fails by drifting out of agreement, an automation fails by acting on the wrong thing.

What is in each guide?

The design of one integration or automation, the sequence it runs in, the systems it touches, a set of prompts that build it, the questions people ask about it, and what changes when it runs in production rather than on a laptop.

Do the prompts work in any coding assistant?

They are written for Tray Headless through an assistant like Claude Code, Codex or Cursor. Each stage names the skills it uses, so the assistant researches the connector, builds the workflow and checks it against the known failure modes rather than guessing at a schema.

Do I have to build the whole thing at once?

No. Each guide is staged, and every stage runs on its own. The first gets you connected and reading real data, and you can stop there and come back.

What happens after the assistant has built it?

The same workflow opens in Tray Build, so the team that owns the process can change thresholds, mappings and routing in the visual canvas without going back to an assistant or waiting on a deployment.

Tray Headless

Integrations, automations, agents, MCP tools

Every guide here is built with Tray Headless, and it builds the other two the same way: the same kind of prompts, in the same coding assistant, on the same governed platform. These sixty-eight cover integrations and automations because that is where most teams start, not because the method stops there.

What will you vibe-code?

See what Tray Headless builds