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 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.

Automation

SalesforceGoogle DriveMarketoSlack

How to build 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.

Automation

SalesforceMarketoClearbitSlack

How to build 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.

Automation

SalesforceClearbitMarketoSlack

How to build 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.

Automation

ClearbitZoomInfoSalesforceMarketo

How to build 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.

Automation

SalesforceMarketoSlackSnowflake

How to build a 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.

Integration

MarketoHubSpotSalesforceDemandbase

How to build 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.

Automation

SalesforceSlackMicrosoft TeamsOutreach

How to build 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.

Automation

SalesforceSlackGongOutreach

How to build a 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.

Integration

SalesforceMarketoSlackSnowflake

How to build a 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.

Integration

OutreachSalesforceZendeskGong

How to build a 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.

Integration

GongSalesforceGoogle CalendarSlack

How to build a quote-to-order integration

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

Integration

Salesforce CPQDocuSignNetSuiteSalesforce

How to build an 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, and

Integration

SalesforceNetSuiteSalesforce CPQStripe

How to build a 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.

Integration

Salesforce CPQNetSuiteSalesforceSlack

How to build a billing to CRM sync

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

Integration

NetSuiteSalesforceStripeSlack

How to build 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.

Integration

SalesforceNetSuiteOktaGmail

How to build 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.

Automation

SalesforceHubSpotGmailSlack

How to build a 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.

Automation

SalesforceSnowflakeWorkdaySlack

How to build a 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.

Integration

SalesforceNetSuiteGustoWorkday

How to automate 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.

Automation

ZendeskSalesforceStripeGoogle Sheets

How to build 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.

Automation

SalesforceDealHubSlackDocuSign

How to build a 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.

Integration

SalesforceSnowflakeGoogle BigQueryLooker

How to build 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.

Automation

DocuSignSalesforceImpartnerDocebo

How to build 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.

Automation

DoceboThinkificSalesforceImpartner

How to build 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.

Automation

CrossbeamSalesforceHubSpotSlack

How to build 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.

Automation

ImpartnerSalesforceHubSpotGmail

Finance

How to build 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.

Automation

SlackCoupaOktaIronclad

How to build a 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.

Integration

CoupaNetSuiteOktaSlack

How to build 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.

Automation

GmailNetSuiteCoupaGoogle Drive

How to build 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.

Automation

NetSuiteSalesforceGmailSlack

How to build 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.

Automation

CoupaNetSuiteSlackOkta

How to build an 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.

Integration

NetSuiteSlackOktaSnowflake

How to build a 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.

Integration

NetSuiteCoupaDocuSignSlack

How to build 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.

Automation

NetSuiteCoupaGustoSlack

How to build bank reconciliation automation

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

Automation

NetSuiteStripeSlackSnowflake

How to build a revenue recognition feed

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

Integration

Salesforce CPQNetSuiteSalesforceSnowflake

How to automate 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.

Automation

SalesforceNetSuiteWorkdaySlack

How to build 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.

Automation

SalesforceNetSuiteImpartnerSlack

Customer success

How to build a 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.

Automation

SalesforceGongSlackJira

How to build 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.

Automation

ZendeskSalesforceSlackJira

How to build a product usage to CRM sync

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

Integration

AmplitudeSnowflakeSalesforceSlack

How to build customer health signals

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

Automation

SnowflakeSalesforceZendeskAmplitude

How to build an 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.

Integration

QualtricsSalesforceSlackZendesk

How to build 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.

Automation

ZendeskIntercomSlackAircall

How to build a 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.

Integration

ZendeskIntercomSalesforceSnowflake

How to build 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.

Automation

ZendeskSalesforceSlackMicrosoft Teams

How to build 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.

Automation

ZendeskJiraSalesforceSlack

How to build 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.

Automation

ZendeskOpenAISlackConfluence

How to build 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.

Automation

SalesforceSnowflakeSlackGainsight

IT and security

How to build 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.

Automation

ServiceNowSlackOktaJira

How to build incident to resolution

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

Automation

ServiceNowDatadogSlackJira

How to build 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.

Automation

DatadogOktaJiraSlack

How to build IT service desk fulfilment

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

Automation

ServiceNowSlackJiraOkta

How to build SaaS licence reclamation

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

Automation

OktaNetSuiteSlackWorkday

How to build 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.

Automation

ServiceNowDatadogGitHubJira

How to build a 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.

Integration

ServiceNowIntuneNetSuiteWorkday

How to automate 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.

Automation

TypeformSlackWorkdayOkta

How to build 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.

Integration

OktaOffice365 ManagementGoogle WorkspaceGitHub

How to build 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.

Automation

ServiceNowSlackMicrosoft TeamsOkta

How to build 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.

Automation

OktaAzure Active DirectorySlackMicrosoft Teams

How to build 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.

Automation

GmailMicrosoft OutlookGoogle WorkspaceOffice365 Management

How to build 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.

Automation

OktaAzure Active DirectoryOffice365 ManagementGoogle Workspace

How to build 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.

Automation

Microsoft IntuneAzure Active DirectoryOktaServiceNow

How to build 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.

Automation

HackerOneGitHubGitLabServiceNow

Platform engineering

How to build an API facade

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

Integration

SalesforceNetSuiteZendeskSnowflake

How to build a change data capture pipeline

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

Integration

PostgresSnowflakeSnowflakeDatadog

How to build webhook fan-out

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

Integration

StripeSalesforceSnowflakeZendesk

How to migrate an 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.

Integration

NetSuiteSnowflakeSlackJira

How to handle 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.

Automation

SalesforceNetSuiteJiraSlack

How to update 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.

Automation

NetSuiteStripeSalesforceZendesk

How to build 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.

Automation

SalesforceZendeskProductboardGong.io

How to build 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.

Integration

HubSpotSalesforceSlack

How to let 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.

Integration

SalesforceHubSpotSendGridSlack

How to build 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.

Integration

HubSpotSalesforceSlack

How to build 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.

Automation

ZendeskSlackDatadogSendGrid

How to roll 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.

Automation

GitHubSlackSendGrid

AI operations

How to expose an 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.

Integration

SalesforceOktaSnowflakeSlack

How to build human approval for agent actions

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

Automation

SlackOktaSalesforceSnowflake

How to build 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.

Automation

SnowflakeDatadogSlackOkta

How to build a knowledge base to vector sync

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

Integration

NotionGoogle DriveConfluenceOkta

How to build shadow AI discovery

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

Automation

OktaGoogle WorkspaceSlackSnowflake

How to build AI support deflection

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

Automation

ZendeskNotionSalesforceSlack

How to build an 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.

Integration

SnowflakeDatadogZendeskSalesforce

How to build a 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.

Automation

Google DriveNetSuiteSalesforceSlack

How to scope an 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.

Automation

OktaSalesforceServiceNowSlack

How to build 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.

Automation

OktaAzure Active DirectoryServiceNowSlack

How to test an 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.

Automation

SnowflakeSalesforceServiceNowGitHub

How to build an 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.

Integration

SplunkDatadogSnowflakeOkta

How to build an 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.

Automation

SlackServiceNowZendeskMicrosoft Teams

How to manage the 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.

Automation

GitHubJiraSlackSnowflake

How to build an 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.

Automation

OktaSnowflakeSlackServiceNow

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