Use ChatGPT to Talk to Your Sage X3 Cloud Data via CData Connect AI
ChatGPT is an AI chatbot developed by OpenAI, launched in November 2022. Based on large language models (LLMs), it enables users to refine and steer conversations through natural language processing. ChatGPT's developer mode, available to Plus and Pro subscribers, provides full Model Context Protocol (MCP) support for connecting to external data sources and tools.
CData Connect AI offers a dedicated cloud-to-cloud interface for connecting to Sage X3 Cloud data. The CData Connect AI Remote MCP Server enables secure communication between ChatGPT and Sage X3 Cloud. This allows you to ask questions and take actions on your Sage X3 Cloud data using ChatGPT, all without the need for data replication to a natively supported database. With its inherent optimized data processing capabilities, CData Connect AI efficiently channels all supported SQL operations, including filters and JOINs, directly to Sage X3 Cloud. This leverages server-side processing to swiftly deliver the requested Sage X3 Cloud data.
Step 1: Configure Sage X3 Cloud Connectivity for ChatGPT
Connectivity to Sage X3 Cloud from ChatGPT is made possible through CData Connect AI Remote MCP. To interact with Sage X3 Cloud data from ChatGPT, we start by creating and configuring a Sage X3 Cloud connection in CData Connect AI.
- Log into your Connect AI account, click Sources, and then click Add Connection.
- Select "Sage X3 Cloud" from the Add Connection panel.
-
Enter the necessary authentication properties to connect to Sage X3 Cloud.
Sage X3 Cloud uses the OAuth 2.0 Client Credentials flow, and an X-API-Key is also required for API access. Set AuthScheme to OAuth and specify the following connection properties:
- URL: The base URL of your Sage X3 Cloud instance.
- OAuthAccessTokenUrl: The OAuth token endpoint (e.g., https://your-auth-domain/oauth/token).
- OAuthClientId: Your OAuth application client ID.
- OAuthClientSecret: Your OAuth application client secret.
- Audience: The API audience value for the token request.
- XAPIKey: The X-API-Key provided by your Sage X3 Cloud administrator.
- Folder: The Sage X3 folder name (e.g., SEED). This folder is used as the default schema.
- Folders (optional): A comma-separated list of Sage X3 folders (e.g., SEED,PERF). Each folder is exposed as a separate schema, so you can query across folders with the Schema.Table syntax.
The driver obtains an access token with the Client Credentials flow and sends it with the X-API-Key on every API request. With InitiateOAuth set to GETANDREFRESH (the default), the driver acquires and refreshes the token automatically.
- Click Save & Test
With the connection configured, we are ready to connect to Sage X3 Cloud data from ChatGPT.
Step 2: Connect ChatGPT to CData Connect AI
Follow these steps to add a CData Connect AI connection in ChatGPT:
- Sign in to ChatGPT with a Plus or Pro subscription.
- Navigate to Apps from the left panel.
- Select the CData Connect AI app from the list. .
- Click Connect to authenticate to your Connect AI account.
- Click Sign in with CData Connect AI to add Connect AI to your ChatGPT account.
- After successful authorization, you will be redirected back to ChatGPT.
- Click Start Chat to start a new conversation in ChatGPT with Connect AI connected at the background.
Step 3: Explore Live Sage X3 Cloud Data with ChatGPT
- Start a new conversation in ChatGPT.
- Connect AI should ideally be automatically enabled in the chat. If not, navigate to -> More -> CData Connect AI, under the chatbox, to enable the connector from the dropdown
- You can now start exploring your data with natural language prompts. ChatGPT will use the Connect AI MCP server to query your live Sage X3 Cloud data. Example prompts:
- "Show me all customers from the last 30 days"
- "What are my top performing products?"
- "Analyze sales trends for this quarter"
- "List all active projects and their current status"
- Permit ChatGPT to access your Sage X3 Cloud data. Click Query Data to continue, or Deny to refuse.
- ChatGPT translates your natural language queries into SQL and execute them against your Sage X3 Cloud data through the Connect AI MCP server.
Get CData Connect AI
To get live data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!