By AI Surface · OpenAI

OpenAI / ChatGPT + Connect AI

Build GPT-powered data assistants using the OpenAI Python SDK with live data from hundreds of sources via Connect AI’s MCP server.

OpenAI SDK getting started

from openai import OpenAI

client = OpenAI()

# MCP tools expose Connect AI data sources
# as OpenAI function definitions
tools = mcp_client.list_tools_as_openai()

response = client.chat.completions.create(
    model="gpt-4o",
    tools=tools,
    messages=[{
        "role": "user",
        "content": "Which accounts have open opps over $50k?"
    }]
)
# Handle tool calls, execute against live data

Developer guide

Full step-by-step guide to building a production-ready GPT data assistant with Connect AI MCP.

OpenAI SDK: Getting Started Build an AI data assistant with OpenAI’s Python SDK and Connect AI. Includes function calling, tool definitions, and examples.

Sources for OpenAI

Common GPT + source patterns. Tap any combination to see the tutorial.

Salesforce Pipeline research, account briefings, and outreach drafting with full CRM context.
Workday Onboarding automation, org-chart questions, and headcount analysis from natural language.
HubSpot Pipeline summaries, deal analysis, and contact research from live CRM data.
NetSuite ERP queries for transactions, inventory, and customers answered from live data.
Snowflake Warehouse analytics and ad-hoc reporting via natural-language SQL over live cloud data.
Postgres Operational database queries and schema exploration grounded in live Postgres data.

Sample agents

Two starting points: a one-command scaffold, or a deeper reference implementation.

Quickstart @cdatasoftware/create-agent

Generate a working LangChain, Google ADK, or Vercel AI SDK agent (OpenAI-backed) in one command. Includes Management MCP setup for in-band connection provisioning.

10-min scaffold
Deeper example CDataSoftware/connectai-openai-agent

Production-ready OpenAI data assistant with Connect AI MCP, function calling, and multi-turn conversation context.

View on GitHub

Evaluating Connect AI for your team? See the full OpenAI integration overview.

Connect AI documentation

Full API reference, authentication guides, and configuration details.

View docs