# Connect ChatGPT or Claude to Landit

## Prerequisites

Use the Microsoft account registered with Landit and an Instance you currently
have permission to use. You can set up the connection yourself or ask for help.
There is no separate beta enrolment or access window.

Your Instance administrator must enable **Settings → Instance settings →
External AI Access**. Your AI account or workspace must permit custom connections;
ask its owner if the creation option is unavailable. Labels can vary by provider
release. This guide covers ChatGPT Web and Claude Web, not local desktop-server
configuration.

## Expected result

Your chosen AI service connects through Microsoft sign-in and Landit's access
request, then lists your permitted, administrator-enabled Instances. Its authorisation appears under
**Settings → AI Connections** in Landit. You can later revoke it or reconnect.

## Actions

1. Confirm the prerequisites above and choose the ChatGPT or Claude instructions
   below. If the organiser has already installed a private Landit connector for
   you, use its **Connect** action instead of creating a duplicate.
2. Configure that provider with these beta details. Client IDs identify the
   application; they are not passwords. The existing IDs retain their original
   development names for connection compatibility.

- **Connection name:** `Landit`.
- **Server URL:** `https://mcp.landit.cloud/external/mcp`.
- **Authentication:** OAuth, with sign-in required.
- **ChatGPT client ID:** `landit-development-chatgpt`.
- **Claude client ID:** `landit-development-claude`.
- **Client secret:** leave empty; this beta uses public clients.

3. Complete the shared Microsoft and Landit approval steps below.
4. Enable the connection in a conversation and run the discovery-only check.

Use the full server URL, including `/external/mcp`. The sign-in site
`https://oauth.landit.cloud` is not the server URL. Do not choose anonymous
access, automatic client registration or a different client identity for this
beta. Do not add bearer tokens, API keys or custom authentication headers. If
your provider cannot accept the listed public-client configuration, stop and
contact the organiser.

## Set up ChatGPT Web

1. Open [ChatGPT Plugins](https://chatgpt.com/plugins). Use the plus control and
   **Add custom MCP server**. Some releases place creation under Apps or
   developer settings; use the custom-server flow available to your workspace.
2. Name it **Landit**, enter the server URL and choose **OAuth**.
   Enter the ChatGPT client ID above in the static-client fields; leave its
   secret empty.
3. Review the provider's warning. Create the private plugin and install it in
   your own account or approved workspace. Do not publish it for general use.
4. Choose **Connect** or the account sign-in action, then follow the shared
   approval steps below. In a chat, use `@` to select the installed Landit plugin.

See OpenAI's current [custom MCP server instructions](https://developers.openai.com/api/docs/guides/custom-mcp-server)
if your menu differs. Workspace controls still apply.

## Set up Claude Web

1. Open **Customize → Connectors**, choose **Add**, then **Add custom connector**.
   For a managed workspace, its owner may need to add it through
   **Organization settings → Connectors** first.
2. Name it **Landit** and enter the server URL. Review the detected
   authentication settings and choose **Sign in now**.
3. Under **OAuth client**, choose **Use your own OAuth client** and enter the
   Claude client ID above, leaving the secret empty. Add the private connector
   and follow the shared approval steps below.
4. Enable Landit for the conversation through the composer's **+ → Connectors**
   controls. Review any tool-approval request Claude presents.

See Claude's current [custom connector instructions](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)
if these controls differ. Do not replace a blocked operation with another
connector or disable its security review.

## Complete Microsoft and Landit approval

Sign in with your registered Microsoft account and complete any MFA yourself.
If Microsoft requests application permissions, review the application identity;
do not grant organisation-wide consent as part of this beta setup.

On Landit's **Approve access** page, check that the requesting client matches
your chosen provider and the resource is
`https://mcp.landit.cloud/external/mcp`. Read the discovery/read-only access
request. Keep **Keep this connection working by automatically renewing
credentials** selected, then choose **Approve access**. Access remains approved
until you revoke it, an administrator disables the Instance or your permissions
are removed. Expiring access tokens are renewed automatically. If you decline
automatic renewal, you will need to sign in again when the access token expires.

Never paste a Microsoft
password, sign-in callback URL or access credential into an AI conversation.

## Success criteria

In a conversation with only the intended Landit connection selected, send:

> Use Landit to list the Instances I can access. Report their names
> only. Do not query data yet.

Check that your intended Instance is returned. If it is missing, check your
current membership and the administrator setting. A connected badge alone does
not prove data access.

Ask the service to discover available data in that Instance, then request a
small sample from a chosen data set. Do not paste hidden Instance contexts or
next-page values into the conversation.

You can also ask questions that use related data, such as “Which sales orders
contain these Product keys?” Landit uses its defined relationships and your
current permissions. There is no separate administrator setting for relationship
queries. Keep transaction currencies separate from customer billing/default
currencies, and ask for counts by a stable customer identifier when you mean
customers rather than distinct names. Monetary totals in different currencies
need a common conversion basis for a business comparison.

For “top products”, specify the ranking, such as sales value or quantity,
and the period you want; an alphabetical sample is a different request.

You can ask for server-filtered questions such as “Find the latest sales order
with a total over $400”, a list of Product keys, sales by customer using a named
measure, or orders within explicit dates. The AI should discover the correct
fields and preserve currency, tax, date role and row grain. If those meanings
are unresolved, it may ask one focused question. Relative periods such as “last
month” need your reporting timezone; an As At date for a time calculation is a
separate choice. Current supported shapes and limits come from Landit's query
contract, so an unavailable native combination may still need clarification.

A date-only value, such as a document's Effective Date, identifies a calendar
day. Use that date directly: changing the reporting timezone should not change
the recorded day. Reporting timezones still apply when an actual UTC timestamp
is grouped or displayed as a local date.

Queries return bounded live pages. The starting allowance is 1,000 output rows,
with up to 100 rows per page; your Instance administrator can change the total
allowance. Totals and filtering use the eligible source rows before that output
limit. A reached cap does not prove that you received the full inventory. Data
can change between pages; these results are not a frozen export.

For a large table, a small labelled preview in chat is a normal result. If you
want the full breakdown, ask your AI service for a downloadable file. It can use
its available file tools to provide a CSV alongside the preview. For example:
“Provide the complete
original result as a downloadable CSV, including all pages, with a small preview
in the chat.” Check that the file's row count and completeness are stated. A
preview or an earlier filtered subset is not the full result. If a query reaches
its output allowance or fails partway through, any file is partial; creating a
file does not remove those query limits. File availability depends on your AI
service and its enabled tools.

In Landit, check **Settings → AI Connections** for the provider and current
status. No extra Landit approval is needed for each query; provider approvals
may still apply.

## Reconnect or stop access

If the provider reports an authentication failure, use the existing provider connector's reconnect action
and complete fresh Microsoft/Landit approval. Do not submit an old consent page
or recreate the connector just to retry. Ask it to discover the Instance again
before the next query.

To withdraw authority, use **Settings → AI Connections → Revoke** in Landit and
confirm. Reconnecting later creates a fresh authorisation; old credentials and
old next-page links remain invalid. See
[connection and Instance controls](/help/manage-external-ai-access).

If you have lost access to your last Instance, you can still sign in at
[AI connection management](https://app.landit.cloud/settings/ai-connections)
and revoke existing connections. This does not restore Instance or data access.

## If setup or a query is blocked

- **Custom connection creation is missing:** check your provider's supported
  account/workspace settings with its owner.
- **`request_denied` or an expired sign-in page:** start one fresh
  Connect/Reconnect flow from the provider. If it fails again, stop and report
  the time and provider.
- **Connected, but no Instance:** check Instance administrator approval and your
  current membership. No additional beta enrolment is required.
- **`CONTEXT_EXPIRED`:** ask the AI to discover the same Instance again before
  restarting. This short-lived handle expiry does not require reconnecting or
  renewed administrator approval.
- **`PAGE_UNAVAILABLE` or a failed next page:** the page link is single-use.
  Do not retry it. Restarting the original query begins a new live result.
- **`INVALID_OPERAND` or `UNSUPPORTED_QUERY`:** ask the AI to explain the specific
  query issue and make at most one justified correction that keeps every
  requested condition. Changing administrator access does not enable unsupported
  query features.
- **`REPORTING_CONTEXT_REQUIRED`:** resolve the reporting timezone for a calendar
  period over datetime data. Landit will not silently choose UTC. Keep your
  requested period and As At date; explicit instant filters remain available.
- **`STALE_METADATA`:** the fields or reporting calendar changed. Ask the AI to
  rediscover the same Instance and refresh the revision before one corrected
  attempt that preserves your question. This does not mean access is disabled.
- **`RATE_LIMITED`:** wait for the reported reset. Repeating the same request
  immediately will not help.
- **`QUERY_TIMEOUT` or `DEPENDENCY_UNAVAILABLE`:** no result was released.
  Keep the original question and the operation ID when reporting the problem;
  do not replace it with a less restricted question just to obtain rows.
- **`SCHEMA_TOO_LARGE`:** ask the AI to use `search_datasets`, `describe_dataset`
  and `search_fields` for your question. A large Instance's full schema may exceed
  the response limit; this does not mean your access is disabled.
- **`RELATIONSHIP_PATH_AMBIGUOUS`:** ask the AI to rediscover the exact roles for
  related fields and preserve the full returned paths. If that shape remains
  unsupported, explain the limit while preserving your requested conditions.
  Changing administrator access settings will not resolve this error.
- **Claude or ChatGPT blocks a tool before Landit receives it:** review the
  provider's approval prompt. If still blocked, stop and report the client-side
  limitation; do not bypass it.

Share only the approximate time, provider, visible error/operation ID and whether sign-in
returned successfully. Do not include passwords, tokens, sign-in URLs, next-page
values or returned business rows.
