---
title: "Connect Demandbase to ChatGPT: Search Contacts & Sync Intent Data"
slug: connect-demandbase-to-chatgpt-search-contacts-sync-intent-data
date: 2026-11-22
author: Nidhi KN
categories: ["AI & Agents"]
excerpt: "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."
tldr: "Connect Demandbase to ChatGPT using Truto's managed MCP servers. This guide covers bypassing Demandbase's complex bulk job APIs, configuring the MCP server via UI or API, and executing intent-driven workflows."
canonical: https://truto.one/blog/connect-demandbase-to-chatgpt-search-contacts-sync-intent-data/
---

# Connect Demandbase to ChatGPT: Search Contacts & Sync Intent Data


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](https://truto.one/blog/what-is-mcp-model-context-protocol-the-2026-guide-for-saas-pms/). 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](https://truto.one/connect-demandbase-to-claude-monitor-account-alerts-news-feeds/) or explore our broader architectural overview on [connecting Demandbase to AI Agents](https://truto.one/connect-demandbase-to-ai-agents-manage-bulk-export-import-jobs/).

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.

> Stop writing boilerplate API integration code. Let Truto generate secure, managed MCP servers for your AI agents in seconds.
>
> [Talk to us](https://truto.one/book-a-demo/)

## The Engineering Reality of the Demandbase API

A custom MCP server is a self-hosted integration layer. While the [open MCP standard](https://truto.one/blog/what-is-mcp-and-mcp-servers-and-how-do-they-work/) 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](https://truto.one/blog/connect-demandbase-to-ai-agents-manage-bulk-export-import-jobs/)
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](https://truto.one/blog/auto-generated-mcp-tools-for-ai-agents-a-2026-architecture-guide/) 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:

1. Log into your Truto dashboard and navigate to **Integrated Accounts**.
2. Click into your connected Demandbase instance.
3. Navigate to the **MCP Servers** tab and click **Create MCP Server**.
4. Name the server (e.g., `Demandbase - Marketing Agent`).
5. Select your desired configuration. For example, check `read` methods to prevent the LLM from creating or deleting resources, and select the `intent` and `contacts` tags to restrict the domain scope.
6. 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.

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

1. In ChatGPT, open **Settings -> Apps -> Advanced settings**.
2. Toggle **Developer mode** to ON.
3. Under **MCP servers / Custom connectors**, click to add a new connector.
4. Enter a recognizable name (e.g., `Demandbase (Truto)`).
5. Paste your Truto MCP URL into the **Server URL** field.
6. 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).

```json
{
  "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](https://truto.one/integrations/detail/demandbase).

## 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:**
1. ChatGPT calls `demandbase_company_intent_search` passing the last 14 days and the target keyword.
2. Truto proxies the request. Demandbase returns an array of intent signals.
3. ChatGPT analyzes the array, identifying the company ID with the highest `intent_strength`.
4. ChatGPT calls `get_single_demandbase_company_by_id` to retrieve the company's full profile (name, revenue, domain).
5. Finally, ChatGPT calls `demandbase_contacts_search` using the domain and filtering for `job_level: "VP"` and `job_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.

```mermaid
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:**
1. ChatGPT calls `create_a_demandbase_match_job` parsing the user's provided data into the required bulk payload format.
2. Truto proxies the request to Demandbase, which returns a `202 Accepted` and a `jobId`.
3. ChatGPT acknowledges the ID internally and calls `get_single_demandbase_bulk_job_by_id`.
4. The job is still processing. Demandbase returns `status: "processing"`.
5. ChatGPT enters a brief loop (or asks the user to wait a moment) and calls `get_single_demandbase_bulk_job_by_id` again.
6. Demandbase returns `status: "completed"` along with the `resultsUrl`.

**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 `read` operations (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 `intent` tag, the agent can analyze signals without having access to the `users` or `custom_sources` APIs.
*   **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 the `Authorization` header, 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-limit`
*   `ratelimit-remaining`
*   `ratelimit-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](https://truto.one/blog/connect-demandbase-to-ai-agents-manage-bulk-export-import-jobs/)

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.

> Ready to give your AI agents secure, schema-perfect access to Demandbase? Get started with Truto today.
>
> [Talk to us](https://truto.one/book-a-demo/)
