Connect Demandbase to ChatGPT: Search Contacts & Sync Intent Data
Learn how to connect Demandbase to ChatGPT using Truto's generated MCP servers. Automate B2B intent tracking, contact search, and bulk data jobs via natural language.
If you want to connect Demandbase to ChatGPT so your AI agents can uncover buying intent, search for decision-makers, and execute asynchronous bulk match jobs, you need a Model Context Protocol (MCP) server. This server acts as the translation layer, dynamically mapping the LLM's natural language tool calls into Demandbase's exact REST API schemas.
If your team uses Claude, check out our guide on connecting Demandbase to Claude or explore our broader architectural overview on connecting Demandbase to AI Agents.
Giving a Large Language Model (LLM) access to a complex Account-Based Marketing (ABM) platform is a massive engineering challenge. You must handle asynchronous data extraction pipelines, strict combinatorial query parameters for intent mapping, and paginated contact searches. Every time you want to expose a new endpoint, you have to write, deploy, and maintain custom JSON-RPC tool schemas.
This guide breaks down exactly how to bypass that boilerplate. We will show you how to use Truto to auto-generate a secure, managed MCP server for Demandbase, connect it natively to ChatGPT, and execute advanced ABM workflows using natural language.
The Engineering Reality of the Demandbase API
A custom MCP server is a self-hosted integration layer. While the open MCP standard provides a predictable way for models to discover tools, implementing it against Demandbase's enterprise API surface is exceptionally painful.
If you decide to build a custom MCP server for Demandbase, you own the entire API lifecycle. Here are the specific integration challenges that break standard CRUD assumptions when working with Demandbase:
Asynchronous Bulk Job Lifecycles
Demandbase handles large-scale B2B data operations (like matching 10,000 domains to firmographics) using asynchronous bulk jobs. You cannot simply execute a synchronous GET request. The API requires a three-step orchestration: POST the job with your CSV data, poll the job status via its ID, and finally, download the results from a signed URL. If you expose this directly to an LLM without explicitly framing the tools for a polling loop, the model will hallucinate immediate results or timeout the context window waiting for a synchronous return.
Combinatorial Intent Filters
Querying intent data via Demandbase is highly strict. The API combines filters using strict AND logic and requires at least one of companyIds, keywordSetIds, or keywords alongside a required date range (startDate, endDate). Requests containing only a date range fail with a specific 400-218 error. Manually writing tool schemas that force the LLM to respect these exact interdependent required fields is tedious and error-prone.
Custom Source Field Mapping
If you want the LLM to push custom account lists into Demandbase, the API forces you to define custom source field mappings first. Every import requires matching external records to existing accounts using a specific mapping (e.g., matching external IDs to crmId___e). LLMs lack the inherent context to know they must first execute an upsert field mapping command before triggering an import job. The schemas must be perfectly documented to enforce this sequence.
How to Generate a Demandbase MCP Server
Truto solves these schema and routing challenges by deriving MCP tool definitions dynamically from Demandbase's API documentation and your environment configuration.
To give ChatGPT access, you first need to scope a dedicated MCP server to a specific connected Demandbase instance (an integrated_account). You can do this via the Truto UI or programmatically via the API.
Method 1: Via the Truto UI
If you are setting this up manually for an internal ChatGPT workspace:
- Log into your Truto dashboard and navigate to Integrated Accounts.
- Click into your connected Demandbase instance.
- Navigate to the MCP Servers tab and click Create MCP Server.
- Name the server (e.g.,
Demandbase - Marketing Agent). - Select your desired configuration. For example, check
readmethods to prevent the LLM from creating or deleting resources, and select theintentandcontactstags to restrict the domain scope. - Click Generate and securely copy the resulting MCP server URL (e.g.,
https://api.truto.one/mcp/a1b2c3d4e5f6...).
Method 2: Via the Truto API
If you are dynamically provisioning environments for your users, you can generate the server programmatically. This endpoint evaluates the Demandbase integration, confirms tool readiness, hashes a secure token, and returns the endpoint.
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": "Demandbase ChatGPT Agent",
"config": {
"methods": ["read", "write"],
"tags": ["companies", "contacts", "intent", "bulk_jobs"]
},
"expires_at": "2026-12-31T23:59:59Z"
}'The API returns a payload containing the url. This URL is all the client needs to connect, as the cryptographic token within the path handles routing to the correct tenant and authenticating the proxy requests.
Connecting the MCP Server to ChatGPT
Once you have your Truto MCP URL, you need to register it with ChatGPT so it can negotiate the JSON-RPC handshake (initialize, tools/list, tools/call).
Method 1: Via the ChatGPT UI
If you have a ChatGPT Pro, Plus, Business, Enterprise, or Education account:
- In ChatGPT, open Settings -> Apps -> Advanced settings.
- Toggle Developer mode to ON.
- Under MCP servers / Custom connectors, click to add a new connector.
- Enter a recognizable name (e.g.,
Demandbase (Truto)). - Paste your Truto MCP URL into the Server URL field.
- Click Save.
ChatGPT will immediately ping the endpoint, execute tools/list, and inject the Demandbase tool definitions into your agent's context.
Method 2: Via Manual Configuration File (SSE Transport)
If you are configuring a local environment, an agentic framework (like LangChain or CrewAI), or a desktop client that relies on JSON config files (like Claude Desktop or Cursor), you define the connection using standard Server-Sent Events (SSE).
{
"mcpServers": {
"demandbase-truto": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sse",
"--url",
"https://api.truto.one/mcp/YOUR_SECURE_TOKEN"
]
}
}
}Because Truto operates securely over HTTP POST using standard JSON-RPC 2.0, the @modelcontextprotocol/server-sse package handles the transport layer natively.
Hero Tools for Demandbase
When ChatGPT issues a tools/list request, Truto dynamically compiles Demandbase's endpoints into flat, schema-validated tools. Here are 6 high-leverage tools available for your AI agents.
1. Search Companies
Tool Name: demandbase_companies_search
Searches Demandbase's massive firmographic database using strict attributes like NAICS, fortune ranking, employee count, or location. This tool converts flat search arguments into Demandbase's complex search payload.
"Find 5 enterprise software companies located in California with over 1000 employees and a Fortune ranking under 500."
2. Retrieve Company Intent Data
Tool Name: demandbase_company_intent_search
Returns intent signals indicating which accounts are actively researching specific topics. The schema enforcement on this tool is critical, as it requires the LLM to pass valid date ranges and strict keyword arrays to avoid 400-218 errors.
"Get the intent data from the last 7 days for keyword IDs 'k-1049' and 'k-2931'. Filter for results with high intent strength."
3. Search Contacts
Tool Name: demandbase_contacts_search
Allows the LLM to source individuals at specific target accounts. It supports filtering by job level, job function, email validation status, and specific company constraints.
"Search for VP-level contacts in the IT and Engineering functions at Acme Corp. Only return contacts with validated email addresses."
4. Create a Keyword Set
Tool Name: create_a_demandbase_keyword_set
Creates a new intent tracking cohort in the tenant's workspace. The LLM can dynamically generate keyword sets based on conversational analysis of a user's competitive landscape.
"Create a new keyword set named 'Competitor Tracking 2026'. Include the keywords 'cloud security posture', 'cspm', and 'kubernetes audit'."
5. Create a Bulk Data Retrieval Job
Tool Name: create_a_demandbase_bulk_job
Initiates an asynchronous job for large data exports (up to 10,000 entities). Essential for moving beyond basic CRUD operations into actual data engineering workflows.
"Start a Contact Fetch bulk job named 'Q3 Enterprise VPs' using the filters for Director and above in North America. Tell me the job ID when it successfully initiates."
6. Get Bulk Job Status
Tool Name: get_single_demandbase_bulk_job_by_id
The required polling mechanism for bulk jobs. The LLM uses the ID returned from the creation tool to check progress until the signed resultsUrl is available.
"Check the status of bulk job ID 'job-987654'. If it is completed, give me the resultsUrl to download the CSV."
To view the complete inventory of available Demandbase tools, including custom source mappings, alert subscriptions, and export references, visit the Demandbase Integration Page.
Workflows in Action
Exposing individual endpoints is useful, but the real power of MCP is enabling ChatGPT to orchestrate multi-step Demandbase workflows autonomously.
Workflow 1: Intent-Driven Account Discovery & Contact Sourcing
Sales development teams spend hours cross-referencing intent data with contact databases. An LLM can condense this into a single prompt.
"Check our intent data for the last 14 days for the keyword 'data warehouse migration'. Find the company showing the highest intent strength, get their firmographic details, and then find 3 VP-level engineering contacts at that company."
Execution Steps:
- ChatGPT calls
demandbase_company_intent_searchpassing the last 14 days and the target keyword. - Truto proxies the request. Demandbase returns an array of intent signals.
- ChatGPT analyzes the array, identifying the company ID with the highest
intent_strength. - ChatGPT calls
get_single_demandbase_company_by_idto retrieve the company's full profile (name, revenue, domain). - Finally, ChatGPT calls
demandbase_contacts_searchusing the domain and filtering forjob_level: "VP"andjob_function: "Engineering".
Result: The user receives a concise summary: the name of the highest-intent company, their revenue bracket, and the names/titles of 3 target engineering executives.
sequenceDiagram
participant User as User
participant GPT as ChatGPT
participant Truto as Truto MCP
participant Upstream as "Demandbase API"
User ->> GPT: "Check intent for 'data warehouse migration' & find VP contacts..."
GPT ->> Truto: Call demandbase_company_intent_search
Truto ->> Upstream: Proxy POST /v1/intent
Upstream -->> Truto: Return intent signals
Truto -->> GPT: JSON array
GPT ->> Truto: Call get_single_demandbase_company_by_id
Truto ->> Upstream: Proxy GET /v1/companies/{id}
Upstream -->> Truto: Return firmographics
Truto -->> GPT: Company profile
GPT ->> Truto: Call demandbase_contacts_search
Truto ->> Upstream: Proxy POST /v1/contacts/search
Upstream -->> Truto: Return VP contacts
Truto -->> GPT: Contact profiles
GPT -->> User: "Found Acme Corp (High Intent). Here are 3 VPs..."Workflow 2: Automated Bulk Enrichment Job
When a marketing operations manager needs to enrich a massive list of domains, synchronous endpoints will fail. The LLM must navigate Demandbase's asynchronous job lifecycle.
"I have a list of target companies for our new campaign. Create a bulk Match job named 'Q1 Expansion List'. I will provide the CSV data. Once initiated, monitor the job until it is done and give me the download URL."
Execution Steps:
- ChatGPT calls
create_a_demandbase_match_jobparsing the user's provided data into the required bulk payload format. - Truto proxies the request to Demandbase, which returns a
202 Acceptedand ajobId. - ChatGPT acknowledges the ID internally and calls
get_single_demandbase_bulk_job_by_id. - The job is still processing. Demandbase returns
status: "processing". - ChatGPT enters a brief loop (or asks the user to wait a moment) and calls
get_single_demandbase_bulk_job_by_idagain. - Demandbase returns
status: "completed"along with theresultsUrl.
Result: The user is seamlessly guided through an asynchronous enterprise data pipeline and handed a signed, temporary URL to download their enriched dataset.
Security and Access Control
When granting an AI agent access to an enterprise ABM platform, security and scoping are paramount. Truto's MCP servers provide strict, configuration-level controls to limit what the LLM can do.
- Method Filtering: Constrain the MCP server to only perform
readoperations (e.g.,get,list,search). This guarantees the LLM cannot accidentally trigger bulk export jobs or overwrite field mappings. - Tag Filtering: Restrict the server to specific functional areas. By filtering for the
intenttag, the agent can analyze signals without having access to theusersorcustom_sourcesAPIs. - Require API Token Auth (
require_api_token_auth): By default, the MCP URL acts as a bearer token. For higher security, enabling this flag forces the connecting client to also supply a valid Truto API token in theAuthorizationheader, ensuring only authenticated internal systems can utilize the tools. - Automatic Expiry (
expires_at): Generate short-lived MCP servers for contractor tools or temporary CI/CD workflows. Once the timestamp passes, Truto automatically cleans up the server and invalidates the URL.
Handling Rate Limits
When building automated workflows, it is crucial to understand how rate limiting is enforced between the LLM, the MCP proxy, and Demandbase.
Truto does not retry, throttle, or apply backoff logic on rate limit errors. When Demandbase returns an HTTP 429 Too Many Requests, Truto passes that error directly back to the caller (your LLM client).
However, Truto does normalize the upstream rate limit information. Regardless of how Demandbase formats its headers, Truto exposes standardized IETF rate limit headers to the caller:
ratelimit-limitratelimit-remainingratelimit-reset
The caller (the AI agent framework or the user's application) is entirely responsible for reading these headers and implementing the necessary retry or exponential backoff logic.
Architecting AI-Native Sales Workflows
Connecting Demandbase to ChatGPT transforms a static B2B database into an interactive, agentic intelligence platform. By utilizing Truto's dynamically generated MCP servers, you bypass the friction of writing manual JSON-RPC tool schemas, maintaining authentication lifecycles, and managing shifting API specs.
Instead of wasting sprints building bespoke integration layers for your AI features, you can focus on orchestrating high-value workflows—like intent-based pipeline generation and automated data enrichment—using a single, secure URL.
FAQ
- How do I connect Demandbase to ChatGPT?
- You can connect Demandbase to ChatGPT by generating a Model Context Protocol (MCP) server URL via Truto. This URL acts as a secure proxy, exposing Demandbase's REST endpoints as AI-callable tools. You then add this URL to ChatGPT's custom connectors in Developer Mode.
- Can ChatGPT handle Demandbase's asynchronous bulk jobs?
- Yes, but you must expose both the job creation tool (to get a job ID) and the job status tool. The LLM can be prompted to submit the bulk job, receive the ID, and periodically check the status endpoint until the download URL is returned.
- Does Truto automatically handle Demandbase rate limit errors?
- No. Truto standardizes upstream rate limit information into IETF headers (ratelimit-limit, ratelimit-remaining, ratelimit-reset) and passes HTTP 429 errors directly to the caller. Your client or AI agent is responsible for implementing retry and backoff logic.
- How do I restrict which Demandbase data ChatGPT can access?
- When generating the MCP server in Truto, you can use method filtering (e.g., 'read' only) and tag filtering (e.g., only 'contacts' and 'intent') to explicitly constrain the API surface the LLM can interact with.