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.

Get the embed code
iframe
embed-js
react-component
server-side

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.

MethodPathAuthIdempotentDescription
GET/api/dev
none
yesReturns 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
yesRegister 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

Free

Up to 3 users

  • Space-placement button
  • Document generation (limits apply)
  • OCR transcription
  • Translation
  • Bulk chat distribution

For development and evaluation.

Ministry

$1

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

Custom

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.

embed/trad-ai-button.js
<!-- 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)

GET /api/dev
{
  "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

English
Yoruba
Igbo
Hausa
Nigerian Pidgin
Efik
Ibibio
French
Spanish
Portuguese
German
Arabic
Swahili
Twi
Zulu
Chinese (Mandarin)
Hindi
Korean

Ready to embed TRAD AI?

Copy the snippet above, paste it into your website, and your users will get the same intelligent administrative assistant.