# AI Integration — QubitOn API

Integrate the QubitOn API with leading AI assistants and agent frameworks.

## Claude (MCP Server)

The QubitOn API is available as a native Model Context Protocol (MCP) server for Claude.

`json
{
  "mcpServers": {
    "qubiton": {
      "url": "https://mcp.qubiton.com/mcp/sse",
      "headers": {
        "apikey": "YOUR_API_KEY"
      }
    }
  }
}
`

- [MCP Manifest](https://mcp.qubiton.com/.well-known/mcp.json)
- [MCP Protocol Docs](https://modelcontextprotocol.io)

## ChatGPT (Custom GPT)

Create a Custom GPT with Actions that call the QubitOn API.

1. Create a new GPT at [chat.openai.com](https://chat.openai.com)
2. Add an Action with the OpenAPI spec: `https://www.qubiton.com/api/portal/openapi.json`
3. Configure API key authentication (header: `apikey`)

- [AI Plugin Manifest](https://www.qubiton.com/.well-known/ai-plugin.json)

## Microsoft Copilot

Use the QubitOn API as a declarative agent plugin for Microsoft 365 Copilot.

- [Copilot Extensibility Docs](https://learn.microsoft.com/en-us/microsoft-365-copilot/extensibility/)

## Google Gemini

Integrate via function calling with Gemini models.

- [Gemini Function Calling](https://ai.google.dev/gemini-api/docs/function-calling)

## LangChain

Use the QubitOn API as a tool in LangChain agents:

`python
from langchain.tools import Tool
from qubiton import Client

client = Client(api_key="YOUR_API_KEY")

validate_address = Tool(
    name="validate_address",
    description="Validate and standardize a postal address",
    func=lambda q: client.address.validate_raw(q),
)
`

## LlamaIndex

Use as a tool in LlamaIndex agents:

`python
from llama_index.tools import FunctionTool
from qubiton import Client

client = Client(api_key="YOUR_API_KEY")

tool = FunctionTool.from_defaults(
    fn=client.address.validate_raw,
    name="validate_address",
    description="Validate and standardize a postal address",
)
`

## MCP Prompts & Resources

In addition to 37 data tools and 50 subscriber portal tools, the MCP server provides 27 prompt templates and 13 reference resources.

### Prompt Templates (27)

Pre-built workflow templates that orchestrate multiple tools for common business scenarios:

| Category | Prompts |
|----------|---------|
| Onboarding (5) | new_third_party_onboarding, quick_identity_check, international_entity_verification, india_entity_verification, master_data_cleansing |
| Compliance (5) | sanctions_screening, anti_corruption_check, healthcare_compliance, director_due_diligence, supplier_diversity_check |
| Risk (5) | comprehensive_due_diligence, financial_stability_assessment, esg_assessment, cybersecurity_assessment, corporate_structure_analysis |
| Payment (5) | bank_fraud_prevention, pre_payment_verification, payment_optimization, periodic_revalidation, transportation_carrier_check |
| Subscriber Portal (7) | account_health_check, usage_investigation, error_diagnosis, key_security_audit, webhook_health_check, plan_optimization, team_access_review |

### Resources (13)

Reference datasets accessible to AI models for context and enrichment:

**API Reference (7)**
- **tool_inventory** — Complete tool catalog organized by category
- **entity_risk_categories** — Risk category definitions
- **healthcare_types** — HCO/HCP entity types
- **india_identity_types** — PAN, Aadhaar, GSTIN, TAN, CIN formats
- **certification_types** — Diversity and small business certifications
- **supported_countries** — Country coverage by validation type
- **about** — API and company overview

**Subscriber Portal (6)**
- **my_subscription** — Current plan, quota, billing period, renewal date
- **my_api_keys** — API keys with status and IP restrictions
- **my_usage_summary** — Usage summary with trend and projection
- **available_plans** — All plans with pricing and features
- **my_webhooks** — Webhook configuration and delivery status
- **my_alerts** — Alert rules for thresholds and errors

## Discovery

- [llms.txt](https://www.qubiton.com/llms.txt) — AI-friendly site description
- [OpenAPI Spec](https://www.qubiton.com/api/portal/openapi.json)
- [MCP Manifest](https://mcp.qubiton.com/.well-known/mcp.json)
- [AI Plugin Manifest](https://www.qubiton.com/.well-known/ai-plugin.json)
