TRAD AI Developer
Integrate TRAD AI into your own website. This page is the machine-readable guide to embedding the space-placement button, discovering the public API and reusing the same building blocks.
Integration methods
Choose how your site exposes TRAD AI. We offer the space-placement button and several embedding patterns.
iframe
An iframe that renders the console inside your page.
embed-js
A stand-alone script you drop into your site.
react-component
A React component you mount on your page.
server-side
A server-rendered widget for your own backend.
Features exposed to your users
AI document engine (letters, circulars, minutes, certificates, reports)
OCR & handwriting transcription
Translation (English + Nigerian + foreign languages)
Voice assistant (speech to text / text to speech)
Bulk chat distribution by hierarchy
Letterhead & signatory management
Biometric attendance
Print centre & document exports (DOCX, PDF, Excel, CSV, PPT, ZIP)
Public endpoints
All API paths are relative to /api. None authentication is required for the protected endpoints.
| Method | Path | Auth | Idempotent | Description |
|---|---|---|---|---|
| GET | /api/dev | none | yes | Returns the machine-readable integration options (methods, button config, endpoints, embed code). |
| POST | /api/ask-trad-assistant | bearer | - | Ask the assistant a question given a role/level/module context and conversation history. |
| POST | /api/register-chat-identity | bearer | yes | Register a chat identity (full name, ministry, level, office, branch) and receive a hierarchy code. |
| POST | /api/documents | bearer | - | Generate official letters, circulars, minutes, attendance sheets, certificates and reports from a prompt. |
| POST | /api/transcribe-document | bearer | - | Transcribe photographs and scans of handwritten or printed registers, forms and letters into editable markdown. |
Pricing tiers
Developer
Up to 3 users
- Space-placement button
- Document generation (limits apply)
- OCR transcription
- Translation
- Bulk chat distribution
For development and evaluation.
Ministry
Up to 50 users
- Everything in Developer
- Unlimited documents & templates
- Letterhead + signatory library
- Biometric attendance
- Export to DOCX, PDF, Excel, CSV, PowerPoint, ZIP
Recommended for parishes and area administration.
Province
Up to 500 users
- Everything in Ministry
- Bulk distribution across zones
- Full audit trails & version history
- 2FA & role permissions
- Cloud storage (Google Drive, OneDrive, Dropbox, AWS S3)
For regions and provinces.
Embed snippet
Paste this snippet anywhere on your site. It asynchronously loads embed/trad-ai-button.js, which renders the space-placement button in the bottom-right corner.
<!-- TRAD AI Space Placement Button v1.0.0 -->
<script>
(function () {
const id = "trad-ai-space-placement";
const host = "https://lordofhost.online";
const script = document.createElement("script");
script.src = host + "/embed/trad-ai-button.js";
script.async = true;
const cfg = {
label: "Get TRAD AI",
placement: "bottom-right",
action: "open-console",
};
const tryLoad = () => {
if (window.TRAD_AI && window.TRAD_AI.ready) {
window.TRAD_AI.ready.push(cfg);
return;
}
setTimeout(tryLoad, 150);
};
script.onload = tryLoad;
document.head.appendChild(script);
})();
</script>Response shape (example)
{
"appUrl": "https://lordofhost.online",
"apiBaseUrl": "/api",
"status": "stable",
"integrationMethods": [
"iframe",
"embed-js",
"react-component",
"server-side"
],
"spacePlacementButton": {
"id": "trad-ai-space-placement",
"label": "Get TRAD AI",
"icon": "dove",
"placement": "bottom-right",
"color": "brand",
"action": "open-console",
"modalSize": "lg",
"labels": {
"open": "Open TRAD AI",
"close": "Close",
"title": "TRAD AI Assistant"
},
"tooltip": "TRAD AI - the intelligent administrative assistant for the Redeemed Christian Church of God."
},
"endpoints": [
{
"name": "Developer integration options",
"path": "/api/dev",
"method": "GET",
"description": "Returns the machine-readable integration options (methods, button config, endpoints, embed code).",
"auth": "none"
},
{
"name": "Ask the TRAD AI assistant",
"path": "/api/ask-trad-assistant",
"method": "POST",
"description": "Ask the assistant a question given a role/level/module context and conversation history.",
"auth": "bearer"
}
],
"tiers": [
{
"name": "Developer",
"pricePerMonth": "Free",
"features": [
"Space-placement button",
"Document generation (limits apply)",
"OCR transcription",
"Translation",
"Bulk chat distribution"
],
"seats": "Up to 3 users",
"notes": "For development and evaluation."
}
],
"supportedLanguages": [
"English",
"Yoruba",
"Igbo",
"Hausa",
"Nigerian Pidgin",
"French",
"Spanish",
"Arabic"
]
}Supported languages
Ready to embed TRAD AI?
Copy the snippet above, paste it into your website, and your users will get the same intelligent administrative assistant.