Documentation Index
Fetch the complete documentation index at: https://docs.dema.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Once NetSuite is connected, the Dema Agent can query ERP data and records exposed by the NetSuite AI Connector Service. Use it to answer questions about orders, inventory, financials, and other NetSuite records during a conversation.Prerequisites
- A NetSuite account with the AI Connector Service and OAuth 2.0 features enabled (Setup → Company → Enable Features → SuiteCloud).
- A role with permission to create and manage Integration records (typically Administrator).
- Your NetSuite Account ID. You can find it in NetSuite under Setup → Company → Company Information. Sandbox account IDs use a hyphen in URLs (for example
123456_SB1becomes123456-sb1).
NetSuite requires you to create your own OAuth integration record and paste
its credentials into Dema. You only need to do this once per NetSuite account.
Connect NetSuite
Create an integration record in NetSuite
- In NetSuite, go to Setup → Integration → Manage Integrations → New.
- Give the integration a recognizable name, for example
Dema Agent. - Set State to Enabled.
- Under Authentication, enable OAuth 2.0 and disable any other authentication methods you do not need.
- In Redirect URI, enter
https://app.dema.ai/agents/oauth/callbackexactly. - Under Scope, select MCP. If MCP is not available, confirm that the AI Connector Service feature is enabled for your account.
- Save the integration.
Copy the client ID and client secret
NetSuite shows the Consumer Key / Client ID and Consumer Secret / Client Secret only once, immediately after saving. Copy both values now. If you lose the secret you must reset it from the integration record (which generates a new one) and reconnect in Dema.
Paste the credentials into Dema
In Dema, go to Agents → Settings → Integrations, find NetSuite, and click Connect. Enter:
- Client ID from the previous step
- Client secret from the previous step
- MCP URL in the form
https://{accountId}.suitetalk.api.netsuite.com/services/mcp/v1/all, replacing{accountId}with your NetSuite Account ID (lowercase, sandboxes use a hyphen, e.g.123456-sb1)
Scopes Dema requests
| Scope | What it allows |
|---|---|
mcp | Access records and actions exposed by the NetSuite AI Connector Service |
Troubleshooting
- Dema says the URL is invalid. The MCP URL must be
https://{accountId}.suitetalk.api.netsuite.com/services/mcp/v1/all. Make sure you replaced{accountId}with your real Account ID (lowercase, sandboxes use a hyphen, for example123456-sb1). - Redirect URI mismatch. The Redirect URI on the integration record must be exactly
https://app.dema.ai/agents/oauth/callback, including protocol and path. - Approval screen fails or MCP scope is missing. Confirm that AI Connector Service is enabled in Setup → Company → Enable Features → SuiteCloud and that your role has access to it. An administrator may need to enable the feature or assign the permission.
- Dema cannot authenticate with the client secret. NetSuite shows the secret only once. If you lost it, reset it on the integration record and reconnect in Dema with the new value.

