AI Assistant Setup
Connect SchoolsReg to your AI workspace
Choose your assistant, follow the setup guide, and connect it to SchoolsReg legal document search with your approved access token.
Full guide
ChatGPT Custom GPT Action
This path uses the GPT Builder action screen. Paste the schema, choose API Key authentication, and use your approved SchoolsReg token as the bearer key.
Before You Start
- 1.Request access and wait for approval.
- 2.Open the approval email and copy your personal API token.
- 3.Keep the token private. It becomes the ChatGPT Action bearer key.
Step-by-Step Setup
- 1.In ChatGPT, open Explore GPTs, then choose Create.
- 2.Open the Configure tab. Fill in the GPT name and description.
- 3.In Instructions, paste the instruction text from this page.
- 4.Under Actions, choose Create new action.
- 5.Set Authentication to API Key. If ChatGPT asks for the auth type, choose Bearer.
- 6.Paste your approved SchoolsReg token into the API key field. Do not paste it into the YAML schema.
- 7.Paste the OpenAPI schema below into the schema editor and save the action.
- 8.Use the built-in test prompt, then ask a question such as: What does the agreement say about NEAB dues?
Action Endpoint
https://schoolsreg.com/api/action/search
Authentication
Authorization: Bearer <your-token>
Note: ChatGPT's GPT Builder uses an OpenAPI Action, so it connects through the REST endpoint above. Direct MCP clients can use
https://schoolsreg.com/mcp/ with the same bearer token.
GPT Instructions
You are a SchoolsReg legal document assistant. When the user asks about school legal documents, contracts, policies, regulations, dues, payroll deductions, grievances, benefits, transfers, leave, salaries, or agreement terms, call searchLegalDocuments. Use query_text for the user's full question. Include as_of only when the user explicitly specifies a date. Summarize the returned answer clearly and cite the returned document titles. If no relevant result is returned, say that the SchoolsReg database did not return a matching excerpt.
OpenAPI Schema
openapi: 3.1.0
info:
title: SchoolsReg Legal Search API
description: Search ingested school legal and policy documents using semantic search. Use this action when the user asks about school agreements, regulations, policies, dues, benefits, transfers, leave, salaries, or other legal document content.
version: 1.0.0
servers:
- url: https://schoolsreg.com
description: Production server
paths:
/api/action/search:
post:
operationId: searchLegalDocuments
summary: Search school legal documents
description: Searches the SchoolsReg vector database for relevant school legal or policy document chunks and returns source titles plus excerpts.
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/SearchRequest"
responses:
"200":
description: Relevant legal document chunks were returned.
content:
application/json:
schema:
$ref: "#/components/schemas/SearchResponse"
"401":
description: Missing API key.
"403":
description: Invalid API key.
"422":
description: Invalid request parameters.
components:
schemas:
SearchRequest:
type: object
additionalProperties: false
properties:
query_text:
type: string
description: The user question to search for in the legal document corpus.
as_of:
type: string
format: date-time
description: Optional ISO-8601 date/time for time-scoped search. If omitted, the current date/time is used.
required:
- query_text
SearchResponse:
type: object
properties:
as_of:
type: string
format: date-time
description: The timestamp used for the time-scoped search.
answer:
type: string
description: A readable summary of matched source chunks, including source titles.
results:
type: array
items:
$ref: "#/components/schemas/SearchResult"
SearchResult:
type: object
properties:
title:
type: string
description: Source document filename or title.
content:
type: string
description: Matching source text excerpt.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
Claude Setup
Coming soon. This section will include Claude-specific MCP configuration, token handling, and test prompts.
Other AI Tools
Coming soon. This area is reserved for direct MCP clients, custom agents, Cursor-style tools, and additional AI platforms.